Difference between revisions of "Template:Ctid"
From Tales of Maj'Eyal
m (Vyn moved page Template:CTID to Template:Ctid: Same reasoning) |
(Changed formatting to show stat_weight by default) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><onlyinclude>{{{ | + | <includeonly><onlyinclude>{{{2}}}–{{{3}}}<sup>[[Scaling#cTID|cTID:{{#if:{{{4|}}}|{{{4}}}|0.5}}{{{1}}}]]</sup></onlyinclude></includeonly> |
[[Category:Templates]] | [[Category:Templates]] | ||
Line 29: | Line 29: | ||
===Additional Parameters=== | ===Additional Parameters=== | ||
− | The ''stat_weight'' parameter defaults to 0.5 in the LUA, and can be entered as an optional parameter 4 if different. | + | The ''stat_weight'' parameter defaults to 0.5 in the LUA, and can be entered as an optional parameter 4 if different from 0.5. |
Latest revision as of 23:29, 20 August 2014
Introduction
This template is used to denote talent parameters that scale by the combatTalentIntervalDamage function.
The template accepts up to four parameters, corresponding to those in the LUA code: stat, min, max, stat_weight. It is assumed that these parameters will be fed to the template in the order specified above.
The first 3 parameters to this template are required, and the last one is optional.
Basic Example
The LUA code for critical chance bonus of Riposte calls for
self:combatTalentIntervalDamage(t, "dex", 10, 50)
which should be entered into the wiki as
{{CTID|Dex|10|50}}
and will produce the following text
10–50cTID:0.5Dex
Note that any percentage signs must be inserted manually with the parameters.
Additional Parameters
The stat_weight parameter defaults to 0.5 in the LUA, and can be entered as an optional parameter 4 if different from 0.5.