Template:ItemCat

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
Line 5: Line 5:
 
     | uncommon = [[Category:Uncommon Weapon|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Weapon|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Weapon|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Weapon|{{SUBPAGENAME}}]]
     | epic = [[Category:Epic Weapon|{{SUBPAGENAME}}]] }}
+
     | epic = [[Category:Epic Weapon|{{SUBPAGENAME}}]]
 +
    | legendary = [[Category:Legendary Weapon|{{SUBPAGENAME}}]] }}
 
| divine weapon = [[Category:Divine Weapon|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
| divine weapon = [[Category:Divine Weapon|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
     | common = [[Category:Common Divine Weapon|{{SUBPAGENAME}}]]
 
     | common = [[Category:Common Divine Weapon|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Divine Weapon|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Divine Weapon|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Divine Weapon|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Divine Weapon|{{SUBPAGENAME}}]]
     | epic = [[Category:Epic Divine Weapon|{{SUBPAGENAME}}]] }}
+
     | epic = [[Category:Epic Divine Weapon|{{SUBPAGENAME}}]]
 +
    | legendary = [[Category:Legendary Divine Weapon|{{SUBPAGENAME}}]] }}
 
| staff = [[Category:Staff|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
| staff = [[Category:Staff|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
     | common = [[Category:Common Staff|{{SUBPAGENAME}}]]
 
     | common = [[Category:Common Staff|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Staff|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Staff|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Staff|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Staff|{{SUBPAGENAME}}]]
     | epic = [[Category:Epic Staff|{{SUBPAGENAME}}]] }}
+
     | epic = [[Category:Epic Staff|{{SUBPAGENAME}}]]
 +
    | legendary = [[Category:Legendary Staff|{{SUBPAGENAME}}]] }}
 
| divine armor = [[Category:Divine Armor|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
| divine armor = [[Category:Divine Armor|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
     | common = [[Category:Common Divine Armor|{{SUBPAGENAME}}]]
 
     | common = [[Category:Common Divine Armor|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Divine Armor|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Divine Armor|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Divine Armor|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Divine Armor|{{SUBPAGENAME}}]]
     | epic = [[Category:Epic Divine Armor|{{SUBPAGENAME}}]] }}
+
     | epic = [[Category:Epic Divine Armor|{{SUBPAGENAME}}]]
 +
    | legendary = [[Category:Legendary Divine Armor|{{SUBPAGENAME}}]] }}
 
| heavy armor = [[Category:Heavy Armor|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
| heavy armor = [[Category:Heavy Armor|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
     | common = [[Category:Common Heavy Armor|{{SUBPAGENAME}}]]
 
     | common = [[Category:Common Heavy Armor|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Heavy Armor|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Heavy Armor|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Heavy Armor|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Heavy Armor|{{SUBPAGENAME}}]]
     | epic = [[Category:Epic Heavy Armor|{{SUBPAGENAME}}]] }}
+
     | epic = [[Category:Epic Heavy Armor|{{SUBPAGENAME}}]]
 +
    | legendary = [[Category:Legendary Heavy Armor|{{SUBPAGENAME}}]] }}
 
| robe = [[Category:Robe|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
| robe = [[Category:Robe|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
     | common = [[Category:Common Robe|{{SUBPAGENAME}}]]
 
     | common = [[Category:Common Robe|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Robe|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Robe|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Robe|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Robe|{{SUBPAGENAME}}]]
     | epic = [[Category:Epic Robe|{{SUBPAGENAME}}]] }}
+
     | epic = [[Category:Epic Robe|{{SUBPAGENAME}}]]
 +
    | legendary = [[Category:Legendary Robe|{{SUBPAGENAME}}]] }}
 
| helmet = [[Category:Helmet|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
| helmet = [[Category:Helmet|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
     | common = [[Category:Common Helmet|{{SUBPAGENAME}}]]
 
     | common = [[Category:Common Helmet|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Helmet|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Helmet|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Helmet|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Helmet|{{SUBPAGENAME}}]]
     | epic = [[Category:Epic Helmet|{{SUBPAGENAME}}]] }}
+
     | epic = [[Category:Epic Helmet|{{SUBPAGENAME}}]]
 +
    | legendary = [[Category:Legendary Helmet|{{SUBPAGENAME}}]] }}
 
| shield = [[Category:Shield|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
| shield = [[Category:Shield|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
     | common = [[Category:Common Shield|{{SUBPAGENAME}}]]
 
     | common = [[Category:Common Shield|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Shield|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Shield|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Shield|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Shield|{{SUBPAGENAME}}]]
     | epic = [[Category:Epic Shield|{{SUBPAGENAME}}]] }}
+
     | epic = [[Category:Epic Shield|{{SUBPAGENAME}}]]
 +
    | legendary = [[Category:Legendary Shield|{{SUBPAGENAME}}]] }}
 
| divine item = [[Category:Divine Item|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
| divine item = [[Category:Divine Item|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
     | common = [[Category:Common Divine Item|{{SUBPAGENAME}}]]
 
     | common = [[Category:Common Divine Item|{{SUBPAGENAME}}]]
Line 46: Line 54:
 
     | rare = [[Category:Rare Divine Item|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Divine Item|{{SUBPAGENAME}}]]
 
     | epic = [[Category:Epic Divine Item|{{SUBPAGENAME}}]] }}
 
     | epic = [[Category:Epic Divine Item|{{SUBPAGENAME}}]] }}
 +
    | legendary = [[Category:Legendary Divine Item|{{SUBPAGENAME}}]] }}
 
