Difference between revisions of "Template:Ctl"

From Tales of Maj'Eyal
Jump to: navigation, search
(Formatting)
(Note on percentage sign)
Line 25: Line 25:
 
  {{CTL|0|24|20}}
 
  {{CTL|0|24|20}}
  
===Remember Percentage Signs===
+
Note that the percentage signs must be manually inserted.
 
+
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
+
 
+
<pre>self:combatTalentLimit(t, 100, 27, 55)</pre>
+
 
+
with the percentage sign only added later, so you should enter the percentage signs into the template manually as
+
 
+
<pre>{{CTL|100%|27|55%}}</pre>
+
 
+
to produce
+
 
+
{{CTL|100%|27|55%}}
+
  
 
===Using Raw Talent Level===
 
===Using Raw Talent Level===

Revision as of 23:22, 5 August 2014


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