Template:ItemCat
From Card Hunter Wiki
(Difference between revisions)
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{ #switch: {{ lc: {{ItemType|{{{1}}} }} }} |
− | {{ #switch: {{ lc: {{ItemType|{{{1}}} }} }} | + | |
| weapon = [[Category:Weapon|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} | | weapon = [[Category:Weapon|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} | ||
| common = [[Category:Common Weapon|{{SUBPAGENAME}}]] | | common = [[Category:Common Weapon|{{SUBPAGENAME}}]] | ||
Line 109: | Line 108: | ||
| epic = [[Category:Epic Martial Skill|{{SUBPAGENAME}}]] | | epic = [[Category:Epic Martial Skill|{{SUBPAGENAME}}]] | ||
| legendary = [[Category:Legendary Martial Skill|{{SUBPAGENAME}}]] }} | | legendary = [[Category:Legendary Martial Skill|{{SUBPAGENAME}}]] }} | ||
− | }} | + | }}</includeonly> |
− | </includeonly> | + | |
<noinclude> | <noinclude> | ||
Instruction for item categorization template, usage is as follows: | Instruction for item categorization template, usage is as follows: |
Revision as of 05:20, 27 February 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]]