Difference between revisions of "Template:RP Logs"

From X-Men: rEvolution
Jump to navigationJump to search
(Remove dplcache.)
(Undo revision 22893 by Polymerase (talk))
Tag: Undo
(14 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
</css><includeonly>{{#ifeq: {{{ordermethod}}} | gamedate |
 
</css><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}\-\d{2}\-\d{2}/si
 
| includematch=/\{{!}}\s*gamedate\s*=\s*\d{4}\-\d{2}\-\d{2}/si
 
| include={Logs}:gamedate:[[%PAGE%|%TITLE%]]
 
| include={Logs}:gamedate:[[%PAGE%|%TITLE%]]
Line 29: Line 29:
 
| resultsheader      = ²{Extension DPL Continue¦total=%TOTALPAGES%¦offset={%DPL_offset:0%}¦count={%DPL_count:50%}¦page={{PAGENAME}}}²\n
 
| 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
 
| resultsfooter      = ²{Extension DPL Continue¦total=%TOTALPAGES%¦offset={%DPL_offset:0%}¦count={%DPL_count:50%}¦page={{PAGENAME}}}²\n
| scroll = true
 
 
| count = {%DPL_count:50%}
 
| count = {%DPL_count:50%}
 +
| dplcache = {{BASEPAGENAME}}/{{{namespace|Logs}}}/offset/{%DPL_offset:%}
 +
| dplcacheperiod = 900
 
}}
 
}}
 
|
 
|
 
{{ #dpl:  
 
{{ #dpl:  
 
| userdateformat=(y-m-d)
 
| userdateformat=(y-m-d)
| namespace=Logs
+
| namespace={{{namespace|Logs}}}
| linksto={{{name|{{BASEPAGENAME}} }}}
+
| linksto={{{name}}}
 
| ordermethod=firstedit
 
| ordermethod=firstedit
 
| addeditdate=true
 
| addeditdate=true
Line 45: Line 46:
 
| resultsheader      = ²{Extension DPL Continue¦total=%TOTALPAGES%¦offset={%DPL_offset:0%}¦count={%DPL_count:50%}¦page={{PAGENAME}}}²\n
 
| 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
 
| resultsfooter      = ²{Extension DPL Continue¦total=%TOTALPAGES%¦offset={%DPL_offset:0%}¦count={%DPL_count:50%}¦page={{PAGENAME}}}²\n
| scroll = true
 
 
| count = {%DPL_count:50%}
 
| count = {%DPL_count:50%}
| cacheperiod = 900
+
| dplcache = {{BASEPAGENAME}}/{{{namespace|Logs}}}/offset/{%DPL_offset:%}
 +
| dplcacheperiod = 900
 
}}
 
}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
Line 57: Line 58:
 
</pre>
 
</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.
+
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. To retrieve archived logs, add the parameter "namespace" as follows:
 +
 
 +
<pre>
 +
{{ RP Logs | name = {{BASEPAGENAME}} | columns = 3 | ordermethod = gamedate | namespace = ArchivedLogs }}
 +
</pre>
 
|}
 
|}
 
</noinclude>
 
</noinclude>

Revision as of 20:57, 23 October 2020

<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. To retrieve archived logs, add the parameter "namespace" as follows:

{{ RP Logs | name = {{BASEPAGENAME}} | columns = 3 | ordermethod = gamedate | namespace = ArchivedLogs }}