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

From Tales of Maj'Eyal
Jump to: navigation, search
(why do I think this second switch is unnecessary)
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}}} }}|-}}
 
|-
 
|-
 
! scope="col" width="100px" valign="top" |Description
 
! scope="col" width="100px" valign="top" |Description

Revision as of 10:13, 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:


Use_mode

  • If use_mode does not exist, defaults to 'Activated'.

Range

  • If use_mode is 'passive' then output "-". Note: If use_mode is defined 'passive', any value for 'range' will never be displayed!
  • If use_mode doesn't exist (which defaults to 'Activated', see above), then output:
    • 'Melee/Personal' if range = 0 or 1;
    • 'Melee/Personal' if range exists and isn't defined;
    • the value of range if range exists and is defined.

Use_Speed

  • 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 or 'Passive', output '-'.