Difference between revisions of "Template:RP Logs"

From City of Hope MUSH
Jump to navigation Jump to search
imported>Klem
(Created page with "<css> #content table.wikitable{ border: 0; margin: -1.1em 0 0 -12px; } #content table.wikitable th, #content table.wikitable td { border: 0; background: transparent; } table.w...")
 
imported>Brody
m
 
(27 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<css>
+
<DynamicPageList>
#content table.wikitable{
+
category=Logs
border: 0;
+
category={{FULLPAGENAME}}
margin: -1.1em 0 0 -12px;
+
ordermethod=firstedit
}
+
order=descending
#content table.wikitable th, #content table.wikitable td {
+
addeditdate=true
border: 0;
+
shownamespace=false
background: transparent;
+
noresultsheader=''None yet.''
}
+
</DynamicPageList>
table.wikitable ul {
 
margin-top: 0;
 
}
 
</css><includeonly>{{#ifeq: {{{ordermethod}}} | gamedate |
 
{{ #dpl:
 
| namespace=Logs
 
| category=RP Logs
 
| linksto={{{name|{{BASEPAGENAME}} }}}
 
| includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\.\d{2}\.\d{2}/si
 
| include={Log}:gamedate:[[%PAGE%|%TITLE%]]
 
| format= ,\n* (%gamedate%) [[%PAGE%|%TITLE%]],,
 
| ordermethod=sortkey
 
| order=ascending
 
| table=,-,
 
| tablesortcol=1
 
| tablerow=\n* (%%),%%
 
| columns={{{columns|3}}}
 
| rowcolformat=width=100%
 
| noresultsheader=''No logs have been posted yet.''
 
}}
 
|
 
{{ #dpl:
 
| userdateformat=(y.m.d)
 
| namespace=Logs
 
| linksto={{{name|{{BASEPAGENAME}} }}}
 
| ordermethod=firstedit
 
| addeditdate=true
 
| shownamespace=false
 
| columns={{{columns|3}}}
 
| rowcolformat=width=100%
 
| noresultsheader=''No logs have been posted yet.''
 
}}
 
}}</includeonly><noinclude>
 
{|
 
! How to include a dynamic log list in your page:
 
|-
 
| <pre>
 
{{ RP Logs | name = Mikey | columns = 3 | ordermethod = gamedate }}
 
</pre>
 
 
 
The name, column and ordermethod parameters are optional. Name will default to the title of the page and columns will default to three. Ordermethod is less self-explanatory. It takes the values "date" and "gamedate" and determines whether the logs will be sorted by date of posting or the date of the IC events stipulated in the log. Logs without a proper gamedate value will not show up if the latter option is selected. If ordermethod malformed or unspecified, the logs will be automatically organized by the date of posting.
 
|}
 
</noinclude>
 

Latest revision as of 15:57, 24 October 2014

No pages meet these criteria.