Template:RP Logs: Difference between revisions
From X-Men: rEvolution
Jump to navigationJump to search
Tag: Undo |
Tag: Undo |
||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
#content table.wikitable{ | #content table.wikitable{ | ||
border: 0; | border: 0; | ||
margin: | margin: 0em 0 0 -12px; | ||
} | } | ||
#content table.wikitable th, #content table.wikitable td { | #content table.wikitable th, #content table.wikitable td { | ||
border: | border: 1px #aaa solid ; | ||
background: transparent; | background: transparent; | ||
} | } | ||
Line 16: | Line 16: | ||
| category=RP Logs | | category=RP Logs | ||
| linksto={{{name|{{BASEPAGENAME}}}}} | | linksto={{{name|{{BASEPAGENAME}}}}} | ||
| includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\-\d{2}\-\d{2}/si | | includematch=/\{{!}}\\s*(cast\s*=[^=]*{{BASEPAGENAME}}.|mentions\s*=[^=]*{{BASEPAGENAME}}.)*\{{!}}\s*gamedate\s*=\s*\d{4}\-\d{2}\-\d{2}/si | ||
| include={Logs}:gamedate:[[%PAGE%|%TITLE%]] | | include={Logs}:gamedate:[[%PAGE%|%TITLE%]]:cast:mentions | ||
| format= ,\n* (%gamedate%) [[%PAGE%|%TITLE%]] ,, | | format= ,\n* (%gamedate%) [[%PAGE%|%TITLE%]] cast,, mentions,, | ||
| ordermethod=sortkey | | ordermethod=sortkey | ||
| order=descending | | order=descending | ||
| table=,-, | | table=,-,Date,Title,Cast,Mentions | ||
| tablesortcol=0 | | 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 | | resultsheader=²{Extension DPL Continue¦total=%TOTALPAGES%¦offset={%DPL_offset:0%}¦count={%DPL_count:50%}¦page={{PAGENAME}}}²\n | ||
| resultsfooter | | resultsfooter=²{Extension DPL Continue¦total=%TOTALPAGES%¦offset={%DPL_offset:0%}¦count={%DPL_count:50%}¦page={{PAGENAME}}}²\n | ||
| count = {%DPL_count:50%} | | count={%DPL_count:50%} | ||
| | | cacheperiod=900 | ||
| scroll=yes | |||
| | |||
}} | }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{| | {| | ||
Line 58: | Line 42: | ||
</pre> | </pre> | ||
To retrieve archived logs, add the parameter "namespace" as follows: | |||
<pre> | <pre> |
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 }} |