Template:CardCat
From Card Hunter Wiki
(Difference between revisions)
Line 21: | Line 21: | ||
}}{{#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}}} }} }} |
Revision as of 03:57, 7 November 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|BLACK||u}} = [[Category:Handicap Card]] [[Category:Uncommon Handicap Card]]