Jump to content

Template:Convert coordinate

From Final Fantasy XIV Mobile Wiki
Revision as of 17:05, 22 June 2025 by Moogle (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)