Difference between revisions of "Template:RP Logs"

From Fate's Harvest
Jump to: navigation, search
Line 5: Line 5:
 
| includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\.\d{2}\.\d{2}/si
 
| includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\.\d{2}\.\d{2}/si
 
| include={Log}:gamedate:[[%PAGE%|%TITLE%]]
 
| include={Log}:gamedate:[[%PAGE%|%TITLE%]]
| format= ,\n* (%gamedate%) [[%PAGE%|%TITLE%]],,
 
| ordermethod=sortkey
 
 
| order=descending
 
| order=descending
 
| table=,-,
 
| table=,-,
Line 12: Line 10:
 
| tablerow=\n* (%%),%%
 
| tablerow=\n* (%%),%%
 
| columns={{{columns|2}}}
 
| columns={{{columns|2}}}
| rowcolformat=width=100%
 
 
| noresultsheader=''No logs have been posted yet.''
 
| noresultsheader=''No logs have been posted yet.''
 
}}
 
}}
Line 21: Line 18:
 
| includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\.\d{2}\.\d{2}/si
 
| includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\.\d{2}\.\d{2}/si
 
| include={Log}:gamedate:[[%PAGE%|%TITLE%]]
 
| include={Log}:gamedate:[[%PAGE%|%TITLE%]]
| format= ,\n* (%gamedate%) [[%PAGE%|%TITLE%]],,
 
 
| ordermethod=sortkey
 
| ordermethod=sortkey
 
| order=ascending
 
| order=ascending
Line 28: Line 24:
 
| tablerow=\n* (%%),%%
 
| tablerow=\n* (%%),%%
 
| columns={{{columns|2}}}
 
| columns={{{columns|2}}}
| rowcolformat=width=100%
 
 
| noresultsheader=''No logs have been posted yet.''
 
| noresultsheader=''No logs have been posted yet.''
 
}}
 
}}

Revision as of 21:42, 10 June 2016

How to include a dynamic log list in your page:
{{ RP Logs | columns = 2 | order = ascending }}

Please insert the above into your character page to populate RP logs. This template will automatically pull all logs that link to your character page. Input the number of columns you want to appear, and "ascending" or "descending" to control if the logs appear oldest first, or newest first.