Template:ItemCat

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
 
Line 218: Line 218:
 
     | legendary = [[Category:Level {{{3}}} Legendary Martial Skill|{{SUBPAGENAME}}]] }}
 
     | legendary = [[Category:Level {{{3}}} Legendary Martial Skill|{{SUBPAGENAME}}]] }}
 
}}{{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
}}{{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
     | common = [[Category:Common Item|{{SUBPAGENAME}}]]
+
     | common = [[Category:Common Item|{{SUBPAGENAME}}]][[Category:Level {{{3}}} Common Item|{{SUBPAGENAME}}]]
     | uncommon = [[Category:Uncommon Item|{{SUBPAGENAME}}]]
+
     | uncommon = [[Category:Uncommon Item|{{SUBPAGENAME}}]][[Category:Level {{{3}}} Uncommon Item|{{SUBPAGENAME}}]]
     | rare = [[Category:Rare Item|{{SUBPAGENAME}}]]
+
     | rare = [[Category:Rare Item|{{SUBPAGENAME}}]][[Category:Level {{{3}}} Rare Item|{{SUBPAGENAME}}]]
     | epic = [[Category:Epic Item|{{SUBPAGENAME}}]]
+
     | epic = [[Category:Epic Item|{{SUBPAGENAME}}]][[Category:Level {{{3}}} Epic Item|{{SUBPAGENAME}}]]
     | legendary = [[Category:Legendary Item|{{SUBPAGENAME}}]] }}[[Category:Level {{{3}}} Item|{{SUBPAGENAME}}]]</includeonly>
+
     | 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 21: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