| arcane item = [[Category:Arcane Item|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
| arcane item = [[Category:Arcane Item|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
     | common = [[Category:Common Arcane Item|{{SUBPAGENAME}}]]
 
     | common = [[Category:Common Arcane Item|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Arcane Item|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Arcane Item|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Arcane Item|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Arcane Item|{{SUBPAGENAME}}]]
     | epic = [[Category:Epic Arcane Item|{{SUBPAGENAME}}]] }}
+
     | epic = [[Category:Epic Arcane Item|{{SUBPAGENAME}}]]
 +
    | legendary = [[Category:Legendary Arcane Item|{{SUBPAGENAME}}]] }}
 
| boots = [[Category:Boots|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
| boots = [[Category:Boots|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
     | common = [[Category:Common Boots|{{SUBPAGENAME}}]]
 
     | common = [[Category:Common Boots|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Boots|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Boots|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Boots|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Boots|{{SUBPAGENAME}}]]
     | epic = [[Category:Epic Boots|{{SUBPAGENAME}}]] }}
+
     | epic = [[Category:Epic Boots|{{SUBPAGENAME}}]]
 +
    | legendary = [[Category:Legendary Boots|{{SUBPAGENAME}}]] }}
 
| treasure = [[Category:Treasure|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
| treasure = [[Category:Treasure|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
     | common = [[Category:Common Treasure|{{SUBPAGENAME}}]]
 
     | common = [[Category:Common Treasure|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Treasure|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Treasure|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Treasure|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Treasure|{{SUBPAGENAME}}]]
     | epic = [[Category:Epic Treasure|{{SUBPAGENAME}}]] }}
+
     | epic = [[Category:Epic Treasure|{{SUBPAGENAME}}]]
 +
    | legendary = [[Category:Legendary Treasure|{{SUBPAGENAME}}]] }}
 
| dwarf skill = [[Category:Dwarf Skill|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
| dwarf skill = [[Category:Dwarf Skill|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
     | common = [[Category:Common Dwarf Skill|{{SUBPAGENAME}}]]
 
     | common = [[Category:Common Dwarf Skill|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Dwarf Skill|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Dwarf Skill|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Dwarf Skill|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Dwarf Skill|{{SUBPAGENAME}}]]
     | epic = [[Category:Epic Dwarf Skill|{{SUBPAGENAME}}]] }}
+
     | epic = [[Category:Epic 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}}]] }}
 
| 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}}]]
 
     | uncommon = [[Category:Uncommon Human Skill|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Human Skill|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Human Skill|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Human Skill|{{SUBPAGENAME}}]]
     | epic = [[Category:Epic Human Skill|{{SUBPAGENAME}}]] }}
+
     | epic = [[Category:Epic Human Skill|{{SUBPAGENAME}}]]
 +
    | legendary = [[Category:Legendary Human Skill|{{SUBPAGENAME}}]] }}
 
| arcane skill = [[Category:Arcane Skill|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
| arcane skill = [[Category:Arcane Skill|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
     | common = [[Category:Common Arcane Skill|{{SUBPAGENAME}}]]
 
     | common = [[Category:Common Arcane Skill|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Arcane Skill|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Arcane Skill|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Arcane Skill|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Arcane Skill|{{SUBPAGENAME}}]]
     | epic = [[Category:Epic Arcane Skill|{{SUBPAGENAME}}]] }}
+
     | epic = [[Category:Epic Arcane Skill|{{SUBPAGENAME}}]]
 +
    | legendary = [[Category:Legendary Arcane Skill|{{SUBPAGENAME}}]] }}
 
| divine skill = [[Category:Divine Skill|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
| divine skill = [[Category:Divine Skill|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
     | common = [[Category:Common Divine Skill|{{SUBPAGENAME}}]]
 
     | common = [[Category:Common Divine Skill|{{SUBPAGENAME}}]]
Line 86: Line 102:
 
     | rare = [[Category:Rare Divine Skill|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Divine Skill|{{SUBPAGENAME}}]]
 
     | epic = [[Category:Epic Divine Skill|{{SUBPAGENAME}}]] }}
 
     | epic = [[Category:Epic Divine Skill|{{SUBPAGENAME}}]] }}
 +
    | legendary = [[Category:Legendary Divine Skill|{{SUBPAGENAME}}]] }}
 
| martial skill = [[Category:Martial Skill|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
| martial skill = [[Category:Martial Skill|{{SUBPAGENAME}}]] {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }}
 
     | common = [[Category:Common Martial Skill|{{SUBPAGENAME}}]]
 
     | common = [[Category:Common Martial Skill|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Martial Skill|{{SUBPAGENAME}}]]
 
     | uncommon = [[Category:Uncommon Martial Skill|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Martial Skill|{{SUBPAGENAME}}]]
 
     | rare = [[Category:Rare Martial Skill|{{SUBPAGENAME}}]]
     | epic = [[Category:Epic Martial Skill|{{SUBPAGENAME}}]] }}
+
     | epic = [[Category:Epic Martial Skill|{{SUBPAGENAME}}]]
 +
    | legendary = [[Category:Legendary Martial Skill|{{SUBPAGENAME}}]] }}
 
}}
 
}}
 
</includeonly>
 
</includeonly>

Revision as of 19:04, 5 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]]


      
Personal tools
Namespaces

Variants
Actions
Navigation
Tools