Template:ItemTalent

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<includeonly> {{#if:{{{1|}}}|{{#ifexist:Image:talent_{{ucfirst:{{{1}}}}}.jpg| [[Image:talent_{{ucfirst:{{{1}}}}}.jpg|{{{1}}} talent]] {{#if:{{{2|}}}|[[Image:talent_{{ucfirst:{...")
 
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{{#if:{{{1|}}}|{{#ifexist:Image:talent_{{ucfirst:{{{1}}}}}.jpg| [[Image:talent_{{ucfirst:{{{1}}}}}.jpg|{{{1}}} talent]] {{#if:{{{2|}}}|[[Image:talent_{{ucfirst:{{{2}}}}}.jpg|{{{2}}} talent]]}} {{#if:{{{3|}}}|[[Image:talent_{{ucfirst:{{{3}}}}}.jpg|{{{3}}} talent]]}} {{#if:{{{4|}}}|[[Image:talent_{{ucfirst:{{{4}}}}}.jpg|{{{4}}} talent]]}} |Invalid talent!}}|No talent}}</includeonly><noinclude>
+
{{#switch: {{ucfirst:{{{1|}}} }}
 +
| S = [[Image:talent_S.jpg]]
 +
| C = [[Image:talent_C.jpg]]
 +
|}}{{#if: {{{2|}}}|
 +
{{#switch: {{ucfirst:{{{2}}} }}
 +
| S = [[Image:talent_S.jpg]]
 +
| C = [[Image:talent_C.jpg]]
 +
}}| }}{{#if: {{{3|}}}|
 +
{{#switch: {{ucfirst:{{{3}}} }}
 +
| S = [[Image:talent_S.jpg]]
 +
| C = [[Image:talent_C.jpg]]
 +
}}| }}{{#if: {{{4|}}}|
 +
{{#switch: {{ucfirst:{{{4}}} }}
 +
| S = [[Image:talent_S.jpg]]
 +
| C = [[Image:talent_C.jpg]]
 +
}}| }}</includeonly><noinclude>
 +
 
  
 
Displays a talent symbol. Usage:
 
Displays a talent symbol. Usage:
 
<pre>
 
<pre>
 
{{ItemTalent
 
{{ItemTalent
|Symbol 1 (required), pick one of the letters/numbers below to show that talent symbol
+
|Symbol 1 (optional), pick one of the letters/numbers below to show that talent symbol
 
|Symbol 2 (optional), another symbol to display
 
|Symbol 2 (optional), another symbol to display
 
|Symbol 3 (optional), another symbol to display
 
|Symbol 3 (optional), another symbol to display
Line 13: Line 29:
  
 
CS notation is used when denoting talent costs. C is circle, S is square.
 
CS notation is used when denoting talent costs. C is circle, S is square.
 +
 +
== Examples ==
 +
<code><nowiki>{{ItemTalent|C|S|}}</nowiki></code> = Attack
 +
 +
<code><nowiki>{{ItemTalent|S|C}}</nowiki></code> = Attack
 +
 +
<code><nowiki>{{ItemTalent|red|blue|green}}</nowiki></code> = Attack , Movement , Block
 +
 +
<code><nowiki>{{ItemTalent|brown}}</nowiki></code> = ERROR TYPE !
 +
 +
<code><nowiki>{{ItemTalent|brown|brown|red}}</nowiki></code> = ERROR TYPE ! , ERROR TYPE ! , Attack
 +
 
</noinclude>
 
</noinclude>

Revision as of 19:00, 20 December 2012


Displays a talent symbol. Usage:

{{ItemTalent
|Symbol 1 (optional), pick one of the letters/numbers below to show that talent symbol
|Symbol 2 (optional), another symbol to display
|Symbol 3 (optional), another symbol to display
|Symbol 4 (optional), another symbol to display
}}

CS notation is used when denoting talent costs. C is circle, S is square.

Examples

{{ItemTalent|C|S|}} = Attack

{{ItemTalent|S|C}} = Attack

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

{{ItemTalent|brown}} = ERROR TYPE !

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


      
Personal tools
Namespaces

Variants
Actions
Navigation
Tools