Difference between revisions of "Template:Rplogs"

From Masq
m
(Replaced content with "{{subst:RP Logs}}")
Line 1: Line 1:
−
<noinclude>== Usage ==
 
−
<pre>
 
−
{{ rplogs<|rl or ic> }}
 
−
</pre>
 
−
 
−
This template will automagically generate a list of all logs which link to the name of the page, in order from oldest to newest.
 
−
 
−
Credit for the idea and the first version of code for this template goes to whoever made the similar template at [http://www.haunted-memories.net Haunted Memories].  Credit where credit is due!
 
−
 
−
 
−
=== Examples ===
 
−
<pre>
 
 
{{ rplogs }}
 
{{ rplogs }}
−
</pre>
+
[[Category:Character Subpages]]
−
The basic, default list.  Bulleted, no date shown.
+
−
 
+
−
 
+
−
<pre>
+
−
{{ rplogs|ic }}
+
−
</pre>
+
−
No bullet, IC date shown.
+
−
 
+
−
 
+
−
<pre>
+
−
{{ rplogs|rl }}
+
−
</pre>
+
−
No bullet, RL date shown.
+
−
 
+
−
 
+
−
=== Advanced Usage ===
+
−
Some people prefer to put descriptions of the logs, or otherwise adjust the way they're displayed.  If you wish to do this, create a page called YourName/AdvLog (i.e., if you're Bob, it would be Bob/AdvLog) and put your version there.  For an example, feel free to look at [[Petra/AdvLog]] (currently done by hand) or [[Jai/AdvLog]] (currently done using the [[Template:LogList|LogList]] template) -- but please don't change them, of course!  Any log to which you link on your AdvLog page will be removed from the automatic list, so that you'll get a list beneath your edited version of only any logs you're in, but haven't yet added to your edited list.
+
−
[[category:Templates]]
+
−
</noinclude><includeonly>
+
−
{{#dplvar:set|logLevel|{{#ifexist: {{PAGENAME}}/AdvLog|Adv|Bas}} }}{{#ifeq: {{#dplvar:logLevel}} | Adv |{{:{{PAGENAME}}/AdvLog}}| }}{{#dplvar:set|checkIt|{{uc:{{{1}}}}}}}{{#ifeq:{{#dplvar:checkIt}}|RL|{{#dplvar:set|useDates|true}}{{#dplvar:set|date_type|RL}}|}}{{#ifeq:{{#dplvar:checkIt}}|IC|{{#dplvar:set|useDates|true}}{{#dplvar:set|date_type|IC}}|}}<table class="wikitable sortable nohead" id="presort"><tr><th data-sort-type="date"></th><th></th></tr>
+
−
{{#dpl:
+
−
| namespace=
+
−
| linksto={{PAGENAME}}
+
−
| notlinksfrom={{PAGENAME}}/AdvLog
+
−
| replaceintitle=/^.*?\s-\s/,
+
−
| category=Log
+
−
| ordermethod=firstedit
+
−
| order=ascending
+
−
| include={{#ifeq:{{#dplvar:date_type}}|RL|{log}:rl_date|{log}:ic_date}}
+
−
| format= ,<tr><td {{#ifeq:{{#dplvar:useDates}}|true|class="colon"|style="display:none;"}}>,</td><td>{{#ifeq:{{#dplvar:useDates}}|true|[[%PAGE%|%TITLE%]]|<ul><li>[[%PAGE%|%TITLE%]]</li></ul>}}</td></tr>,
+
−
| secseparators=
+
−
| noresultsheader={{#ifeq: {{#dplvar:logLevel}} | Adv |&nbsp;|None yet!<br />Why not check out the [[Log Tutorial]]?}}
+
−
| resultsheader={{#ifeq: {{#dplvar:logLevel}} | Adv | <center>'''Also:'''</center> \n| }}
+
−
}}</table></includeonly>
+

Revision as of 16:42, 6 August 2013

None yet!
Why not check out the Log Tutorial?