Difference between revisions of "Template:Skill range"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) (Removed the "centered" word) |
|||
Line 68: | Line 68: | ||
}}}}}} | }}}}}} | ||
-->{{#vardefine:center| | -->{{#vardefine:center| | ||
around {{#vardefineecho:adjust|{{#ifeq:{{#var:range o}}|0|target|{{#ifexpr:{{#var:range o}} > 0 | |||
|<!--front-->{{#ifeq:{{#var:range o}}|1|in front of target|{{#var:range o}} squares in front of target}} | |<!--front-->{{#ifeq:{{#var:range o}}|1|in front of target|{{#var:range o}} squares in front of target}} | ||
|<!--back-->{{#ifeq:{{#var:range o}}|-1|behind target|{{#expr: -{{#var:range o}}}} squares behind target}}}} | |<!--back-->{{#ifeq:{{#var:range o}}|-1|behind target|{{#expr: -{{#var:range o}}}} squares behind target}}}} |
Revision as of 11:45, 12 August 2020
Description
Parses a string in the format of [distance] [horizonal distance] [horizontal] [vertical] [diagonal] [is-square] into something human readable.
Examples
{{Skill range|0 0 0 0 0 0}}target
{{Skill range|1 0 0 0 2 0}}in a 1x1 area around in front of target
{{Skill range|-2 0 0 0 1 0}}in a 1x1 area around 2 squares behind target
{{Skill range|1 0 0 1 0 0}}1 squares diagonally away from in front of target
{{Skill range|-2 0 1 0 0 0}}in a 3-square vertical line around 2 squares behind target
{{Skill range|0 0 1 1 0 0}}1 squares diagonally away from target
{{Skill range|0 0 2 2 0 0}}2 squares diagonally away from target
{{Skill range|0 0 1 1 1 0}}in a 1x3 area around target
{{Skill range|5 0 6 7 8 0}}in a 1x13 area around 5 squares in front of target
{{Skill range|0 1 1 1 1 0}}in a 3x3 area around target
The above documentation is transcluded from Template:Skill range/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |