Template:ItemCat

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
Line 78: Line 78:
 
     | epic = [[Category:Epic Dwarf Skill|{{SUBPAGENAME}}]]
 
     | epic = [[Category:Epic Dwarf Skill|{{SUBPAGENAME}}]]
 
     | legendary = [[Category:Legendary Dwarf Skill|{{SUBPAGENAME}}]] }}
 
     | legendary = [[Category:Legendary Dwarf Skill|{{SUBPAGENAME}}]] }}
| elf skill = <!--[[Category:Elf Skill|{{SUBPAGENAME}}]]--> {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
+
<!--| elf skill = [[Category:Elf Skill|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
     | common = [[Category:Common Elf Skill|{{SUBPAGENAME}}]]
 
     | common = [[Category:Common Elf Skill|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Elf Skill|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Elf Skill|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Elf Skill|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Elf Skill|{{SUBPAGENAME}}]]
 
     | epic = [[Category:Epic Elf Skill|{{SUBPAGENAME}}]]
 
     | epic = [[Category:Epic Elf Skill|{{SUBPAGENAME}}]]
     | legendary = [[Category:Legendary Elf Skill|{{SUBPAGENAME}}]] }}
+
     | legendary = [[Category:Legendary Elf Skill|{{SUBPAGENAME}}]] }}-->
 
| human skill = [[Category:Human Skill|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
| human skill = [[Category:Human Skill|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
     | common = [[Category:Common Human Skill|{{SUBPAGENAME}}]]
 
     | common = [[Category:Common Human Skill|{{SUBPAGENAME}}]]

Revision as of 20:25, 23 September 2013


Instruction for item categorization template, usage is as follows:

{{ItemCat|type|rarity}}

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

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