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