Template:Convert coordinate: Difference between revisions
Appearance
Created page with "{{#if: {{{1|}}} |<!-- -->{{#vardefine:x-coord|{{#explode:{{{1|}}}|,|0}}}}{{#vardefine:y-coord|{{#explode:{{{1|}}}|,|1}}}}{{#vardefine:z-coord|{{#explode:{{{1|}}}|,|2}}}}('''<small>X:</small>'''{{#var:x-coord}}, '''<small>Y:</small>'''{{#var:y-coord}}{{#if: {{#var:z-coord}}|, '''<small>Z:</small>'''{{#var:z-coord}}}})}}<noinclude> == Description == Formats a sequence of (X, Y, Z) coordinates to pretty-formatted text. <pre>{{Convert coordinate|<x>, <y>, <z>}}</pre> == Par..." |
(No difference)
|
Latest revision as of 17:05, 22 June 2025
Description
Formats a sequence of (X, Y, Z) coordinates to pretty-formatted text.
{{Convert coordinate|<x>, <y>, <z>}}
Parameters
- coordinates
- The coordinates. Requires at least two comma-separated coordinates. Third coordinate (z) is optional. Decimals are allowed.
Example
{{Convert coordinate|9.22, 8}}
(X:9.22, Y:8)
{{Convert coordinate|12, 8.54, 5}}
(X:12, Y:8.54, Z:5)