Template:Coord: Difference between revisions
Jump to navigation
Jump to search
imported>Quarl (34) |
imported>Quarl (COOR LINK) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{#if:{{{4|}}}||y}} | <includeonly>{{#if:{{#if:{{{4|}}}||y}} | ||
|{{coor dec | |{{Coor link | ||
|dms-lat={{{dms-lat|{{coor dec2dms|{{{1}}}|N|S|{{coor/prec dec|{{{1}}}|{{{2}}}}}}}}}} | |||
|dms-long={{{dms-long|{{coor dec2dms|{{{2}}}|E|W|{{coor/prec dec|{{{1}}}|{{{2}}}}}}}}}} | |||
|dec-lat={{{1}}}|dec-long={{{2}}} | |||
|param={{{1}}}_N_{{{2}}}_E_<!-- | |||
-->{{#if:{{{type|}}}|type:{{{type}}}_}}<!-- | |||
-->{{#if:{{{scale|}}}|scale:{{{scale}}}_}}<!-- | |||
-->{{#if:{{{region|}}}|region:{{{region}}}_}}<!-- | |||
-->{{#if:{{{globe|}}}|globe:{{{globe}}}_}}<!-- | |||
-->{{#if:{{{source|}}}|source:{{{source}}}_}}<!-- | |||
-->{{{3|}}} | |||
}} | }} | ||
|{{#if:{{#switch:{{{4}}}{{{8}}}|NE|NW|SE|SW=y}} | |{{#if:{{#switch:{{{4}}}{{{8}}}|NE|NW|SE|SW=y}} | ||
|{{ | |{{Coor link | ||
| | |precision=dms | ||
|dms-lat={{{1}}}°{{{2}}}′{{{3}}}″{{{4}}} | |dms-lat={{{1}}}°{{{2}}}′{{{3}}}″{{{4}}} | ||
|dms-long={{{5}}}°{{{6}}}′{{{7}}}″{{{8}}} | |dms-long={{{5}}}°{{{6}}}′{{{7}}}″{{{8}}} | ||
|dec-lat={{coor dms2dec|{{{4}}}|{{{1}}}|{{{2}}}|{{{3}}}}} | |||
|dec-long={{coor dms2dec|{{{8}}}|{{{5}}}|{{{6}}}|{{{7}}}}} | |||
|param={{{1}}}_{{{2}}}_{{{3}}}_{{{4}}}_{{{5}}}_{{{6}}}_{{{7}}}_{{{8}}}_<!-- | |||
-->{{#if:{{{type|}}}|type:{{{type}}}_}}<!-- | |||
-->{{#if:{{{scale|}}}|scale:{{{scale}}}_}}<!-- | |||
-->{{#if:{{{region|}}}|region:{{{region}}}_}}<!-- | |||
-->{{#if:{{{globe|}}}|globe:{{{globe}}}_}}<!-- | |||
-->{{#if:{{{source|}}}|source:{{{source}}}_}}<!-- | |||
-->{{{9|}}} | |||
}} | }} | ||
|{{#if:{{#switch:{{{3}}}{{{6}}}|NE|NW|SE|SW=y}} | |{{#if:{{#switch:{{{3}}}{{{6}}}|NE|NW|SE|SW=y}} | ||
|{{ | |{{Coor link | ||
| | |precision=dm | ||
|dms-lat={{{1}}}°{{{2}}}′{{{3}}} | |dms-lat={{{1}}}°{{{2}}}′{{{3}}} | ||
|dms-long={{{4}}}°{{{5}}}′{{{6}}} | |dms-long={{{4}}}°{{{5}}}′{{{6}}} | ||
|dec-lat={{coor dms2dec|{{{3}}}|{{{1}}}|{{{2}}}}} | |||
|dec-long={{coor dms2dec|{{{6}}}|{{{4}}}|{{{5}}}}} | |||
|param={{{1}}}_{{{2}}}_{{{3}}}_{{{4}}}_{{{5}}}_{{{6}}}_<!-- | |||
-->{{#if:{{{type|}}}|type:{{{type}}}_}}<!-- | |||
-->{{#if:{{{scale|}}}|scale:{{{scale}}}_}}<!-- | |||
-->{{#if:{{{region|}}}|region:{{{region}}}_}}<!-- | |||
-->{{#if:{{{globe|}}}|globe:{{{globe}}}_}}<!-- | |||
-->{{#if:{{{source|}}}|source:{{{source}}}_}}<!-- | |||
-->{{{7|}}} | |||
}} | }} | ||
|{{#if:{{#switch:{{{2}}}{{{4}}}|NE|NW|SE|SW=y}} | |{{#if:{{#switch:{{{2}}}{{{4}}}|NE|NW|SE|SW=y}} | ||
|{{ | |{{Coor link | ||
| | |precision=d | ||
|dms-lat={{{1}}}°{{{2}}} | |dms-lat={{{1}}}°{{{2}}} | ||
|dms-long={{{3}}}°{{{4}}} | |dms-long={{{3}}}°{{{4}}} | ||
|dec-lat={{coor dms2dec|{{{2}}}|{{{1}}}}} | |||
|dec-long={{coor dms2dec|{{{4}}}|{{{3}}}}} | |||
|param={{{1}}}_{{{2}}}_{{{3}}}_{{{4}}}_<!-- | |||
-->{{#if:{{{type|}}}|type:{{{type}}}_}}<!-- | |||
-->{{#if:{{{scale|}}}|scale:{{{scale}}}_}}<!-- | |||
-->{{#if:{{{region|}}}|region:{{{region}}}_}}<!-- | |||
-->{{#if:{{{globe|}}}|globe:{{{globe}}}_}}<!-- | |||
-->{{#if:{{{source|}}}|source:{{{source}}}_}}<!-- | |||
-->{{{5|}}} | |||
}} | }} | ||
|ERROR in {{coor}} invocation | |ERROR in {{coor}} invocation | ||
}} }} }} }}</includeonly><noinclude>{{template doc}}</noinclude> | }} }} }} }}</includeonly><noinclude>{{template doc}}</noinclude> |