Template:RP Logs: Difference between revisions

From Star Crusade MUX
Jump to navigation Jump to search
Lyov (talk | contribs)
No edit summary
No edit summary
 
(72 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq: {{{ordermethod}}} | gamedate |
<noinclude>
{{ #dpl:
__NOTOC__== Usage ==
| category=RP Logs
<pre>
{{ RP Logs
| name =
| columns =
}}
</pre>
 
This template will automatically add all logs which link to the page referenced in "name".
 
=== Example ===
<pre>
{{ RP Logs
| name = Gwen
| columns = 500
}}
</pre>
</noinclude><includeonly>
{{#dpl:  
| category=RP_Logs
| linksto={{{name|{{BASEPAGENAME}} }}}
| linksto={{{name|{{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%]]
| format= ,\n* (%gamedate%) [[%PAGE%|%TITLE%]],,
| format= ,\n*
| ordermethod=sortkey
| order=ascending
| order=ascending
| table=,-,
| columns={{{columns|4}}}
| 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%
| rowcolformat=width=100%
| noresultsheader=''No logs have been posted yet.''
| noresultsheader=''No logs have been posted yet.''
}}
}}
}}</includeonly><noinclude>
</includeonly><noinclude>
{|
[[Category:Templates]]</noinclude>
! How to include a dynamic log list in your page:
|-
| <pre>
{{ RP Logs | name = Eugene | 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 21:10, 7 June 2013

Usage

{{ RP Logs
| name = 
| columns = 
}}

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

Example

{{ RP Logs
| name = Gwen
| columns = 500
}}