Template:RP Logs: Difference between revisions

From Star Crusade MUX
Jump to navigation Jump to search
Lyov (talk | contribs)
No edit summary
Lyov (talk | contribs)
Undo revision 1179 by Lyov (talk)
Line 1: Line 1:
<includeonly>{{#ifeq: {{{ordermethod}}} | gamedate |
<noinclude>
{{ #dpl:
__NOTOC__== Usage ==
| category=RP Logs
<pre>
| linksto={{{name|{{BASEPAGENAME}} }}}
{{ RPlogs
| includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\.\d{2}\.\d{2}/si
| name =  
| include={Log}:gamedate:[[%PAGE%|%TITLE%]]
| columns =  
| 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.''
}}
}}
|
</pre>
{{ #dpl:
 
| userdateformat=(y.m.d)
This template will automatically add all logs which link to the page referenced in "name".  
| namespace=Logs
 
| linksto={{{name|{{BASEPAGENAME}} }}}
=== Example ===
| ordermethod=firstedit
<pre>
| addeditdate=true
{{ RPlogs
| shownamespace=false
| name = Gwen
| columns={{{columns|3}}}
| columns = 500
| 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 = Eugene | columns = 3 | ordermethod = gamedate }}
</pre>
</pre>
 
</noinclude><includeonly>
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.
{{#dpl: category=RP_Logs | linksto={{{name|{{BASEPAGENAME}}}}} | ordermethod=firstedit | addeditdate=false |
|}
shownamespace=false | noresultsheader=\n''No logs yet.'' | columns={{{columns|2}}} | rowcolformat=width=100%}}</includeonly><noinclude>
</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 10:04, 20 December 2012

Usage

{{ RPlogs
| name = 
| columns = 
}}

This template will automatically add all logs which link to the page referenced in "name".

Example

{{ RPlogs
| name = Gwen
| columns = 500
}}