Difference between revisions of "Template:Infobox/Location/Coordinate"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "{{#if: {{{1|}}}|{{#expr: abs({{{1}}}) round 0}}° {{#expr: abs({{{1}}}) * 60 mod 60 round 0}}′ {{#expr: abs({{{1}}}) * 60 * 60 mod 60 round 0}}″ {{#ifexpr:...")
 
(!trunc instead of round;)
Line 1: Line 1:
{{#if: {{{1|}}}|{{#expr: abs({{{1}}}) round 0}}°&nbsp;{{#expr: abs({{{1}}}) * 60 mod 60 round 0}}′&nbsp;{{#expr: abs({{{1}}}) * 60 * 60 mod 60 round 0}}″&#8239;{{#ifexpr: {{{1}}} < 0|{{{3}}}|{{{2}}}}}|Unknown°&#8239;{{{2}}}}}
+
{{#if: {{{1|}}}|{{#expr: trunc abs({{{1}}})}}°&nbsp;{{#expr: trunc(abs({{{1}}}) * 60 mod 60)}}′&nbsp;{{#expr: abs({{{1}}}) * 60 * 60 mod 60 round 0}}″&#8239;{{#ifexpr: {{{1}}} < 0|{{{3}}}|{{{2}}}}}|Unknown°&#8239;{{{2}}}}}

Revision as of 16:17, 19 August 2013

Unknown° {{{2}}}