Difference between revisions of "Template:LogList"

From Masq
m
Line 1: Line 1:
 +
<noinclude>
 +
== Usage ==
 +
<pre>
 +
{{LogList
 +
|the_log=Link to page name
 +
|my_title=Title you'd prefer to use, if not the default
 +
|description=Your description of the scene.
 +
}}
 +
</pre>
 +
 +
This is a helper template to format AdvLog pages.
 +
 +
=== Examples ===
 +
<pre>
 +
{{LogList
 +
|the_log=[[Jai - Fork In The Road]]
 +
|description=In which Petra presents Jai with a decent proposal, for a change.
 +
}}
 +
</pre>
 +
The basic use, giving you:
 +
{{LogList
 +
|the_log=[[Jai - Fork In The Road]]
 +
|description=In which Petra presents Jai with a decent proposal, for a change.
 +
}}
 +
 +
If you're fine with the default title, leave the 'my_title' line out entirely.
 +
 +
<pre>
 +
{{LogList
 +
|the_log=[[Jai - Fork In The Road]]
 +
|my_title=This Is The Title I Prefer
 +
|description=In which Petra presents Jai with a decent proposal, for a change.
 +
}}
 +
</pre>
 +
 +
Including it is the second option, giving you:
 +
{{LogList
 +
|the_log=[[Jai - Fork In The Road]]
 +
|my_title=This Is The Title I Prefer
 +
|description=In which Petra presents Jai with a decent proposal, for a change.
 +
}}
 +
 +
You'll need to paste a separate instance of this template into your AdvLog page for each log you want in your formatted list.
 +
</noinclude>
 +
<includeonly>
 
{{#vardefine: plain_name | {{#sub:{{{the_log}}}|2|-2}} }}
 
{{#vardefine: plain_name | {{#sub:{{{the_log}}}|2|-2}} }}
 
{{ #dpl:  
 
{{ #dpl:  
Line 10: Line 55:
 
| noresultsheader=Nothing to see here.
 
| noresultsheader=Nothing to see here.
 
}}
 
}}
 +
</includeonly>

Revision as of 11:01, 10 February 2013

Usage

{{LogList
|the_log=Link to page name
|my_title=Title you'd prefer to use, if not the default
|description=Your description of the scene.
}}

This is a helper template to format AdvLog pages.

Examples

{{LogList
|the_log=[[Jai - Fork In The Road]]
|description=In which Petra presents Jai with a decent proposal, for a change.
}}

The basic use, giving you:


If you're fine with the default title, leave the 'my_title' line out entirely.

{{LogList
|the_log=[[Jai - Fork In The Road]]
|my_title=This Is The Title I Prefer
|description=In which Petra presents Jai with a decent proposal, for a change.
}}

Including it is the second option, giving you:


You'll need to paste a separate instance of this template into your AdvLog page for each log you want in your formatted list.