Template:Ctl

From Tales of Maj'Eyal
Revision as of 23:22, 5 August 2014 by Vyn (Talk | contribs) (Note on percentage sign)

Jump to: navigation, search


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

Note that the percentage signs must be manually inserted.

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 turn into

27–55%cTL:100%,raw