Difference between revisions of "Template: Location map/decdeg"
From A Wiki of Ice and Fire
m |
(aligned for readability.) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#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> | [[Category:Location map|!]]</noinclude> |
Revision as of 09:26, 18 May 2012
This helper template provides a way to convert geographic coordinates, used on Template:Location map.