Difference between revisions of "Template:Coordinates"

From LFS Manual
Jump to navigationJump to search
Line 1: Line 1:
 
<includeonly>{{#if:{{{1|}}}{{{2|}}}|
 
<includeonly>{{#if:{{{1|}}}{{{2|}}}|
 +
[https://www.google.com/maps?q={{{1}}},{{{2}}}
 
<!-- Latitude -->
 
<!-- Latitude -->
 
{{#expr: floor(abs({{{1}}})) }}°
 
{{#expr: floor(abs({{{1}}})) }}°
Line 27: Line 28:
 
}}"
 
}}"
 
{{#ifexpr: {{{2}}} >= 0 | E | W }}
 
{{#ifexpr: {{{2}}} >= 0 | E | W }}
 +
]
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 15:53, 28 February 2026

Template Info-Icon.png

Template documentation

View - Edit

Usage

Markup Renders as
{{Coordinates|51.4016|0.1355}}

[https://www.google.com/maps?q=51.4016,0.1355 51° 24' 5.8" N 0° 8' 7.8" E ]

Markup Renders as
{{Coordinates|51.4016|-0.1355}}

[https://www.google.com/maps?q=51.4016,-0.1355 51° 24' 5.8" N 0° 8' 7.8" W ]

Markup Renders as
{{Coordinates|-51.4016|0.1355}}

[https://www.google.com/maps?q=-51.4016,0.1355 51° 24' 5.8" S 0° 8' 7.8" E ]

Markup Renders as
{{Coordinates|-51.4016|-0.1355}}

[https://www.google.com/maps?q=-51.4016,-0.1355 51° 24' 5.8" S 0° 8' 7.8" W ]