Difference between revisions of "Template:Skill radius"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#vardefine:radius name jp|
<includeonly>{{#vardefine:radius name jp|
{{#switch:{{lc:{{{1|}}}}}
{{#switch:{{lc:{{{1|}}}}}
| self | 自身 = 自身
| adjacent | 隣接1マス = 隣接1マス
| adjacent | 隣接1マス = 隣接1マス
| adjacent and self | 隣接1マス内 = 隣接1マス内
| adjacent and self | 隣接1マス内 = 隣接1マス内
Line 11: Line 12:
}}{{#vardefine:radius description|
}}{{#vardefine:radius description|
{{#switch:{{#var:radius name jp|}}
{{#switch:{{#var:radius name jp|}}
| 自身 = Only includes the caster.
| 隣接1マス = Affects friendly units 1 space away from the unit horizontally and vertically, but not diagonally. Does NOT include the caster.
| 隣接1マス = Affects friendly units 1 space away from the unit horizontally and vertically, but not diagonally. Does NOT include the caster.
| 隣接1マス内 = Affects all friendly units 1 space away from the unit horizontally and vertically, but not diagonally, INCLUDING the caster.
| 隣接1マス内 = Affects all friendly units 1 space away from the unit horizontally and vertically, but not diagonally, INCLUDING the caster.
Line 20: Line 22:
}}{{#vardefine:radius name en|
}}{{#vardefine:radius name en|
{{#switch:{{#var:radius name jp|}}
{{#switch:{{#var:radius name jp|}}
| 自身 = self
| 隣接1マス = adjacent
| 隣接1マス = adjacent
| 隣接1マス内 = adjacent and self
| 隣接1マス内 = adjacent and self

Revision as of 22:36, 27 September 2018

Description

This templates translates Japanese status radius names into English and optionally adds the radius description as on-hover text.

Usage

{{Skill Radius
|<radius>
| format = 
}}

Parameters

effect
The radius name in Japanese.
format
Formatting for the description. alt displays it as on-hover text, parentheses displays it after the effect name in parentheses, only display only the description, none doesn't display the description. Defaults to alt.

Examples

{{Skill Radius|隣接1マス }}

adjacent

{{Skill Radius|隣接1マス内 }}

adjacent and self

{{Skill Radius|周囲1マス }}

nearby

{{Skill Radius|周囲1マス内}}

nearby and self

{{Skill Radius|距離2マス }}

in a wide radius