Template:Coord/dec2dms: Difference between revisions
From ScoutWiki, For Everyone, Everywhere involved with Scouting and Guiding...
no edit summary
(«+"<noinclude>{{template doc}}</noinclude>"») |
No edit summary |
||
Line 1: | Line 1: | ||
{{#ifexpr:{{{1}}} >= 0 | <includeonly>{{#ifexpr:{{{1}}} >= 0 | ||
{{#switch:{{{prec}}} | {{#switch:{{{prec}}} | ||
|d={{#expr:{{{1}}} round 0}}° | |d={{#expr:{{{1}}} round 0}}° | ||
Line 7: | Line 7: | ||
|d={{#expr:-{{{1}}} round 0}}° | |d={{#expr:-{{{1}}} round 0}}° | ||
|dm={{#expr:-{{{1}}} round 0}}°{{#expr:-{{{1}}} * 60 mod 60 round 0}}′ | |dm={{#expr:-{{{1}}} round 0}}°{{#expr:-{{{1}}} * 60 mod 60 round 0}}′ | ||
|dms={{#expr:-{{{1}}} round 0}}°{{#expr:-{{{1}}} * 60 mod 60 round 0}}′{{#expr:-{{{1}}} * 3600 mod 3600 round 1}}″}} {{{3}}}}}<noinclude>{{template doc}}</noinclude> | |dms={{#expr:-{{{1}}} round 0}}°{{#expr:-{{{1}}} * 60 mod 60 round 0}}′{{#expr:-{{{1}}} * 3600 mod 3600 round 1}}″}} {{{3}}}}}</includeonly><noinclude>{{template doc}}</noinclude> |