Template:Coord: Difference between revisions
Jump to navigation
Jump to search
imported>Quarl (support city_region for other param types) |
imported>Quarl (params) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{#if:{{{4|}}}||y}} | <includeonly>{{#if:{{#if:{{{4|}}}||y}} | ||
|{{coor dec|{{{1}}}|{{{2}}}|{{{3|}}}}} | |{{coor dec | ||
|1={{{1}}} | |||
|2={{{2}}} | |||
|3={{{3|}}}|type={{{type|}}}|scale={{{scale|}}}|region={{{region|}}}|globe={{{globe|}}}|source={{{source|}}} | |||
}} | |||
|{{#if:{{#switch:{{{4}}}{{{8}}}|NE|NW|SE|SW=y}} | |{{#if:{{#switch:{{{4}}}{{{8}}}|NE|NW|SE|SW=y}} | ||
|{{coor dec | |||
|1={{coor dms2dec|{{{4}}}|{{{1}}}|{{{2}}}|{{{3}}}}} | |||
|2={{coor dms2dec|{{{8}}}|{{{5}}}|{{{6}}}|{{{7}}}}} | |||
|3={{{9|}}}|type={{{type|}}}|scale={{{scale|}}}|region={{{region|}}}|globe={{{globe|}}}|source={{{source|}}} | |||
}} | }} | ||
|{{#if:{{#switch:{{{3}}}{{{6}}}|NE|NW|SE|SW=y}} | |{{#if:{{#switch:{{{3}}}{{{6}}}|NE|NW|SE|SW=y}} | ||
|{{coor dec | |||
|1={{coor dms2dec|{{{3}}}|{{{1}}}|{{{2}}}}} | |||
|2={{coor dms2dec|{{{6}}}|{{{4}}}|{{{5}}}}} | |||
|3={{{7|}}}|type={{{type|}}}|scale={{{scale|}}}|region={{{region|}}}|globe={{{globe|}}}|source={{{source|}}} | |||
}} | }} | ||
|{{#if:{{#switch:{{{2}}}{{{4}}}|NE|NW|SE|SW=y}} | |{{#if:{{#switch:{{{2}}}{{{4}}}|NE|NW|SE|SW=y}} | ||
|{{coor dec | |||
|1={{coor dms2dec|{{{2}}}|{{{1}}}}} | |||
|2={{coor dms2dec|{{{4}}}|{{{3}}}}} | |||
|3={{{5|}}}|type={{{type|}}}|scale={{{scale|}}}|region={{{region|}}}|globe={{{globe|}}}|source={{{source|}}} | |||
}} | }} | ||
|ERROR in {{coor}} invocation | |ERROR in {{coor}} invocation | ||
}} }} }} }}</includeonly><noinclude>{{template doc}}</noinclude> | }} }} }} }}</includeonly><noinclude>{{template doc}}</noinclude> |