Template:CardCat
From Card Hunter Wiki
(Difference between revisions)
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | {{ #switch: {{ lc: {{CardRarity|{{{3}}} }} }} | + | {{#switch: {{uc:{{{4|}}} }} |
+ | | BLACK = [[Category:Black Quality Card|{{SUBPAGENAME}}]] | ||
+ | | BROWN = [[Category:Paper Quality Card|{{SUBPAGENAME}}]] | ||
+ | | BEIGE = [[Category:Paper Quality 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}}]] | | common = [[Category:Common Card|{{SUBPAGENAME}}]] | ||
| uncommon = [[Category:Uncommon Card|{{SUBPAGENAME}}]] | | uncommon = [[Category:Uncommon Card|{{SUBPAGENAME}}]] |
Revision as of 19:38, 6 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]]