Jump to content

Template:Coord: Difference between revisions

Coordinates: 52°28′N 1°55′W / 52.467°N 1.917°W / 52.467; -1.917[1]
Permanently protected template
From Wikipedia, the free encyclopedia
Content deleted Content added
rm named geohack parameters
m Changed protection settings for "Template:Coord": Only purpose is to call fully-protected module ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))
 
(46 intermediate revisions by 22 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{#if:{{{4|}}}||y}}
<includeonly>{{#invoke:Coordinates|coord}}</includeonly><noinclude>
{{Documentation}}
|{{Coor link
<!-- Add categories to the /doc subpage, interwikis to Wikidata, not here -->
|dms-lat={{{dms-lat|{{coor dec2dms|{{{1}}}|N|S|{{coor/prec dec|{{{1}}}|{{{2}}}}}}}}}}
</noinclude>
|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_{{{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 08:14, 30 April 2023