Template:RP Logs: Difference between revisions
From X-Men: rEvolution
Jump to navigationJump to search
No edit summary |
Tag: Undo |
||
(42 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq: {{{ordermethod}}} | gamedate | | {{ #css: | ||
#content table.wikitable{ | |||
border: 0; | |||
margin: 0em 0 0 -12px; | |||
} | |||
#content table.wikitable th, #content table.wikitable td { | |||
border: 1px #aaa solid ; | |||
background: transparent; | |||
} | |||
table.wikitable ul { | |||
margin-top: 0; | |||
} | |||
}}<includeonly>{{#ifeq: {{{ordermethod}}} | gamedate | | |||
{{ #dpl: | {{ #dpl: | ||
| namespace=Logs | | namespace={{{namespace|Logs}}} | ||
| category=RP Logs | | category=RP Logs | ||
| linksto={{{name|{{BASEPAGENAME}} }}} | | linksto={{{name|{{BASEPAGENAME}}}}} | ||
| includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\ | | includematch=/\{{!}}\\s*(cast\s*=[^=]*{{BASEPAGENAME}}.|mentions\s*=[^=]*{{BASEPAGENAME}}.)*\{{!}}\s*gamedate\s*=\s*\d{4}\-\d{2}\-\d{2}/si | ||
| include={ | | include={Logs}:gamedate:[[%PAGE%|%TITLE%]]:cast:mentions | ||
| format= ,\n* (%gamedate%) [[%PAGE%|%TITLE%]],, | | format= ,\n* (%gamedate%) [[%PAGE%|%TITLE%]] cast,, mentions,, | ||
| ordermethod=sortkey | | ordermethod=sortkey | ||
| order= | | order=descending | ||
| table=,-, | | table=,-,Date,Title,Cast,Mentions | ||
| tablesortcol= | | tablesortcol=0 | ||
| tablerow=\n* (%%),%% | | tablerow=\n* (%%),%% | ||
| columns={{{columns| | | columns={{{columns|2}}} | ||
| rowcolformat=width= | | rowcolformat=width=75% | ||
| noresultsheader=''No logs have been posted yet.'' | | noresultsheader=''No logs have been posted yet.'' | ||
| resultsheader=²{Extension DPL Continue¦total=%TOTALPAGES%¦offset={%DPL_offset:0%}¦count={%DPL_count:50%}¦page={{PAGENAME}}}²\n | |||
| resultsfooter=²{Extension DPL Continue¦total=%TOTALPAGES%¦offset={%DPL_offset:0%}¦count={%DPL_count:50%}¦page={{PAGENAME}}}²\n | |||
| count={%DPL_count:50%} | |||
| cacheperiod=900 | |||
| scroll=yes | |||
}} | }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{| | {| | ||
Line 33: | Line 39: | ||
|- | |- | ||
| <pre> | | <pre> | ||
{{ RP Logs | name = | {{ RP Logs | name = {{BASEPAGENAME}} | columns = 3 | ordermethod = gamedate }} | ||
</pre> | </pre> | ||
To retrieve archived logs, add the parameter "namespace" as follows: | |||
<pre> | |||
{{ RP Logs | name = {{BASEPAGENAME}} | columns = 3 | ordermethod = gamedate | namespace = ArchivedLogs }} | |||
</pre> | |||
|} | |} | ||
</noinclude> | </noinclude> |
Latest revision as of 20:44, 27 June 2024
How to include a dynamic log list in your page: |
---|
{{ RP Logs | name = {{BASEPAGENAME}} | columns = 3 | ordermethod = gamedate }} To retrieve archived logs, add the parameter "namespace" as follows: {{ RP Logs | name = {{BASEPAGENAME}} | columns = 3 | ordermethod = gamedate | namespace = ArchivedLogs }} |