Difference between revisions of "Template:Ctwd"
(Created template for combatTalentWeaponDamage) |
(Reverted formatting change since base value is reasonably close to actual minimum) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 19: | Line 19: | ||
which should be entered into the wiki as | which should be entered into the wiki as | ||
− | <pre>{{ | + | <pre>{{ctwd|100|150%}}</pre> |
and will produce the following text | and will produce the following text | ||
− | {{ | + | {{ctwd|100|150%}} |
Note that any percentage signs must be inserted manually with the parameters. | Note that any percentage signs must be inserted manually with the parameters. | ||
Line 29: | Line 29: | ||
===Additional Parameters=== | ===Additional Parameters=== | ||
− | Parameter 3 of this template is left to enter any value for ''t2''. Since ''t2'' | + | Parameter 3 of this template is left to enter any value for ''t2''. Since ''t2'' appearing in the superscript might be a bit confusing, consider explaining its effects directly in a talent's description instead. |
Latest revision as of 09:02, 26 August 2014
Introduction
This template is used to denote talent parameters that scale by the combatTalentWeaponDamage function.
The template accepts up to three parameters, corresponding to those in the LUA code: base, max, and t2. It is assumed that these parameters will be fed to the template in the order specified above.
The first two parameters of this template are required, and the third one is optional.
Basic Example
The LUA code for the damage of Stunning Blow calls for
self:combatTalentWeaponDamage(t, 1, 1.5)
which should be entered into the wiki as
{{ctwd|100|150%}}
and will produce the following text
100–150%cTWD
Note that any percentage signs must be inserted manually with the parameters.
Additional Parameters
Parameter 3 of this template is left to enter any value for t2. Since t2 appearing in the superscript might be a bit confusing, consider explaining its effects directly in a talent's description instead.