Template:RP Logs: Difference between revisions

From X-Men: rEvolution
Jump to navigationJump to search
No edit summary
Tag: Reverted
(Undo revision 27504 by Borg (talk))
Tag: Undo
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
   #content table.wikitable{
   #content table.wikitable{
   border: 0;
   border: 0;
   margin: -1.1em 0 0 -12px;
   margin: 0em 0 0 -12px;
   }
   }
   #content table.wikitable th, #content table.wikitable td {
   #content table.wikitable th, #content table.wikitable td {
   border: 0;
   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|3}}}
| columns={{{columns|2}}}
| rowcolformat=width=100%
| 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
| 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
| count = {%DPL_count:50%}
| count={%DPL_count:50%}
| dplcache = {{BASEPAGENAME}}/{{{namespace|Logs}}}/offset/{%DPL_offset:%}
| cacheperiod=900
| dplcacheperiod = 900
| scroll=yes
}}
 
}}</includeonly><noinclude>
}}</includeonly><noinclude>
|
{{ #dpl:
| userdateformat=(y-m-d)
| namespace={{{namespace|Logs}}}
| linksto={{{name}}}
| ordermethod=firstedit
| addeditdate=true
| shownamespace=false
| columns={{{columns|3}}}
| rowcolformat=width=100%
| 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%}
| dplcache = {{BASEPAGENAME}}/{{{namespace|Logs}}}/offset/{%DPL_offset:%}
| dplcacheperiod = 900
}}
{|
{|
! How to include a dynamic log list in your page:
! How to include a dynamic log list in your page:
Line 57: Line 42:
</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.  To retrieve archived logs, add the parameter "namespace" as follows:
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 }}