Difference between revisions of "Template:RP Logs"
Jump to navigation
Jump to search
imported>Emurphy |
imported>Emurphy (trying again) |
||
Line 11: | Line 11: | ||
margin-top: 0; | 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: | {{ #dpl: | ||
| userdateformat=(y.m.d) | | userdateformat=(y.m.d) | ||
Line 27: | Line 45: | ||
|- | |- | ||
| <pre> | | <pre> | ||
− | {{ RP Logs | name = | + | {{ RP Logs | name = Mikey | columns = 3 | ordermethod = gamedate }} |
</pre> | </pre> | ||
Revision as of 22:03, 23 October 2014
How to include a dynamic log list in your page: |
---|
{{ RP Logs | name = Mikey | columns = 3 | ordermethod = gamedate }} 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. |