Difference between revisions of "Template:Ctspd"
(Added documenation) |
(Copy edit) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><onlyinclude>{{{1}}} | + | <includeonly><onlyinclude><sub>[{{{1}}}]</sub>{{{2}}}<sup>[[Scaling#cTSpD|cTSpD{{#if:{{{3|}}}|:{{{3}}}|}}]]</sup></onlyinclude></includeonly> |
[[Category:Templates]] | [[Category:Templates]] | ||
Line 7: | Line 7: | ||
This template is used to denote talent parameters that scale by the [[Scaling#cTSpD|combatTalentSpellDamage]] function. | This template is used to denote talent parameters that scale by the [[Scaling#cTSpD|combatTalentSpellDamage]] function. | ||
− | The template accepts | + | The template accepts two parameters, corresponding to those in the LUA code: ''base'' and ''max''. It is assumed that these parameters will be fed to the template in the order specified above. The presence of ''spellpower_override'' is a special case that will not be handled by this template, and should be indicated elsewhere in the talent's description instead. |
Both parameters to this template are required. | Both parameters to this template are required. | ||
+ | |||
+ | You can also pass in an optional 3rd parameter to be displayed in the superscript link. Inserting ''PM'' as parameter 3 would indicate the use of a Paradox Modifier for example. | ||
===Basic Example=== | ===Basic Example=== | ||
Line 19: | Line 21: | ||
then one should invoke the template in wiki markup with | then one should invoke the template in wiki markup with | ||
− | <pre>{{ | + | <pre>{{ctspd|25|290}}</pre> |
which will produce the following text | which will produce the following text | ||
− | {{ | + | {{ctspd|25|290}} |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | Note that any percentage signs must be inserted manually with the parameters. |
Latest revision as of 08:56, 26 August 2014
Introduction
This template is used to denote talent parameters that scale by the combatTalentSpellDamage function.
The template accepts two parameters, corresponding to those in the LUA code: base and max. It is assumed that these parameters will be fed to the template in the order specified above. The presence of spellpower_override is a special case that will not be handled by this template, and should be indicated elsewhere in the talent's description instead.
Both parameters to this template are required.
You can also pass in an optional 3rd parameter to be displayed in the superscript link. Inserting PM as parameter 3 would indicate the use of a Paradox Modifier for example.
Basic Example
If the LUA code calls for
self:combatTalentSpellDamage(t, 25, 290)
then one should invoke the template in wiki markup with
{{ctspd|25|290}}
which will produce the following text
[25]290cTSpD
Note that any percentage signs must be inserted manually with the parameters.