Template:CardCat

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<includeonly> {{#if: {{{2|}}}| {{SUBPAGENAME}} {{#switch: {{uc: {{{cardcolor1}}}{{{cardcolor2}}} }} | REDBLUE = [[Category:Attack + Move Cards|{{SUB...")
 
Line 2: Line 2:
 
{{#if: {{{2|}}}|
 
{{#if: {{{2|}}}|
 
[[Category:Hybrid Cards|{{SUBPAGENAME}}]]
 
[[Category:Hybrid Cards|{{SUBPAGENAME}}]]
{{#switch: {{uc: {{{cardcolor1}}}{{{cardcolor2}}} }}
+
{{#switch: {{uc: {{{1}}}{{{2}}} }}
  | REDBLUE = [[Category:Attack + Move Cards|{{SUBPAGENAME}}]]
+
  | REDBLUE = [[Category:Attack + Move Card|{{SUBPAGENAME}}]]
  | BLUERED = [[Category:Attack + Move Cards|{{SUBPAGENAME}}]]
+
  | BLUERED = [[Category:Attack + Move Card|{{SUBPAGENAME}}]]
  | REDGREEN = [[Category:Attack + Block Cards|{{SUBPAGENAME}}]]
+
  | REDGREEN = [[Category:Attack + Block Card|{{SUBPAGENAME}}]]
  | GREENRED = [[Category:Attack + Block Cards|{{SUBPAGENAME}}]]
+
  | GREENRED = [[Category:Attack + Block Card|{{SUBPAGENAME}}]]
  | REDGREY = [[Category:Attack + Armor Cards|{{SUBPAGENAME}}]]
+
  | REDGREY = [[Category:Attack + Armor Card|{{SUBPAGENAME}}]]
  | GREYRED = [[Category:Attack + Armor Cards|{{SUBPAGENAME}}]]
+
  | GREYRED = [[Category:Attack + Armor Card|{{SUBPAGENAME}}]]
  | REDWHITE = [[Category:Assist + Attack Cards|{{SUBPAGENAME}}]]
+
  | REDWHITE = [[Category:Assist + Attack Card|{{SUBPAGENAME}}]]
  | WHITERED = [[Category:Assist + Attack Cards|{{SUBPAGENAME}}]]
+
  | WHITERED = [[Category:Assist + Attack Card|{{SUBPAGENAME}}]]
  | REDORANGE = [[Category:Attack + Boost Cards|{{SUBPAGENAME}}]]
+
  | REDORANGE = [[Category:Attack + Boost Card|{{SUBPAGENAME}}]]
  | ORANGERED = [[Category:Attack + Boost Cards|{{SUBPAGENAME}}]]
+
  | ORANGERED = [[Category:Attack + Boost Card|{{SUBPAGENAME}}]]
  | REDPURPLE = [[Category:Attack + Utility Cards|{{SUBPAGENAME}}]]
+
  | REDPURPLE = [[Category:Attack + Utility Card|{{SUBPAGENAME}}]]
  | PURPLERED = [[Category:Attack + Utility Cards|{{SUBPAGENAME}}]]
+
  | PURPLERED = [[Category:Attack + Utility Card|{{SUBPAGENAME}}]]
  | REDBLACK = [[Category:Attack + Handicap Cards|{{SUBPAGENAME}}]]
+
  | REDBLACK = [[Category:Attack + Handicap Card|{{SUBPAGENAME}}]]
  | BLACKRED = [[Category:Attack + Handicap Cards|{{SUBPAGENAME}}]]
+
  | BLACKRED = [[Category:Attack + Handicap Card|{{SUBPAGENAME}}]]
  | BLUEGREEN = [[Category:Block + Move Cards|{{SUBPAGENAME}}]]
+
  | BLUEGREEN = [[Category:Block + Move Card|{{SUBPAGENAME}}]]
  | GREENBLUE = [[Category:Block + Move Cards|{{SUBPAGENAME}}]]
+
  | GREENBLUE = [[Category:Block + Move Card|{{SUBPAGENAME}}]]
  | BLUEGREY = [[Category:Armor + Move Cards|{{SUBPAGENAME}}]]
+
  | BLUEGREY = [[Category:Armor + Move Card|{{SUBPAGENAME}}]]
  | GREYBLUE = [[Category:Armor + Move Cards|{{SUBPAGENAME}}]]
+
  | GREYBLUE = [[Category:Armor + Move Card|{{SUBPAGENAME}}]]
  | BLUEWHITE = [[Category:Assist + Move Cards|{{SUBPAGENAME}}]]
+
  | BLUEWHITE = [[Category:Assist + Move Card|{{SUBPAGENAME}}]]
  | WHITEBLUE = [[Category:Assist + Move Cards|{{SUBPAGENAME}}]]
+
  | WHITEBLUE = [[Category:Assist + Move Card|{{SUBPAGENAME}}]]
  | BLUEORANGE = [[Category:Move + Boost Cards|{{SUBPAGENAME}}]]
+
  | BLUEORANGE = [[Category:Move + Boost Card|{{SUBPAGENAME}}]]
  | ORANGEBLUE = [[Category:Move + Boost Cards|{{SUBPAGENAME}}]]
+
  | ORANGEBLUE = [[Category:Move + Boost Card|{{SUBPAGENAME}}]]
  | BLUEPURPLE = [[Category:Move + Utility Cards|{{SUBPAGENAME}}]]
+
  | BLUEPURPLE = [[Category:Move + Utility Card|{{SUBPAGENAME}}]]
  | PURPLEBLUE = [[Category:MOve + Utility Cards|{{SUBPAGENAME}}]]
+
  | PURPLEBLUE = [[Category:MOve + Utility Card|{{SUBPAGENAME}}]]
  | BLUEBLACK = [[Category:Handicap + Move Cards|{{SUBPAGENAME}}]]
+
  | BLUEBLACK = [[Category:Handicap + Move Card|{{SUBPAGENAME}}]]
  | BLACKBLUE = [[Category:Handicap + Move Cards|{{SUBPAGENAME}}]]
+
  | BLACKBLUE = [[Category:Handicap + Move Card|{{SUBPAGENAME}}]]
  | GREENGREY = [[Category:Armor + Block Cards|{{SUBPAGENAME}}]]
+
  | GREENGREY = [[Category:Armor + Block Card|{{SUBPAGENAME}}]]
  | GREYGREEN = [[Category:Armor + Block Cards|{{SUBPAGENAME}}]]
+
  | GREYGREEN = [[Category:Armor + Block Card|{{SUBPAGENAME}}]]
  | GREENWHITE = [[Category:Assist + Block Cards|{{SUBPAGENAME}}]]
+
  | GREENWHITE = [[Category:Assist + Block Card|{{SUBPAGENAME}}]]
  | WHITEGREEN = [[Category:Assist + Block Cards|{{SUBPAGENAME}}]]
+
  | WHITEGREEN = [[Category:Assist + Block Card|{{SUBPAGENAME}}]]
  | GREENORANGE = [[Category:Block + Boost Cards|{{SUBPAGENAME}}]]
+
  | GREENORANGE = [[Category:Block + Boost Card|{{SUBPAGENAME}}]]
  | ORANGEGREEN = [[Category:Block + Boost Cards|{{SUBPAGENAME}}]]
+
  | ORANGEGREEN = [[Category:Block + Boost Card|{{SUBPAGENAME}}]]
  | GREENPURPLE = [[Category:Block + Utility Cards|{{SUBPAGENAME}}]]
+
  | GREENPURPLE = [[Category:Block + Utility Card|{{SUBPAGENAME}}]]
  | PURPLEGREEN = [[Category:Block + Utility Cards|{{SUBPAGENAME}}]]
+
  | PURPLEGREEN = [[Category:Block + Utility Card|{{SUBPAGENAME}}]]
  | GREENBLACK = [[Category:Block + Handicap Cards|{{SUBPAGENAME}}]]
+
  | GREENBLACK = [[Category:Block + Handicap Card|{{SUBPAGENAME}}]]
  | BLACKGREEN = [[Category:Block + Handicap Cards|{{SUBPAGENAME}}]]
+
  | BLACKGREEN = [[Category:Block + Handicap Card|{{SUBPAGENAME}}]]
  | GREYWHITE = [[Category:Armor + Assist Cards|{{SUBPAGENAME}}]]
+
  | GREYWHITE = [[Category:Armor + Assist Card|{{SUBPAGENAME}}]]
  | WHITEGREY = [[Category:Armor + Assist Cards|{{SUBPAGENAME}}]]
+
  | WHITEGREY = [[Category:Armor + Assist Card|{{SUBPAGENAME}}]]
  | GREYORANGE = [[Category:Armor + Boost Cards|{{SUBPAGENAME}}]]
+
  | GREYORANGE = [[Category:Armor + Boost Card|{{SUBPAGENAME}}]]
  | ORANGEGREY = [[Category:Armor + Boost Cards|{{SUBPAGENAME}}]]
+
  | ORANGEGREY = [[Category:Armor + Boost Card|{{SUBPAGENAME}}]]
  | GREYPURPLE = [[Category:Armor + Utility Cards|{{SUBPAGENAME}}]]
+
  | GREYPURPLE = [[Category:Armor + Utility Card|{{SUBPAGENAME}}]]
  | PURPLEGREY = [[Category:Armor + Utility Cards|{{SUBPAGENAME}}]]
+
  | PURPLEGREY = [[Category:Armor + Utility Card|{{SUBPAGENAME}}]]
  | GREYBLACK = [[Category:Armor + Handicap Cards|{{SUBPAGENAME}}]]
+
  | GREYBLACK = [[Category:Armor + Handicap Card|{{SUBPAGENAME}}]]
  | BLACKGREY = [[Category:Armor + Handicap Cards|{{SUBPAGENAME}}]]
+
  | BLACKGREY = [[Category:Armor + Handicap Card|{{SUBPAGENAME}}]]
  | WHITEORANGE = [[Category:Assist + Boost Cards|{{SUBPAGENAME}}]]
+
  | WHITEORANGE = [[Category:Assist + Boost Card|{{SUBPAGENAME}}]]
  | ORANGEWHITE = [[Category:Assist + Boost Cards|{{SUBPAGENAME}}]]
+
  | ORANGEWHITE = [[Category:Assist + Boost Card|{{SUBPAGENAME}}]]
  | WHITEPURPLE = [[Category:Assist + Utility Cards|{{SUBPAGENAME}}]]
+
  | WHITEPURPLE = [[Category:Assist + Utility Card|{{SUBPAGENAME}}]]
  | PURPLEWHITE = [[Category:Assist + Utility Cards|{{SUBPAGENAME}}]]
+
  | PURPLEWHITE = [[Category:Assist + Utility Card|{{SUBPAGENAME}}]]
  | WHITEBLACK = [[Category:Assist + Handicap Cards|{{SUBPAGENAME}}]]
+
  | WHITEBLACK = [[Category:Assist + Handicap Card|{{SUBPAGENAME}}]]
  | BLACKWHITE = [[Category:Assist + Handicap Cards|{{SUBPAGENAME}}]]
+
  | BLACKWHITE = [[Category:Assist + Handicap Card|{{SUBPAGENAME}}]]
  | ORANGEPURPLE = [[Category:Boost + Utility Cards|{{SUBPAGENAME}}]]
+
  | ORANGEPURPLE = [[Category:Boost + Utility Card|{{SUBPAGENAME}}]]
  | PURPLEORANGE = [[Category:Boost + Utility Cards|{{SUBPAGENAME}}]]
+
  | PURPLEORANGE = [[Category:Boost + Utility Card|{{SUBPAGENAME}}]]
  | ORANGEBLACK = [[Category:Boost + Handicap Cards|{{SUBPAGENAME}}]]
+
  | ORANGEBLACK = [[Category:Boost + Handicap Card|{{SUBPAGENAME}}]]
  | BLACKORANGE = [[Category:Boost + Handicap Cards|{{SUBPAGENAME}}]]
+
  | BLACKORANGE = [[Category:Boost + Handicap Card|{{SUBPAGENAME}}]]
  | PURPLEBLACK = [[Category:Handicap + Utility Cards|{{SUBPAGENAME}}]]
+
  | PURPLEBLACK = [[Category:Handicap + Utility Card|{{SUBPAGENAME}}]]
  | BLACKPURPLE = [[Category:Handicap + Utility Cards|{{SUBPAGENAME}}]]
+
  | BLACKPURPLE = [[Category:Handicap + Utility Card|{{SUBPAGENAME}}]]
 
}}|  
 
}}|  
 
{{#switch: {{uc:{{{1}}} }}
 
{{#switch: {{uc:{{{1}}} }}
  | RED = [[Category:Attack Cards|{{SUBPAGENAME}}]]
+
  | RED = [[Category:Attack Card|{{SUBPAGENAME}}]]{{ #switch: {{ lc: {{CardRarity|{{{3}}} }} }}
  | BLUE = [[Category:Movement Cards|{{SUBPAGENAME}}]]
+
    | common = [[Category:Common Attack Card|{{SUBPAGENAME}}]]
  | GREEN = [[Category:Block Cards|{{SUBPAGENAME}}]]
+
    | uncommon = [[Category:Uncommon Attack Card|{{SUBPAGENAME}}]]
  | GREY = [[Category:Armor Cards|{{SUBPAGENAME}}]]
+
    | rare = [[Category:Rare Attack Card|{{SUBPAGENAME}}]]
  | WHITE = [[Category:Assist Cards|{{SUBPAGENAME}}]]
+
    | epic = [[Category:Epic Attack Card|{{SUBPAGENAME}}]]
  | ORANGE = [[Category:Boost Cards|{{SUBPAGENAME}}]]
+
    | no rarity! = [[Category:No Rarity Card|{{SUBPAGENAME}}]] }}
  | PURPLE = [[Category:Utility Cards|{{SUBPAGENAME}}]]
+
  | BLUE = [[Category:Movement Card|{{SUBPAGENAME}}]]
  | BLACK = [[Category:Handicap Cards|{{SUBPAGENAME}}]]
+
  | GREEN = [[Category:Block Card|{{SUBPAGENAME}}]]
 +
  | GREY = [[Category:Armor Card|{{SUBPAGENAME}}]]
 +
  | WHITE = [[Category:Assist Card|{{SUBPAGENAME}}]]
 +
  | ORANGE = [[Category:Boost Card|{{SUBPAGENAME}}]]
 +
  | PURPLE = [[Category:Utility Card|{{SUBPAGENAME}}]]
 +
  | BLACK = [[Category:Handicap Card|{{SUBPAGENAME}}]]
 
}}  
 
}}  
 
}}
 
}}
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
Instruction for item categorization template, usage is as follows:
+
Instruction for card categorization template, usage is as follows:
  
 
<pre>
 
<pre>
{{ItemCat|type|rarity}}
+
{{CardCat|cardcolor1|cardcolor2|rarity}}
 
</pre>
 
</pre>
  
Type and rarity are mandatory fields. This template uses the ItemType and ItemRarity templates, hence inputs must be acceptable by them.  
+
cardcolor1 is a mandatory field. This template uses the CardRarity template, hence inputs must be acceptable by them.  
  
 
== Examples ==
 
== Examples ==
<code><nowiki>{{ItemCat|W|r|}} = [[Category:Weapon]] [[Category:Rare Weapon]]</nowiki></code>
+
<code><nowiki>{{CardCat|ORANGE|BLUE|r}} = [[Category:Move + Boost Card]][[Category:Rare Move + Boost Card]]</nowiki></code>
  
<code><nowiki>{{ItemCat|Dfs|e}} = [[Category:Dwarf Skill ]] [[Category:Epic Dwarf Skill]]</nowiki></code>
+
<code><nowiki>{{CardCat|Dfs|e}} = [[Category:Dwarf Skill ]] [[Category:Epic Dwarf Skill]]</nowiki></code>
  
<code><nowiki>{{ItemCat|B|c}} = [[Category:Boots]] [[Category:Common Boots]]</nowiki></code>
+
<code><nowiki>{{CardCat|B|c}} = [[Category:Boots]] [[Category:Common Boots]]</nowiki></code>
  
 
</noinclude>
 
</noinclude>

Revision as of 00:12, 12 February 2013


Instruction for card categorization template, usage is as follows:

{{CardCat|cardcolor1|cardcolor2|rarity}}

cardcolor1 is a mandatory field. This template uses the CardRarity template, hence inputs must be acceptable by them.

Examples

{{CardCat|ORANGE|BLUE|r}} = [[Category:Move + Boost Card]][[Category:Rare Move + Boost Card]]

{{CardCat|Dfs|e}} = [[Category:Dwarf Skill ]] [[Category:Epic Dwarf Skill]]

{{CardCat|B|c}} = [[Category:Boots]] [[Category:Common Boots]]


      
Personal tools
Namespaces

Variants
Actions
Navigation
Tools