Template:Gtl

From Tales of Maj'Eyal
Revision as of 05:58, 9 February 2016 by Ibanix (Talk | contribs) (this works better, honestly)

Jump to: navigation, search


Introduction

This template is used to denote talent parameters that scale by the getTalentLevel or getTalentLevelRaw.

The template accepts up to three parameters: min, max, raw. All the parameters are optional.

Basic Example

If the LUA code calls for

self:getTalentLevel(t). 

then one should invoke the template in wiki markup with

{{gtl}}

which will produce the following text

{{{1}}}–{{{2}}}gtl

For cases in which the variable is scaled, for example, by 2:

{{gtl|2|10}}

which will produce the text

2–10gtl

Note that any percentage signs must be inserted manually with the parameters.

Using Raw Talent Level

If the LUA code calls for using raw talent levels as

self:getTalentLevelRaw(t)

then simply insert the text raw as the third parameter as follows

{{gtl|2|10|raw}}

which will produce

2–10gtl
:raw