Template:Coord: Difference between revisions

From ScoutWiki, For Everyone, Everywhere involved with Scouting and Guiding...
Jump to navigation Jump to search
(params)
m (1 revision: upload from wikipedia)
 
(22 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{#if:{{{4|}}}||y}}
<includeonly>{{Coord/display/{{{display|inline}}}
  |{{coor dec
|1={{Coord/input/{{#ifeq:{{{1|}}}||nolat|{{#ifeq:{{{4|}}}{{{5|}}}{{{6|}}}||dec|{{#if:{{#switch:{{{4}}}{{{8}}}|NE|NW|SE|SW=y}}|dms|{{#if:{{#switch:{{{3}}}{{{6}}}|NE|NW|SE|SW=y}}|dm|{{#if:{{#switch:{{{2}}}{{{4}}}|NE|NW|SE|SW=y}}|d|ERROR}}}}}}}}}}
      |1={{{1}}}
|1={{{1|}}}
      |2={{{2}}}
|2={{{2|}}}
      |3={{{3|}}}|type={{{type|}}}|scale={{{scale|}}}|region={{{region|}}}|globe={{{globe|}}}|source={{{source|}}}
|3={{{3|}}}
      }}
|4={{{4|}}}
  |{{#if:{{#switch:{{{4}}}{{{8}}}|NE|NW|SE|SW=y}}
|5={{{5|}}}
    |{{coor dec
|6={{{6|}}}
      |1={{coor dms2dec|{{{4}}}|{{{1}}}|{{{2}}}|{{{3}}}}}
|7={{{7|}}}
      |2={{coor dms2dec|{{{8}}}|{{{5}}}|{{{6}}}|{{{7}}}}}
|8={{{8|}}}
      |3={{{9|}}}|type={{{type|}}}|scale={{{scale|}}}|region={{{region|}}}|globe={{{globe|}}}|source={{{source|}}}
|9={{{9|}}}
      }}
|10={{{10|}}}
  |{{#if:{{#switch:{{{3}}}{{{6}}}|NE|NW|SE|SW=y}}
|format={{{format|}}}
    |{{coor dec
|name={{{name|}}}
      |1={{coor dms2dec|{{{3}}}|{{{1}}}|{{{2}}}}}
}}{{{notes|}}}}}<!--
      |2={{coor dms2dec|{{{6}}}|{{{4}}}|{{{5}}}}}
-->{{#ifeq:{{{dim|μ}}}|μ||{{Coord/input/error2|msg=dim= should be dim:|sort_ch=D}}}}<!--
      |3={{{7|}}}|type={{{type|}}}|scale={{{scale|}}}|region={{{region|}}}|globe={{{globe|}}}|source={{{source|}}}
-->{{#ifeq:{{{globe|μ}}}|μ||{{Coord/input/error2|msg=globe= should be globe:|sort_ch=G}}}}<!--
      }}
-->{{#ifeq:{{{region|μ}}}|μ||{{Coord/input/error2|msg=region= should be region:|sort_ch=R}}}}<!--
  |{{#if:{{#switch:{{{2}}}{{{4}}}|NE|NW|SE|SW=y}}
-->{{#ifeq:{{{scale|μ}}}|μ||{{Coord/input/error2|msg=scale= should be scale:|sort_ch=S}}}}<!--
    |{{coor dec
-->{{#ifeq:{{{source|μ}}}|μ||{{Coord/input/error2|msg=source= should be source:|sort_ch=s}}}}<!--
      |1={{coor dms2dec|{{{2}}}|{{{1}}}}}
-->{{#ifeq:{{{type|μ}}}|μ||{{Coord/input/error2|msg=type= should be type:|sort_ch=T}}}}<!--
      |2={{coor dms2dec|{{{4}}}|{{{3}}}}}
--></includeonly><noinclude>
      |3={{{5|}}}|type={{{type|}}}|scale={{{scale|}}}|region={{{region|}}}|globe={{{globe|}}}|source={{{source|}}}
{{Documentation}}
      }}
</noinclude>
  |ERROR in &#123;{coor}&#125; invocation
  }} }} }} }}</includeonly><noinclude>{{template doc}}</noinclude>

Latest revision as of 17:05, 6 May 2012