Jump to content

Template:Coord: Difference between revisions

Change from display to format when doing a text display
(Change out-text parameter to link-text)
(Change from display to format when doing a text display)
Line 1: Line 1:
<includeonly>{{Coord/display/{{{display|inline}}}
<includeonly>{{Coord/display/{{{display|inline}}}
|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={{#ifeq:{{{format|}}}|text|{{{pre-link-text|}}}|}}{{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}}}}}}}}}}{{#ifeq:{{{format|}}}|text|{{{post-link-text| to view information about this location}}}|}}
|1={{{1|}}}
|1={{{1|}}}
|2={{{2|}}}
|2={{{2|}}}
Line 13: Line 13:
|format={{{format|}}}
|format={{{format|}}}
|name={{{name|}}}
|name={{{name|}}}
|link-text={{#ifeq:{{{display|}}}|text|{{{link-text|Click here}}}|}}
|link-text={{#ifeq:{{{format|}}}|text|{{{link-text|Click here}}}|}}
}}{{{notes|}}}}}<!--
}}{{{notes|}}}}}<!--
-->{{#ifeq:{{{dim|μ}}}|μ||{{Coord/input/error2|msg=dim= should be dim:|sort_ch=D}}}}<!--
-->{{#ifeq:{{{dim|μ}}}|μ||{{Coord/input/error2|msg=dim= should be dim:|sort_ch=D}}}}<!--
2,175

edits