Template:RP Logs: Difference between revisions

From X-Men: rEvolution
Jump to navigationJump to search
No edit summary
No edit summary
Line 17: Line 17:
| 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={Logs}:gamedate:[[%PAGE%|%TITLE%]]:cast
| include={Logs}:gamedate:[[%PAGE%|%TITLE%]]
| format= ,\n* (%gamedate%) [[%PAGE%|%TITLE%]] cast,,
| format= ,\n* (%gamedate%) [[%PAGE%|%TITLE%]] ,,
| ordermethod=sortkey
| ordermethod=sortkey
| order=descending
| order=descending
Line 24: Line 24:
| tablesortcol=0
| tablesortcol=0
| tablerow=\n* (%%),%%
| tablerow=\n* (%%),%%
| columns={{{columns|2}}}
| columns={{{columns|3}}}
| rowcolformat=width=100%
| rowcolformat=width=100%
| noresultsheader=''No logs have been posted yet.''
| noresultsheader=''No logs have been posted yet.''

Revision as of 02:23, 5 March 2013

<css>

  1. content table.wikitable{

border: 0; margin: -1.1em 0 0 -12px; }

  1. content table.wikitable th, #content table.wikitable td {

border: 0; background: transparent; } table.wikitable ul { margin-top: 0; } </css>

How to include a dynamic log list in your page:
{{ RP Logs | name = {{BASEPAGENAME}} | 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.