Difference between revisions of "Template:Ability box/sandbox"

From Tales of Maj'Eyal
Jump to: navigation, search
(trying to document)
Line 33: Line 33:
 
|-
 
|-
 
! scope="col" width="100px" |Use Speed
 
! scope="col" width="100px" |Use Speed
| {{#if:{{{use_speed|}}}|{{#ifeq:{{{use_speed}}}|0|Instant|{{{use_speed}}}}}|{{#switch:{{{use_mode}}}|Passive|passive=-|-}}}}
+
| {{#if:{{{use_speed|}}}|{{#ifeq:{{{use_speed}}}|0|Instant|{{{use_speed}}} }}|{{#switch:{{{use_mode}}}||Passive|passive=-|-}} }}
 
|-
 
|-
 
! scope="col" width="100px" valign="top" |Description
 
! scope="col" width="100px" valign="top" |Description
Line 39: Line 39:
 
|}
 
|}
 
<span id="tooltipend"></span>
 
<span id="tooltipend"></span>
 +
 +
<noinclude>
 +
Template Documentation:
 +
 +
If use_mode is 'passive' then output "-".
 +
 +
If use_mode doesn't exist (which defaults to 'Activated', see above), AND if range exists, then output:
 +
*'Melee/Personal' if range = 1;
 +
*'Melee/Personal' if range exists and isn't defined;
 +
*the value of range if range exists and is defined.
 +
 +
If use_speed exists, and if use_speed=0, output 'Instant', otherwise output whatever use_speed is defined as.
 +
 +
If use_speed doesn't exist, and use_mode is empty, output 'passive'.
 +
</noinclude>

Revision as of 09:51, 29 February 2016

[[{{{name}}} (talent)|{{{name}}}]]
(no image)
Game Version -
Category Type -
Category -
Requirements -
Use Mode Activated
Range Melee/Personal
Cost -
Cooldown -
Travel Speed -
Use Speed -
Description -


Template Documentation:

If use_mode is 'passive' then output "-".

If use_mode doesn't exist (which defaults to 'Activated', see above), AND if range exists, then output:

  • 'Melee/Personal' if range = 1;
  • 'Melee/Personal' if range exists and isn't defined;
  • the value of range if range exists and is defined.

If use_speed exists, and if use_speed=0, output 'Instant', otherwise output whatever use_speed is defined as.

If use_speed doesn't exist, and use_mode is empty, output 'passive'.