Difference between revisions of "Template:LogList"

From Masq
m
Line 1: Line 1:
 +
<includeonly>
 +
{{#vardefine: plain_name | {{#sub:{{{the_log}}}|2|-2}} }}
 +
{{ #dpl:
 +
| namespace=
 +
| titlematch={{#var:plain_name}}
 +
| replaceintitle=/^.*?\s-\s/,
 +
| category=Log
 +
| include={log}:rl_date
 +
| format= ,,: [[%PAGE%|{{{my_title|%TITLE%}}}]]<br />,<div style="padding-left: 2.75em; margin-top:-.5em; font-style:italic;">\n{{{description}}}\n</div>
 +
| secseparators=&nbsp;
 +
| noresultsheader=Nothing to see here.
 +
}}
 +
</includeonly>
 
<noinclude>
 
<noinclude>
 
== Usage ==
 
== Usage ==
Line 42: Line 55:
  
 
You'll need to paste a separate instance of this template into your AdvLog page for each log you want in your formatted list.
 
You'll need to paste a separate instance of this template into your AdvLog page for each log you want in your formatted list.
 +
[[Category: Templates]]
 
</noinclude>
 
</noinclude>
<includeonly>
 
{{#vardefine: plain_name | {{#sub:{{{the_log}}}|2|-2}} }}
 
{{ #dpl:
 
| namespace=
 
| titlematch={{#var:plain_name}}
 
| replaceintitle=/^.*?\s-\s/,
 
| category=Log
 
| include={log}:rl_date
 
| format= ,,: [[%PAGE%|{{{my_title|%TITLE%}}}]]<br />,<div style="padding-left: 2.75em; margin-top:-.5em; font-style:italic;">\n{{{description}}}\n</div>
 
| secseparators=&nbsp;
 
| noresultsheader=Nothing to see here.
 
}}
 
</includeonly>
 

Revision as of 11:04, 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.