Difference between revisions of "Template:Ctstd"

From Tales of Maj'Eyal
Jump to: navigation, search
(Created template for combatTalentStatDamage)
 
(Adjusted formatting)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><onlyinclude>{{{2}}}{{{3}}}<sup>[[Scaling#cTStD|cTStD:{{{1}}}]]</sup></onlyinclude></includeonly>
+
<includeonly><onlyinclude><sub>[{{{2}}}]</sub>{{{3}}}<sup>[[Scaling#cTStD|cTStD:{{{1}}}]]</sup></onlyinclude></includeonly>
  
 
[[Category:Templates]]
 
[[Category:Templates]]
Line 19: Line 19:
 
so one should use the wiki markup
 
so one should use the wiki markup
  
<pre>{{CTSTD|Cun|5|45}}</pre>
+
<pre>{{ctstd|Cun|5|45}}</pre>
  
 
which will produce the following text
 
which will produce the following text
  
  {{CTSTD|Cun|5|45}}
+
  {{ctstd|Cun|5|45}}
  
 
Note that any percentage signs must be inserted manually with the parameters.
 
Note that any percentage signs must be inserted manually with the parameters.

Latest revision as of 07:56, 26 August 2014


Introduction

This template is used to denote talent parameters that scale by the combatTalentStatDamage function.

The template accepts three parameters, corresponding to those in the LUA code: stat, base and max. It is assumed that these parameters will be fed to the template in the order specified above.

Both parameters to this template are required.

Basic Example

The LUA code for the armor penetration of Deadly Strikes calls for

self:combatTalentStatDamage(t, "cun", 5, 45)

so one should use the wiki markup

{{ctstd|Cun|5|45}}

which will produce the following text

[5]45cTStD:Cun

Note that any percentage signs must be inserted manually with the parameters.