Difference between revisions of "Template:RP Logs"

From From The Ashes Wiki
Jump to: navigation, search
Line 26: Line 26:
 
[[category:Templates]]
 
[[category:Templates]]
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{{#dplvar:set|logLevel|{{#ifexist: {{PAGENAME}}/AdvLog|Adv|Bas}} }}{{#ifeq: {{#dplvar:logLevel}} | Adv |{{:{{PAGENAME}}/AdvLog}}| }}{{#dplvar:set|checkIt|{{uc:{{{1}}}}}}}{{#ifeq:{{#dplvar:checkIt}}|DATE|{{#dplvar:set|useDates|true}}|}}<div class="loglist">
+
{{#css:
 +
.colon::after {
 +
    content: ": ";
 +
    display: inline-block;
 +
    width: 1em;
 +
}
 +
}}{{#dplvar:set|logLevel|{{#ifexist: {{PAGENAME}}/AdvLog|Adv|Bas}} }}{{#ifeq: {{#dplvar:logLevel}} | Adv |{{:{{PAGENAME}}/AdvLog}}| }}{{#dplvar:set|checkIt|{{uc:{{{1}}}}}}}{{#ifeq:{{#dplvar:checkIt}}|DATE|{{#dplvar:set|useDates|true}}|}}<div class="loglist">
 
{{#dpl:
 
{{#dpl:
 
| namespace=
 
| namespace=

Revision as of 09:46, 20 November 2017

Usage

{{ RP_Logs<|date> }}

This template will automagically generate a list of all logs which link to the name of the page, in order from oldest to newest.

This is an adjustment of the similar template from Masquerade, which was itself based on the idea and a version of code from Haunted Memories.


Examples

{{ RP_Logs }}

The basic, default list. Bulleted, no date shown.


{{ RP_Logs|date }}

No bullet, 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. Examples will be forthcoming. 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.