Template:ItemCat

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
 
(2 intermediate revisions by one user not shown)
Line 217: Line 217:
 
     | epic = [[Category:Level {{{3}}} Epic Martial Skill|{{SUBPAGENAME}}]]
 
     | epic = [[Category:Level {{{3}}} Epic Martial Skill|{{SUBPAGENAME}}]]
 
     | legendary = [[Category:Level {{{3}}} Legendary Martial Skill|{{SUBPAGENAME}}]] }}
 
     | legendary = [[Category:Level {{{3}}} Legendary Martial Skill|{{SUBPAGENAME}}]] }}
}}</includeonly>
+
}}{{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 +
    | common = [[Category:Common Item|{{SUBPAGENAME}}]][[Category:Level {{{3}}} Common Item|{{SUBPAGENAME}}]]
 +
    | uncommon = [[Category:Uncommon Item|{{SUBPAGENAME}}]][[Category:Level {{{3}}} Uncommon Item|{{SUBPAGENAME}}]]
 +
    | rare = [[Category:Rare Item|{{SUBPAGENAME}}]][[Category:Level {{{3}}} Rare Item|{{SUBPAGENAME}}]]
 +
    | epic = [[Category:Epic Item|{{SUBPAGENAME}}]][[Category:Level {{{3}}} Epic Item|{{SUBPAGENAME}}]]
 +
    | legendary = [[Category:Legendary Item|{{SUBPAGENAME}}]][[Category:Level {{{3}}} Legendary Item|{{SUBPAGENAME}}]] }}[[Category:Level {{{3}}} Item|{{SUBPAGENAME}}]]</includeonly>
 
<noinclude>
 
<noinclude>
 
Instruction for item categorization template, usage is as follows:
 
Instruction for item categorization template, usage is as follows:

Latest revision as of 20:23, 26 October 2013


Instruction for item categorization template, usage is as follows:

{{ItemCat|type|rarity|level}}

Type and rarity are mandatory fields. This template uses the ItemType and ItemRarity templates, hence inputs must be acceptable by them.

[edit] Examples

{{ItemCat|W|r|}} = [[Category:Weapon]] [[Category:Rare Weapon]]

{{ItemCat|Dfs|e}} = [[Category:Dwarf Skill ]] [[Category:Epic Dwarf Skill]]

{{ItemCat|B|c}} = [[Category:Boots]] [[Category:Common Boots]]


      
Personal tools
Namespaces

Variants
Actions
Navigation
Tools