Difference between revisions of "Template:RP Logs"

From Fate's Harvest
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 20: Line 20:
 
| linksto={{BASEPAGENAME}}
 
| linksto={{BASEPAGENAME}}
 
| includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\.\d{2}\.\d{2}/si
 
| includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\.\d{2}\.\d{2}/si
 +
| replaceintitle=/Log:/,
 
| include={Log}:gamedate:[[%PAGE%|%TITLE%]]
 
| include={Log}:gamedate:[[%PAGE%|%TITLE%]]
 
| order=descending
 
| order=descending
Line 26: Line 27:
 
| columns={{{columns|2}}}
 
| columns={{{columns|2}}}
 
| noresultsheader=''No logs have been posted yet.''
 
| noresultsheader=''No logs have been posted yet.''
| tablesortcol=1
 
 
}}
 
}}
 
| #default =
 
| #default =
Line 33: Line 33:
 
| linksto={{BASEPAGENAME}}
 
| linksto={{BASEPAGENAME}}
 
| includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\.\d{2}\.\d{2}/si
 
| includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\.\d{2}\.\d{2}/si
 +
| replaceintitle=/Log:/,
 
| include={Log}:gamedate:[[%PAGE%|%TITLE%]]
 
| include={Log}:gamedate:[[%PAGE%|%TITLE%]]
 
| ordermethod=sortkey
 
| ordermethod=sortkey
Line 40: Line 41:
 
| columns={{{columns|2}}}
 
| columns={{{columns|2}}}
 
| noresultsheader=''No logs have been posted yet.''
 
| noresultsheader=''No logs have been posted yet.''
| tablesortcol=1
 
 
}}
 
}}
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 21:03, 21 March 2017


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.