Template:CardCat

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
 
(5 intermediate revisions by one user not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{{ #switch: {{ lc: {{CardRarity|{{{3}}} }} }}
+
{{#switch: {{uc:{{{4|}}} }}
     | common = [[Category:Common Card|{{SUBPAGENAME}}]]
+
| BLACK = [[Category:Black Quality Card|{{SUBPAGENAME}}]]
     | uncommon = [[Category:Uncommon Card|{{SUBPAGENAME}}]]
+
| BROWN = [[Category:Paper Quality Card|{{SUBPAGENAME}}]]
     | rare = [[Category:Rare Card|{{SUBPAGENAME}}]]
+
| BEIGE = [[Category:Paper Quality Card|{{SUBPAGENAME}}]]
     | epic = [[Category:Epic Card|{{SUBPAGENAME}}]]
+
| PAPER = [[Category:Paper Quality Card|{{SUBPAGENAME}}]]
 +
| TAN = [[Category:Paper Quality Card|{{SUBPAGENAME}}]]
 +
| BRONZE = [[Category:Bronze Quality Card|{{SUBPAGENAME}}]]
 +
| SILVER = [[Category:Silver Quality Card|{{SUBPAGENAME}}]]
 +
| GOLD = [[Category:Gold Quality Card|{{SUBPAGENAME}}]]
 +
| EMERALD = [[Category:Emerald Quality Card|{{SUBPAGENAME}}]]
 +
| GREEN = [[Category:Emerald Quality Card|{{SUBPAGENAME}}]]
 +
| VIOLET = [[Category:Amethyst Quality Card|{{SUBPAGENAME}}]]
 +
| PURPLE = [[Category:Amethyst Quality Card|{{SUBPAGENAME}}]]
 +
| AMETHYST = [[Category:Amethyst Quality Card|{{SUBPAGENAME}}]]
 +
}}{{ #switch: {{ lc: {{CardRarity|{{{3}}} }} }}
 +
     | common = [[Category:Common Card|{{SUBPAGENAME}}]]{{#switch: {{uc:{{{4|}}} }}
 +
| BLACK = [[Category:Common Black Quality Card|{{SUBPAGENAME}}]]
 +
| BROWN = [[Category:Common Paper Quality Card|{{SUBPAGENAME}}]]
 +
| BEIGE = [[Category:Common Paper Quality Card|{{SUBPAGENAME}}]]
 +
| PAPER = [[Category:Common Paper Quality Card|{{SUBPAGENAME}}]]
 +
| TAN = [[Category:Common Paper Quality Card|{{SUBPAGENAME}}]]
 +
| BRONZE = [[Category:Common Bronze Quality Card|{{SUBPAGENAME}}]]
 +
| SILVER = [[Category:Common Silver Quality Card|{{SUBPAGENAME}}]]
 +
| GOLD = [[Category:Common Gold Quality Card|{{SUBPAGENAME}}]]
 +
| EMERALD = [[Category:Common Emerald Quality Card|{{SUBPAGENAME}}]]
 +
| GREEN = [[Category:Common Emerald Quality Card|{{SUBPAGENAME}}]]
 +
| VIOLET = [[Category:Common Amethyst Quality Card|{{SUBPAGENAME}}]]
 +
| PURPLE = [[Category:Common Amethyst Quality Card|{{SUBPAGENAME}}]]
 +
| AMETHYST = [[Category:Common Amethyst Quality Card|{{SUBPAGENAME}}]]
 +
}}
 +
     | uncommon = [[Category:Uncommon Card|{{SUBPAGENAME}}]]{{#switch: {{uc:{{{4|}}} }}
 +
| BLACK = [[Category:Uncommon Black Quality Card|{{SUBPAGENAME}}]]
 +
| BROWN = [[Category:Uncommon Paper Quality Card|{{SUBPAGENAME}}]]
 +
| BEIGE = [[Category:Uncommon Paper Quality Card|{{SUBPAGENAME}}]]
 +
| PAPER = [[Category:Uncommon Paper Quality Card|{{SUBPAGENAME}}]]
 +
| TAN = [[Category:Uncommon Paper Quality Card|{{SUBPAGENAME}}]]
 +
| BRONZE = [[Category:Uncommon Bronze Quality Card|{{SUBPAGENAME}}]]
 +
| SILVER = [[Category:Uncommon Silver Quality Card|{{SUBPAGENAME}}]]
 +
| GOLD = [[Category:Uncommon Gold Quality Card|{{SUBPAGENAME}}]]
 +
| EMERALD = [[Category:Uncommon Emerald Quality Card|{{SUBPAGENAME}}]]
 +
| GREEN = [[Category:Uncommon Emerald Quality Card|{{SUBPAGENAME}}]]
 +
| VIOLET = [[Category:Uncommon Amethyst Quality Card|{{SUBPAGENAME}}]]
 +
| PURPLE = [[Category:Uncommon Amethyst Quality Card|{{SUBPAGENAME}}]]
 +
| AMETHYST = [[Category:Uncommon Amethyst Quality Card|{{SUBPAGENAME}}]]
 +
}}
 +
     | rare = [[Category:Rare Card|{{SUBPAGENAME}}]]{{#switch: {{uc:{{{4|}}} }}
 +
| BLACK = [[Category:Rare Black Quality Card|{{SUBPAGENAME}}]]
 +
| BROWN = [[Category:Rare Paper Quality Card|{{SUBPAGENAME}}]]
 +
| BEIGE = [[Category:Rare Paper Quality Card|{{SUBPAGENAME}}]]
 +
| PAPER = [[Category:Rare Paper Quality Card|{{SUBPAGENAME}}]]
 +
| TAN = [[Category:Rare Paper Quality Card|{{SUBPAGENAME}}]]
 +
| BRONZE = [[Category:Rare Bronze Quality Card|{{SUBPAGENAME}}]]
 +
| SILVER = [[Category:Rare Silver Quality Card|{{SUBPAGENAME}}]]
 +
| GOLD = [[Category:Rare Gold Quality Card|{{SUBPAGENAME}}]]
 +
| EMERALD = [[Category:Rare Emerald Quality Card|{{SUBPAGENAME}}]]
 +
| GREEN = [[Category:Rare Emerald Quality Card|{{SUBPAGENAME}}]]
 +
| VIOLET = [[Category:Rare Amethyst Quality Card|{{SUBPAGENAME}}]]
 +
| PURPLE = [[Category:Rare Amethyst Quality Card|{{SUBPAGENAME}}]]
 +
| AMETHYST = [[Category:Rare Amethyst Quality Card|{{SUBPAGENAME}}]]
 +
}}
 +
     | epic = [[Category:Epic Card|{{SUBPAGENAME}}]]{{#switch: {{uc:{{{4|}}} }}
 +
| BLACK = [[Category:Epic Black Quality Card|{{SUBPAGENAME}}]]
 +
| BROWN = [[Category:Epic Paper Quality Card|{{SUBPAGENAME}}]]
 +
| BEIGE = [[Category:Epic Paper Quality Card|{{SUBPAGENAME}}]]
 +
| PAPER = [[Category:Epic Paper Quality Card|{{SUBPAGENAME}}]]
 +
| TAN = [[Category:Epic Paper Quality Card|{{SUBPAGENAME}}]]
 +
| BRONZE = [[Category:Epic Bronze Quality Card|{{SUBPAGENAME}}]]
 +
| SILVER = [[Category:Epic Silver Quality Card|{{SUBPAGENAME}}]]
 +
| GOLD = [[Category:Epic Gold Quality Card|{{SUBPAGENAME}}]]
 +
| EMERALD = [[Category:Epic Emerald Quality Card|{{SUBPAGENAME}}]]
 +
| GREEN = [[Category:Epic Emerald Quality Card|{{SUBPAGENAME}}]]
 +
| VIOLET = [[Category:Epic Amethyst Quality Card|{{SUBPAGENAME}}]]
 +
| PURPLE = [[Category:Epic Amethyst Quality Card|{{SUBPAGENAME}}]]
 +
| AMETHYST = [[Category:Epic Amethyst Quality Card|{{SUBPAGENAME}}]]
 +
}}
 +
    | no rarity! = [[Category:No Rarity Card|{{SUBPAGENAME}}]]{{#switch: {{uc:{{{4|}}} }}
 +
| BLACK = [[Category:No Rarity Black Quality Card|{{SUBPAGENAME}}]]
 +
| BROWN = [[Category:No Rarity Paper Quality Card|{{SUBPAGENAME}}]]
 +
| BEIGE = [[Category:No Rarity Paper Quality Card|{{SUBPAGENAME}}]]
 +
| PAPER = [[Category:No Rarity Paper Quality Card|{{SUBPAGENAME}}]]
 +
| TAN = [[Category:No Rarity Paper Quality Card|{{SUBPAGENAME}}]]
 +
| BRONZE = [[Category:No Rarity Bronze Quality Card|{{SUBPAGENAME}}]]
 +
| SILVER = [[Category:No Rarity Silver Quality Card|{{SUBPAGENAME}}]]
 +
| GOLD = [[Category:No Rarity Gold Quality Card|{{SUBPAGENAME}}]]
 +
| EMERALD = [[Category:No Rarity Emerald Quality Card|{{SUBPAGENAME}}]]
 +
| GREEN = [[Category:No Rarity Emerald Quality Card|{{SUBPAGENAME}}]]
 +
| VIOLET = [[Category:No Rarity Amethyst Quality Card|{{SUBPAGENAME}}]]
 +
| PURPLE = [[Category:No Rarity Amethyst Quality Card|{{SUBPAGENAME}}]]
 +
| AMETHYST = [[Category:No Rarity Amethyst Quality Card|{{SUBPAGENAME}}]]
 +
}}
 
}}{{#if: {{{2|}}}|
 
}}{{#if: {{{2|}}}|
 
[[Category:Hybrid Card|{{SUBPAGENAME}}]]
 
[[Category:Hybrid Card|{{SUBPAGENAME}}]]
{{#switch: {{uc: {{{1}}}{{{2}}} }}
+
{{ #switch: {{ lc: {{CardRarity|{{{3}}} }} }}
 +
    | common = [[Category:Common Hybrid Card|{{SUBPAGENAME}}]]
 +
    | uncommon = [[Category:Uncommon Hybrid Card|{{SUBPAGENAME}}]]
 +
    | rare = [[Category:Rare Hybrid Card|{{SUBPAGENAME}}]]
 +
    | epic = [[Category:Epic Hybrid Card|{{SUBPAGENAME}}]]
 +
}}{{#switch: {{uc: {{{1}}}{{{2}}} }}
 
  | REDBLUE
 
  | REDBLUE
 
  | BLUERED = [[Category:Attack + Move Card|{{SUBPAGENAME}}]]{{ #switch: {{ lc: {{CardRarity|{{{3}}} }} }}
 
  | BLUERED = [[Category:Attack + Move Card|{{SUBPAGENAME}}]]{{ #switch: {{ lc: {{CardRarity|{{{3}}} }} }}
Line 294: Line 384:
  
 
<pre>
 
<pre>
{{CardCat|cardcolor1|cardcolor2|rarity}}
+
{{CardCat|cardcolor1|cardcolor2|rarity|titlebar}}
 
</pre>
 
</pre>
  
 
cardcolor1 is a mandatory field. This template uses the CardRarity template, 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>{{CardCat|ORANGE|BLUE|r}} = [[Category:Move + Boost Card]][[Category:Rare Move + Boost Card]]</nowiki></code>
 
<code><nowiki>{{CardCat|ORANGE|BLUE|r}} = [[Category:Move + Boost Card]][[Category:Rare Move + Boost Card]]</nowiki></code>
  
 
<code><nowiki>{{CardCat|BLACK||u}} = [[Category:Handicap Card]] [[Category:Uncommon Handicap Card]]</nowiki></code>
 
<code><nowiki>{{CardCat|BLACK||u}} = [[Category:Handicap Card]] [[Category:Uncommon Handicap Card]]</nowiki></code>
 
+
-->
 
</noinclude>
 
</noinclude>

Latest revision as of 06:19, 7 November 2013


Instruction for card categorization template, usage is as follows:

{{CardCat|cardcolor1|cardcolor2|rarity|titlebar}}

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

      
Personal tools
Namespaces

Variants
Actions
Navigation
Tools