Difference between revisions of "Template:Skill radius"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:radius name| | <includeonly>{{#vardefine:radius name jp| | ||
{{#switch:{{lc:{{{1|}}}}} | {{#switch:{{lc:{{{1|}}}}} | ||
| adjacent | 隣接1マス = 隣接1マス | | adjacent | 隣接1マス = 隣接1マス | ||
Line 6: | Line 6: | ||
| nearby and self | 周囲1マス内 = 周囲1マス内 | | nearby and self | 周囲1マス内 = 周囲1マス内 | ||
| in a wide radius | 距離2マス = 距離2マス | | in a wide radius | 距離2マス = 距離2マス | ||
| in a wide radius and self | 距離2マス内 = 距離2マス内 | |||
|#default = {{{1|}}} | |#default = {{{1|}}} | ||
}} | }} | ||
}}{{#vardefine:radius description| | }}{{#vardefine:radius description| | ||
{{#switch:{{#var:radius name|}} | {{#switch:{{#var:radius name jp|}} | ||
| 隣接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 15: | Line 16: | ||
| 周囲1マス内 = Affects all friendly units 1 space away from the unit horizontally and vertically and diagonally, INCLUDING the caster. | | 周囲1マス内 = Affects all friendly units 1 space away from the unit horizontally and vertically and diagonally, INCLUDING the caster. | ||
| 距離2マス = Affects friendly units 2 spaces away from the unit horizontally and vertically, 1 space away diagonally, not including the caster. | | 距離2マス = Affects friendly units 2 spaces away from the unit horizontally and vertically, 1 space away diagonally, not including the caster. | ||
| 距離2マス内 = Affects friendly units 2 spaces away from the unit horizontally and vertically, 1 space away diagonally, INCLUDING the caster. | |||
}} | |||
}}{{#vardefine:radius name en| | |||
{{#switch:{{#var:radius name jp|}} | |||
| 隣接1マス = adjacent | |||
| 隣接1マス内 = adjacent and self | |||
| 周囲1マス = nearby | |||
| 周囲1マス内 = nearby and self | |||
| 距離2マス = in a wide radius | |||
| 距離2マス内 = in a wide radius and self | |||
}} | }} | ||
}}{{#switch:{{{format|}}} | }}{{#switch:{{{format|}}} | ||
| parentheses = {{#var:radius name}} ({{#var:radius description}}) | | parentheses = {{#var:radius name en}} ({{#var:radius description}}) | ||
| only = {{ucfirst:{{#var:radius description}}}}. | | only = {{ucfirst:{{#var:radius description}}}}. | ||
| none = {{#var:radius name}} | | none = {{#var:radius name en}} | ||
| alt | | alt | ||
|#default = <abbr title="{{#var:radius description}}">{{#var:radius name}}</abbr> | |#default = <abbr title="{{#var:radius description}}">{{#var:radius name en}}</abbr> | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
== Description == | == Description == |
Revision as of 22:34, 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