Template:Coord: Difference between revisions

Jump to navigation Jump to search
imported>Quarl
(rm named geohack parameters)
imported>PineApple1298
m (1 revision imported)
 
(46 intermediate revisions by 22 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{#if:{{{4|}}}||y}}
<includeonly>{{#invoke:Coordinates|coord}}</includeonly><noinclude>
  |{{Coor link
{{Documentation}}
  |dms-lat={{{dms-lat|{{coor dec2dms|{{{1}}}|N|S|{{coor/prec dec|{{{1}}}|{{{2}}}}}}}}}}
<!-- Add categories to the /doc subpage, interwikis to Wikidata, not here -->
  |dms-long={{{dms-long|{{coor dec2dms|{{{2}}}|E|W|{{coor/prec dec|{{{1}}}|{{{2}}}}}}}}}}
</noinclude>
  |dec-lat={{{1}}}|dec-long={{{2}}}
  |param={{{1}}}_N_{{{2}}}_E_{{{3|}}}
      }}
  |{{#if:{{#switch:{{{4}}}{{{8}}}|NE|NW|SE|SW=y}}
    |{{Coor link
      |precision=dms
      |dms-lat={{{1}}}°{{{2}}}′{{{3}}}″{{{4}}}
      |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}}}_{{{9|}}}
      }}
  |{{#if:{{#switch:{{{3}}}{{{6}}}|NE|NW|SE|SW=y}}
    |{{Coor link
      |precision=dm
      |dms-lat={{{1}}}°{{{2}}}′{{{3}}}
      |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}}}_{{{7|}}}
      }}
  |{{#if:{{#switch:{{{2}}}{{{4}}}|NE|NW|SE|SW=y}}
    |{{Coor link
      |precision=d
      |dms-lat={{{1}}}°{{{2}}}
      |dms-long={{{3}}}°{{{4}}}
      |dec-lat={{coor dms2dec|{{{2}}}|{{{1}}}}}
      |dec-long={{coor dms2dec|{{{4}}}|{{{3}}}}}
      |param={{{1}}}_{{{2}}}_{{{3}}}_{{{4}}}_{{{5|}}}
      }}
  |ERROR in &#123;{coord}&#125; invocation
  }} }} }} }}</includeonly><noinclude>{{template doc}}</noinclude>

Latest revision as of 21:06, 27 January 2021