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:{...")
 
m (Protected "Template:ItemTalent" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
 
(30 intermediate revisions by one user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{{#switch: {{ucfirst:{{{1|}}} }}
{{#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>
+
| S = [[Image:TalentBronzeFlat.png]]
 +
| C = [[Image:TalentNormalFlat.png]]
 +
| T = [[Image:TalentSilverFlat.png]]
 +
| P = [[Image:TalentGoldFlat.png]]
 +
| #default = <span style="color:red">undefined power token!</span>
 +
|}}{{#if: {{{2|}}}|
 +
{{#switch: {{ucfirst:{{{2}}} }}
 +
| S = [[Image:TalentBronzeFlat.png]]
 +
| C = [[Image:TalentNormalFlat.png]]
 +
| T = [[Image:TalentSilverFlat.png]]
 +
| P = [[Image:TalentGoldFlat.png]]
 +
| #default = <span style="color:red">undefined power token!</span>
 +
}}| }}{{#if:{{{2|}}}|[[Has talent::{{uc:{{{1}}}{{{2}}} }}| ]]|[[Has talent::{{uc:{{{1}}} }}| ]] }}</includeonly><noinclude>
  
Displays a talent symbol. Usage:
+
 
 +
Displays a power token 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 below to show that power token symbol
 
|Symbol 2 (optional), another symbol to display
 
|Symbol 2 (optional), another symbol to display
|Symbol 3 (optional), another symbol to display
 
|Symbol 4 (optional), another symbol to display
 
 
}}
 
}}
 
</pre>
 
</pre>
  
CS notation is used when denoting talent costs. C is circle, S is square.
+
CSTP notation is used when denoting power token costs. C is circle, S is square, T is triangle, P is pentagon.
 +
 
 +
== Examples ==
 +
<code><nowiki>{{ItemTalent|C|S}}</nowiki></code> = {{ItemTalent|C|S}}
 +
 
 +
<code><nowiki>{{ItemTalent|S|C}}</nowiki></code> = {{ItemTalent|S|C}}
 +
 
 +
<code><nowiki>{{ItemTalent|P|T}}</nowiki></code> = {{ItemTalent|P|T}}
 +
 
 
</noinclude>
 
</noinclude>

Latest revision as of 23:58, 13 September 2013


Displays a power token symbol. Usage:

{{ItemTalent
|Symbol 1 (optional), pick one of the letters below to show that power token symbol
|Symbol 2 (optional), another symbol to display
}}

CSTP notation is used when denoting power token costs. C is circle, S is square, T is triangle, P is pentagon.

[edit] Examples

{{ItemTalent|C|S}} = TalentNormalFlat.pngTalentBronzeFlat.png

{{ItemTalent|S|C}} = TalentBronzeFlat.pngTalentNormalFlat.png

{{ItemTalent|P|T}} = TalentGoldFlat.pngTalentSilverFlat.png


      
Personal tools
Namespaces

Variants
Actions
Navigation
Tools