Difference between revisions of "Template:RP Logs"

From Fate's Harvest
Jump to: navigation, search
Line 1: Line 1:
<css>
 
#content table.log{
 
border: 0;
 
margin: -1.1em 0 0 -12px;
 
background: transparent;
 
}
 
#content table.log th, #content table.log td {
 
border: 0;
 
background: transparent;
 
}
 
table.log ul {
 
margin-top: 0;
 
}
 
</css><includeonly>{{#switch: {{{order}}} | descending =
 
 
{{ #dpl:
 
{{ #dpl:
 
| category=RP Logs
 
| category=RP Logs
Line 25: Line 11:
 
| noresultsheader=''No logs have been posted yet.''
 
| noresultsheader=''No logs have been posted yet.''
 
}}
 
}}
| #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",-,
 
| tablesortcol=1
 
| 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 21:56, 10 June 2016

No logs have been posted yet.