Difference between revisions of "Template:RP Logs"

From Fate's Harvest
Jump to: navigation, search
Line 1: Line 1:
<includeonly>{{ #dpl:
+
<includeonly>{{#switch: {{{order}}} | descending =
|userdateformat='''M d, Y''' -
+
{{ #dpl:
|category=RP Logs
+
| category=RP Logs
|linksto={{PAGENAME}}
+
| 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
 
| include={Log}:gamedate:[[%PAGE%|%TITLE%]]
 
| include={Log}:gamedate:[[%PAGE%|%TITLE%]]
|ordermethod=firstedit
+
| order=descending
|noresultsheader=''None yet.''
+
| table=class="table infobox",-,
|mode=userformat
+
|tablesortcol=1
+
|columns=2
+
 
| tablerow=\n* (%%),%%
 
| tablerow=\n* (%%),%%
|format=<ul>,<li>%DATE% [[%PAGE%|%TITLE%]],</li>,</ul>
+
| columns={{{columns|2}}}
 +
| noresultsheader=''No logs have been posted yet.''
 
}}
 
}}
</includeonly>
+
| #default =
 +
{{ #dpl:
 +
| category=RP Logs
 +
| linksto={{BASEPAGENAME}}
 +
| includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\.\d{2}\.\d{2}/si
 +
| include={Log}:gamedate:[[%PAGE%|%TITLE%]]
 +
| ordermethod=sortkey
 +
| order=ascending
 +
| table=class="table infobox",-,
 +
| tablerow=\n* (%%),%%
 +
| columns={{{columns|2}}}
 +
| noresultsheader=''No logs have been posted yet.''
 +
}}
 +
}}</includeonly>
 +
<noinclude>
 +
==How to include a dynamic log list in your page:==
 +
<pre>
 +
{{ RP Logs | columns = 2 | order = ascending }}
 +
</pre>
 +
 
 +
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.
 +
</noinclude>

Revision as of 00:51, 11 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.