Template: Location map/decdeg: Difference between revisions
From A Wiki of Ice and Fire
Created page with "{{#if:{{{deg|}}} |{{#expr: ( {{#switch: {{{hem|{{{4|}}}}}} | W|w|S|s = -1 | E|e|N|n = 1 | #default = 1 }} * ( {{#if:{{{deg|{{{1|}}}}}}|{{{deg|{{{1}}}}}}|0}} + {{#if:{{{min|{{{..." |
mNo edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#if:{{{deg|}}} |{{#expr: ( {{#switch: {{{hem|{{{4|}}}}}} | W|w|S|s = -1 | E|e|N|n = 1 | | <includeonly>{{#if:{{{deg|}}} | ||
|{{#expr: ( | |||
{{#switch: {{{hem|{{{4|}}}}}} | |||
| W|w|S|s = -1 | |||
| E|e|N|n = 1 | |||
| #default = 1 | |||
}} | |||
* ( | |||
{{#if:{{{deg|{{{1|}}}}}}|{{{deg|{{{1}}}}}}|0}} | |||
+ | |||
{{#if:{{{min|{{{2|}}}}}}|{{{min|{{{2}}}}}}/60|0}} | |||
+ | |||
{{#if:{{{sec|{{{3|}}}}}}|{{{sec|{{{3}}}}}}/3600|0}} ) | |||
) round {{#if: {{{rnd|{{{5|}}}}}} | {{{rnd|{{{5|}}}}}} | 7 }} | |||
}}|{{{dec|}}} | |||
}}</includeonly><noinclude> | |||
This helper template provides a way to convert geographic coordinates, used on [[Template:Location map]]. | |||
<!-- Unnecessary complicated template, we don't need this x,y would have work the same. --> | |||
[[Category:Location map| ]]</noinclude> | |||
Latest revision as of 00:31, 19 May 2012
This helper template provides a way to convert geographic coordinates, used on Template:Location map.