Template:ItemCat

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{ #switch: {{ lc: {{ItemType|{{{1}}} }} }} | weapon = {{SUBPAGENAME}} {{ #switch: {{ lc: {{ItemRarity|{{{2}}} }} }} | common = [[Category:Common Weap...")
 
Line 1: Line 1:
 +
<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}}} }} }}
Line 23: Line 24:
 
| martial skill = [[Category:Martial Skill|{{SUBPAGENAME}}]]
 
| martial skill = [[Category:Martial Skill|{{SUBPAGENAME}}]]
 
}}
 
}}
 +
</includeonly>
 +
 +
<noinclude>
 +
 +
Instruction for item categorization template, usage is as follows:
 +
 +
<pre>
 +
{{ItemCat|type|rarity}}
 +
</pre>
 +
 +
Type and rarity are mandatory fields. This template uses the ItemType and ItemRarity templates, hence inputs must be acceptable by them.
 +
 +
== Examples ==
 +
<code><nowiki>{{ItemCat|W|r|}} = [[Category:Weapon]] [[Category:Rare Weapon]]</nowiki></code>
 +
 +
<code><nowiki>{{ItemCat|Dfs|e}} = [[Category:Dwarf Skill ]] [[Category:Epic Dwarf Skill]]</nowiki></code>
 +
 +
<code><nowiki>{{ItemCat|B|c}} = [[Category:Boots]] [[Category:Common Boots]]</nowiki></code>
 +
 +
</noinclude>

Revision as of 02:22, 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]]


      
Personal tools
Namespaces

Variants
Actions
Navigation
Tools