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 43: Line 43:
 
Template Documentation:
 
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:
+
''Use_mode''
*'Melee/Personal' if range = 1;
+
* If use_mode does not exist, defaults to 'Activated'.
*'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.
+
''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 '-'.  
  
If use_speed doesn't exist, and use_mode is empty, output 'passive'.
 
 
</noinclude>
 
</noinclude>

Revision as of 10:12, 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 '-'.