Template:LoH/BadgeSet: Difference between revisions

From zoywiki.com
Jump to navigation Jump to search
No edit summary
m (Plujan moved page Template:BadgeSet to Template:LoH/BadgeSet without leaving a redirect: forgot the namespace here)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
|-
|-
| {{{1}}}
| style="padding: 0px 20px" | {{{1}}}
| style="padding: 0px 20px" | {{LoH/{{{2}}}|20}} {{{3}}}
| style="padding: 0px 20px" | {{LoH/{{{2}}}|20}} {{{3}}}
{{#if:{{{4|}}}|{{!}} style="padding: 0px 20px" {{!}} {{LoH/{{{4}}}|20}} {{{5}}}
{{#if:{{{4|}}}|{{!}} style="padding: 0px 20px" {{!}} {{LoH/{{{4}}}|20}} {{{5}}}
Line 6: Line 6:
{{#if:{{{8|}}}|{{!}} style="padding: 0px 20px" {{!}} {{LoH/{{{8}}}|20}} {{{9}}}
{{#if:{{{8|}}}|{{!}} style="padding: 0px 20px" {{!}} {{LoH/{{{8}}}|20}} {{{9}}}
{{#if:{{{10|}}}|{{!}} style="padding: 0px 20px" {{!}} {{LoH/{{{10}}}|20}} {{{11}}}
{{#if:{{{10|}}}|{{!}} style="padding: 0px 20px" {{!}} {{LoH/{{{10}}}|20}} {{{11}}}
{{#if:{{{12|}}}|{{!}} style="padding: 0px 20px" {{!}} {{LoH/{{{12}}}|20}} {{{13}}} }}}}}}}}}}
{{#if:{{{12|}}}|{{!}} style="padding: 0px 20px" {{!}} {{LoH/{{{12}}}|20}} {{{13}}} }}}}}}}}}}<noinclude>
 
== Documentation ==
 
This is a simple template to display a set of badges for a single class. It's currently used in the sealed issue information in [[Template:LoH/SealedIssue]] but perhaps it will be useful elsewhere.
 
To use it, simply specify the class and then the badges and ranks in order, like so:
<nowiki>{{LoH/BadgeSet|Strongharm|Power|5|Sculpting|3|Reflex|1}}</nowiki>
 
Currently this is written to support up to six badges. If a usage comes out which has more than six, you'll need to rewrite it to add a few more (should be pretty obvious how to do so). Don't use this for NPCs -- they can have badges from more than one class -- use [[Template:LoH/BadgeRow]] instead.
 
Note that the result is intended to be used in a table, so it has the syntax appropriate for a single table row. Make sure you surround it with actual table markup! See [[Template:LoH/SealedIssue]] for an example.
</noinclude>

Latest revision as of 15:56, 26 September 2013

|- | style="padding: 0px 20px" | {{{1}}} | style="padding: 0px 20px" | {{LoH/{{{2}}}|20}} {{{3}}}


Documentation[edit]

This is a simple template to display a set of badges for a single class. It's currently used in the sealed issue information in Template:LoH/SealedIssue but perhaps it will be useful elsewhere.

To use it, simply specify the class and then the badges and ranks in order, like so: {{LoH/BadgeSet|Strongharm|Power|5|Sculpting|3|Reflex|1}}

Currently this is written to support up to six badges. If a usage comes out which has more than six, you'll need to rewrite it to add a few more (should be pretty obvious how to do so). Don't use this for NPCs -- they can have badges from more than one class -- use Template:LoH/BadgeRow instead.

Note that the result is intended to be used in a table, so it has the syntax appropriate for a single table row. Make sure you surround it with actual table markup! See Template:LoH/SealedIssue for an example.