Template:CardType

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
m (Protected "Template:CardType" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
 
(15 intermediate revisions by one user not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{{1|}}}
+
<includeonly>{{#switch: {{uc:{{{1|}}} }}
| Blue = Movement
+
| blue = Movement
+
 
  | BLUE = Movement
 
  | BLUE = Movement
| Red = Attack
 
| red = Attack
 
 
  | RED = Attack
 
  | RED = Attack
| Green = Block
 
| green = Block
 
 
  | GREEN = Block
 
  | GREEN = Block
| Grey = Armor
 
| grey = Armor
 
 
  | GREY = Armor
 
  | GREY = Armor
| White = Buff
+
  | WHITE = Assist
| white = Buff
+
  | WHITE = Buff
+
| Orange = Boost
+
| orange = Boost
+
 
  | ORANGE = Boost
 
  | ORANGE = Boost
| Purple = Utility
 
| purple = Utility
 
 
  | PURPLE = Utility
 
  | PURPLE = Utility
| Black = Drawback
+
  | BLACK = Handicap
| black = Drawback
+
  | #default = ERROR TYPE !
  | BLACK = Drawback
+
}}{{#if: {{{2|}}}|
  | #default = No such type ! Check input !
+
{{#switch: {{uc: {{{2}}} }}
}}
+
  | BLUE =, Movement
{{#if: {{{2|}}}|
+
  | RED =, Attack
{{#switch: {{{2|}}}
+
  | GREEN =, Block
| Blue = , Movement
+
  | GREY =, Armor
| blue = , Movement
+
  | WHITE =, Assist
  | BLUE = , Movement
+
  | ORANGE =, Boost
| Red = , Attack
+
  | PURPLE =, Utility
| red = , Attack
+
  | BLACK =, Handicap
  | RED = , Attack
+
}}| }}{{#if: {{{3|}}}|
| Green = , Block
+
{{#switch: {{uc: {{{3}}} }}
| green = , Block
+
  | BLUE =, Movement
  | GREEN = , Block
+
  | RED =, Attack
| Grey = , Armor
+
  | GREEN =, Block
| grey = , Armor
+
  | GREY =, Armor
  | GREY = , Armor
+
  | WHITE =, Assist
| White = , Buff
+
  | ORANGE =, Boost
| white = , Buff
+
  | PURPLE =, Utility
  | WHITE = , Buff
+
  | BLACK =, Handicap
| Orange = , Boost
+
}}| }}</includeonly><noinclude>
| orange = , Boost
+
  | ORANGE = , Boost
+
| Purple = , Utility
+
| purple = , Utility
+
  | PURPLE = , Utility
+
| Black = , Drawback
+
| black = , Drawback
+
  | BLACK = , Drawback
+
| #default = No such type ! Check input !
+
}}|}}
+
{{#if: {{{3|}}}|
+
{{#switch: {{{3|}}}
+
| Blue = , Movement
+
| blue = , Movement
+
  | BLUE = , Movement
+
| Red = , Attack
+
| red = , Attack
+
  | RED = , Attack
+
| Green = , Block
+
| green = , Block
+
  | GREEN = , Block
+
| Grey = , Armor
+
| grey = , Armor
+
  | GREY = , Armor
+
| White = , Buff
+
| white = , Buff
+
  | WHITE = , Buff
+
| Orange = , Boost
+
| orange = , Boost
+
  | ORANGE = , Boost
+
| Purple = , Utility
+
| purple = , Utility
+
  | PURPLE = , Utility
+
| Black = , Drawback
+
| black = , Drawback
+
  | BLACK = , Drawback
+
| #default = No such type ! Check input !
+
}}|}}
+
 
+
</includeonly><noinclude>
+
  
 
Displays a card type. Usage:
 
Displays a card type. Usage:
Line 91: Line 37:
  
 
Card type = color of card. May also confirm via the effects of the card to determine if it is a hybrid card.
 
Card type = color of card. May also confirm via the effects of the card to determine if it is a hybrid card.
Maximum hybrid count = 3.
+
Maximum hybrid count = 3. Also caters for caps or non-caps input.
 +
 
 +
Currently supported colors and card types:
 +
blue = Movement, red = Attack, green = Block, grey = Armor, white = Assist, orange = Boost, purple = Utility, black = Drawback
 +
 
 +
 
 +
== Examples ==
 +
<code><nowiki>{{CardType|red||}}</nowiki></code> = Attack
 +
 
 +
<code><nowiki>{{CardType|red| | }}</nowiki></code> = Attack
 +
 
 +
<code><nowiki>{{CardType|red|blue|green}}</nowiki></code> = Attack , Movement , Block
 +
 
 +
<code><nowiki>{{CardType|brown}}</nowiki></code> = ERROR TYPE !
 +
 
 +
<code><nowiki>{{CardType|brown|brown|red}}</nowiki></code> = ERROR TYPE ! , ERROR TYPE ! , Attack
 +
 
 
</noinclude>
 
</noinclude>

Latest revision as of 00:02, 14 September 2013


Displays a card type. Usage:

{{CardType|color 1|color 2|color 3}}

Card type = color of card. May also confirm via the effects of the card to determine if it is a hybrid card. Maximum hybrid count = 3. Also caters for caps or non-caps input.

Currently supported colors and card types: blue = Movement, red = Attack, green = Block, grey = Armor, white = Assist, orange = Boost, purple = Utility, black = Drawback


[edit] Examples

{{CardType|red||}} = Attack

{{CardType|red| | }} = Attack

{{CardType|red|blue|green}} = Attack , Movement , Block

{{CardType|brown}} = ERROR TYPE !

{{CardType|brown|brown|red}} = ERROR TYPE ! , ERROR TYPE ! , Attack


      
Personal tools
Namespaces

Variants
Actions
Navigation
Tools