Template:ItemTalent

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
m (Protected "Template:ItemTalent" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
 
(25 intermediate revisions by one user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{{#switch: {{ucfirst:{{{1|}}} }}
{{#switch: {{ucfirst:{{{1|}}} }}
+
| S = [[Image:TalentBronzeFlat.png]]
| S = [[Image:talent_S.jpg]]
+
| C = [[Image:TalentNormalFlat.png]]
| C = [[Image:talent_C.jpg]]
+
| T = [[Image:TalentSilverFlat.png]]
| #default = <span style="color:red">undefined talent!</span>
+
| P = [[Image:TalentGoldFlat.png]]
 +
| #default = <span style="color:red">undefined power token!</span>
 
|}}{{#if: {{{2|}}}|
 
|}}{{#if: {{{2|}}}|
 
{{#switch: {{ucfirst:{{{2}}} }}
 
{{#switch: {{ucfirst:{{{2}}} }}
| S = [[Image:talent_S.jpg]]
+
| S = [[Image:TalentBronzeFlat.png]]
| C = [[Image:talent_C.jpg]]
+
| C = [[Image:TalentNormalFlat.png]]
| #default = <span style="color:red">undefined talent!</span>
+
| T = [[Image:TalentSilverFlat.png]]
}}| }}{{#if: {{{3|}}}|
+
| P = [[Image:TalentGoldFlat.png]]
{{#switch: {{ucfirst:{{{3}}} }}
+
| #default = <span style="color:red">undefined power token!</span>
| S = [[Image:talent_S.jpg]]
+
}}| }}{{#if:{{{2|}}}|[[Has talent::{{uc:{{{1}}}{{{2}}} }}| ]]|[[Has talent::{{uc:{{{1}}} }}| ]] }}</includeonly><noinclude>
| C = [[Image:talent_C.jpg]]
+
| #default = <span style="color:red">undefined talent!</span>
+
}}| }}{{#if: {{{4|}}}|
+
{{#switch: {{ucfirst:{{{4}}} }}
+
| S = [[Image:talent_S.jpg]]
+
| C = [[Image:talent_C.jpg]]
+
| #default = <span style="color:red">undefined talent!</span>
+
}}| }}</includeonly><noinclude>
+
  
  
Displays a talent symbol. Usage:
+
Displays a power token symbol. Usage:
 
<pre>
 
<pre>
 
{{ItemTalent
 
{{ItemTalent
|Symbol 1 (optional), pick one of the letters 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 ==
 
== Examples ==
<code><nowiki>{{ItemTalent|C|S|}}</nowiki></code> = [[Image:talent_C.jpg]][[Image:talent_S.jpg]]
+
<code><nowiki>{{ItemTalent|C|S}}</nowiki></code> = {{ItemTalent|C|S}}
  
<code><nowiki>{{ItemTalent|S|C}}</nowiki></code> = [[Image:talent_S.jpg]][[Image:talent_C.jpg]]
+
<code><nowiki>{{ItemTalent|S|C}}</nowiki></code> = {{ItemTalent|S|C}}
  
<code><nowiki>{{ItemTalent|s|c|P}}</nowiki></code> = [[Image:talent_S.jpg]][[Image:talent_C.jpg]]<span style="color:red">undefined talent!</span>
+
<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