Difference between revisions of "Template:Infobox/Location/Coordinate"
From Kerbal Space Program Wiki
< Template:Infobox | Location
(!trunc instead of round;) |
m (*renamed Parameter Table to Parameter table;) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{#if: {{{1|}}}|{{#expr: trunc abs({{{1}}})}}° {{#expr: trunc(abs({{{1}}}) * 60 mod 60)}}′ {{#expr: abs({{{1}}}) * 60 * 60 mod 60 round 0}}″ {{#ifexpr: {{{1}}} < 0|{{{3}}}|{{{2}}}}}|Unknown° {{{2}}}}} | + | {{#if: {{{1|}}}|{{#expr: trunc abs({{{1}}})}}° {{#expr: trunc(abs({{{1}}}) * 60 mod 60)}}′ {{#expr: abs({{{1}}}) * 60 * 60 mod 60 round 0}}″ {{Dict|{{#ifexpr: {{{1}}} < 0|{{{3}}}|{{{2}}}}}}}|Unknown° {{Dict|{{{2}}}}}}}<noinclude> |
+ | ---- | ||
+ | Shows the current coordinate in degrees, minutes and seconds. | ||
+ | |||
+ | {{Parameter table|parameters= | ||
+ | {{Parameter row|1|The coordinate in degrees.}} | ||
+ | {{Parameter row|2|The name for positive values (usually <tt>N</tt> or <tt>E</tt>). Will be parsed by {{Tl|Dict}}.}} | ||
+ | {{Parameter row|3|The name for negative values (usually <tt>S</tt> or <tt>W</tt>). Will be parsed by {{Tl|Dict}}.}} | ||
+ | }} | ||
+ | |||
+ | [[Category:Templates]]</noinclude> |
Latest revision as of 12:05, 19 December 2014
Unknown° {{{2}}}
Shows the current coordinate in degrees, minutes and seconds.
# | Optional | Description | Default |
---|---|---|---|
1 | No | The coordinate in degrees. | |
2 | No | The name for positive values (usually N or E). Will be parsed by {{Dict}}. | |
3 | No | The name for negative values (usually S or W). Will be parsed by {{Dict}}. |