Template:Ctl
{{{2}}}–{{{3}}}cTL:{{{1}}}
Introduction
This template is used to denote talent parameters that scale by the combatTalentLimit function.
The template accepts up to four parameters, corresponding to those in the LUA code: limit, low, high, raw. It is assumed that these parameters will be fed to the template in the order specified above.
The first three parameters are required, but the last one is optional.
Basic Example
If the LUA code calls for
self:combatTalentLimit(t, 0, 24, 20)
then one should invoke the template in wiki markup with
{{CTL|0|24|20}}
which will produce the following text
24–20cTL:0
Remember Percentage Signs
Take care to insert percentage signs where appropriate, as the LUA code frequently adjusts the numbers only for the talent description. A typical talent parameter that should actually be shown as a percentage may, for example, be coded as
self:combatTalentLimit(t, 100, 27, 55)
with the percentage sign only added later, so you should enter the percentage signs into the template manually as
{{CTL|100%|27|55%}}
to produce
27–55%cTL:100%
Using Raw Talent Level
If the LUA code calls for using raw talent levels as
self:combatTalentLimit(t, 100, 27, 55, true)
then simply insert the text raw as the fourth parameter like so
{{CTL|100%|27|55%|raw}}
which will render as
27–55%cTL:100%,raw