Difference between revisions of "Template:Ctid"

From Tales of Maj'Eyal
Jump to: navigation, search
m (Vyn moved page Template:CTID to Template:Ctid: Same reasoning)
(Fixed code)
Line 1: Line 1:
<includeonly><onlyinclude>{{{1}}}–{{{2}}}<sup>[[Scaling#cTID|cTID]]</sup></onlyinclude></includeonly>
+
<includeonly><onlyinclude>{{{2}}}–{{{3}}}<sup>[[Scaling#cTID|cTID:{{{1}}}{{#if:{{{4|}}}|,{{{4}}}|}}]]</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.

Revision as of 23:26, 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.