Template:ItemCat
From Card Hunter Wiki
(Difference between revisions)
Line 6: | Line 6: | ||
| rare = [[Category:Rare Weapon|{{SUBPAGENAME}}]] | | rare = [[Category:Rare Weapon|{{SUBPAGENAME}}]] | ||
| epic = [[Category:Epic Weapon|{{SUBPAGENAME}}]] }} | | epic = [[Category:Epic Weapon|{{SUBPAGENAME}}]] }} | ||
− | | divine weapon = [[Category:Divine Weapon|{{SUBPAGENAME}}]] | + | | divine weapon = [[Category:Divine Weapon|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} |
− | | staff = [[Category:Staff|{{SUBPAGENAME}}]] | + | | common = [[Category:Common Divine Weapon|{{SUBPAGENAME}}]] |
− | | divine armor = [[Category:Divine Armor|{{SUBPAGENAME}}]] | + | | uncommon = [[Category:Uncommon Divine Weapon|{{SUBPAGENAME}}]] |
− | | heavy armor = [[Category:Heavy Armor|{{SUBPAGENAME}}]] | + | | rare = [[Category:Rare Divine Weapon|{{SUBPAGENAME}}]] |
− | | robe = [[Category:Robe|{{SUBPAGENAME}}]] | + | | epic = [[Category:Epic Divine Weapon|{{SUBPAGENAME}}]] }} |
− | | helmet = [[Category:Helmet|{{SUBPAGENAME}}]] | + | | staff = [[Category:Staff|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} |
− | | shield = [[Category:Shield|{{SUBPAGENAME}}]] | + | | common = [[Category:Common Staff|{{SUBPAGENAME}}]] |
− | | divine item = [[Category:Divine Item|{{SUBPAGENAME}}]] | + | | uncommon = [[Category:Uncommon Staff|{{SUBPAGENAME}}]] |
− | | arcane item = [[Category:Arcane Item|{{SUBPAGENAME}}]] | + | | rare = [[Category:Rare Staff|{{SUBPAGENAME}}]] |
− | | boots = [[Category:Boots|{{SUBPAGENAME}}]] | + | | epic = [[Category:Epic Staff|{{SUBPAGENAME}}]] }} |
− | | treasure = [[Category:Treasure|{{SUBPAGENAME}}]] | + | | divine armor = [[Category:Divine Armor|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} |
− | | dwarf skill = [[Category:Dwarf Skill|{{SUBPAGENAME}}]] | + | | common = [[Category:Common Divine Armor|{{SUBPAGENAME}}]] |
− | | elf skill = [[Category:Elf Skill|{{SUBPAGENAME}}]] | + | | uncommon = [[Category:Uncommon Divine Armor|{{SUBPAGENAME}}]] |
− | | human skill = [[Category:Human Skill|{{SUBPAGENAME}}]] | + | | rare = [[Category:Rare Divine Armor|{{SUBPAGENAME}}]] |
− | | arcane skill = [[Category:Arcane Skill|{{SUBPAGENAME}}]] | + | | epic = [[Category:Epic Divine Armor|{{SUBPAGENAME}}]] }} |
− | | divine skill = [[Category:Divine Skill|{{SUBPAGENAME}}]] | + | | heavy armor = [[Category:Heavy Armor|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} |
− | | martial skill = [[Category:Martial Skill|{{SUBPAGENAME}}]] | + | | common = [[Category:Common Heavy Armor|{{SUBPAGENAME}}]] |
+ | | uncommon = [[Category:Uncommon Heavy Armor|{{SUBPAGENAME}}]] | ||
+ | | rare = [[Category:Rare Heavy Armor|{{SUBPAGENAME}}]] | ||
+ | | epic = [[Category:Epic Heavy Armor|{{SUBPAGENAME}}]] }} | ||
+ | | robe = [[Category:Robe|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} | ||
+ | | common = [[Category:Common Robe|{{SUBPAGENAME}}]] | ||
+ | | uncommon = [[Category:Uncommon Robe|{{SUBPAGENAME}}]] | ||
+ | | rare = [[Category:Rare Robe|{{SUBPAGENAME}}]] | ||
+ | | epic = [[Category:Epic Robe|{{SUBPAGENAME}}]] }} | ||
+ | | helmet = [[Category:Helmet|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} | ||
+ | | common = [[Category:Common Helmet|{{SUBPAGENAME}}]] | ||
+ | | uncommon = [[Category:Uncommon Helmet|{{SUBPAGENAME}}]] | ||
+ | | rare = [[Category:Rare Helmet|{{SUBPAGENAME}}]] | ||
+ | | epic = [[Category:Epic Helmet|{{SUBPAGENAME}}]] }} | ||
+ | | shield = [[Category:Shield|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} | ||
+ | | common = [[Category:Common Shield|{{SUBPAGENAME}}]] | ||
+ | | uncommon = [[Category:Uncommon Shield|{{SUBPAGENAME}}]] | ||
+ | | rare = [[Category:Rare Shield|{{SUBPAGENAME}}]] | ||
+ | | epic = [[Category:Epic Shield|{{SUBPAGENAME}}]] }} | ||
+ | | divine item = [[Category:Divine Item|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} | ||
+ | | common = [[Category:Common Divine Item|{{SUBPAGENAME}}]] | ||
+ | | uncommon = [[Category:Uncommon Divine Item|{{SUBPAGENAME}}]] | ||
+ | | rare = [[Category:Rare Divine Item|{{SUBPAGENAME}}]] | ||
+ | | epic = [[Category:Epic Divine Item|{{SUBPAGENAME}}]] }} | ||
+ | | arcane item = [[Category:Arcane Item|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} | ||
+ | | common = [[Category:Common Arcane Item|{{SUBPAGENAME}}]] | ||
+ | | uncommon = [[Category:Uncommon Arcane Item|{{SUBPAGENAME}}]] | ||
+ | | rare = [[Category:Rare Arcane Item|{{SUBPAGENAME}}]] | ||
+ | | epic = [[Category:Epic Arcane Item|{{SUBPAGENAME}}]] }} | ||
+ | | boots = [[Category:Boots|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} | ||
+ | | common = [[Category:Common Boots|{{SUBPAGENAME}}]] | ||
+ | | uncommon = [[Category:Uncommon Boots|{{SUBPAGENAME}}]] | ||
+ | | rare = [[Category:Rare Boots|{{SUBPAGENAME}}]] | ||
+ | | epic = [[Category:Epic Boots|{{SUBPAGENAME}}]] }} | ||
+ | | treasure = [[Category:Treasure|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} | ||
+ | | common = [[Category:Common Treasure|{{SUBPAGENAME}}]] | ||
+ | | uncommon = [[Category:Uncommon Treasure|{{SUBPAGENAME}}]] | ||
+ | | rare = [[Category:Rare Treasure|{{SUBPAGENAME}}]] | ||
+ | | epic = [[Category:Epic Treasure|{{SUBPAGENAME}}]] }} | ||
+ | | dwarf skill = [[Category:Dwarf Skill|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} | ||
+ | | common = [[Category:Common Dwarf Skill|{{SUBPAGENAME}}]] | ||
+ | | uncommon = [[Category:Uncommon Dwarf Skill|{{SUBPAGENAME}}]] | ||
+ | | rare = [[Category:Rare Dwarf Skill|{{SUBPAGENAME}}]] | ||
+ | | epic = [[Category:Epic Dwarf Skill|{{SUBPAGENAME}}]] }} | ||
+ | | elf skill = [[Category:Elf Skill|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} | ||
+ | | common = [[Category:Common Elf Skill|{{SUBPAGENAME}}]] | ||
+ | | uncommon = [[Category:Uncommon Elf Skill|{{SUBPAGENAME}}]] | ||
+ | | rare = [[Category:Rare Elf Skill|{{SUBPAGENAME}}]] | ||
+ | | epic = [[Category:Epic Elf Skill|{{SUBPAGENAME}}]] }} | ||
+ | | human skill = [[Category:Human Skill|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} | ||
+ | | common = [[Category:Common Human Skill|{{SUBPAGENAME}}]] | ||
+ | | uncommon = [[Category:Uncommon Human Skill|{{SUBPAGENAME}}]] | ||
+ | | rare = [[Category:Rare Human Skill|{{SUBPAGENAME}}]] | ||
+ | | epic = [[Category:Epic Human Skill|{{SUBPAGENAME}}]] }} | ||
+ | | arcane skill = [[Category:Arcane Skill|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} | ||
+ | | common = [[Category:Common Arcane Skill|{{SUBPAGENAME}}]] | ||
+ | | uncommon = [[Category:Uncommon Arcane Skill|{{SUBPAGENAME}}]] | ||
+ | | rare = [[Category:Rare Arcane Skill|{{SUBPAGENAME}}]] | ||
+ | | epic = [[Category:Epic Arcane Skill|{{SUBPAGENAME}}]] }} | ||
+ | | divine skill = [[Category:Divine Skill|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} | ||
+ | | common = [[Category:Common Divine Skill|{{SUBPAGENAME}}]] | ||
+ | | uncommon = [[Category:Uncommon Divine Skill|{{SUBPAGENAME}}]] | ||
+ | | rare = [[Category:Rare Divine Skill|{{SUBPAGENAME}}]] | ||
+ | | epic = [[Category:Epic Divine Skill|{{SUBPAGENAME}}]] }} | ||
+ | | martial skill = [[Category:Martial Skill|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} | ||
+ | | common = [[Category:Common Martial Skill|{{SUBPAGENAME}}]] | ||
+ | | uncommon = [[Category:Uncommon Martial Skill|{{SUBPAGENAME}}]] | ||
+ | | rare = [[Category:Rare Martial Skill|{{SUBPAGENAME}}]] | ||
+ | | epic = [[Category:Epic 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 01:26, 4 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]]