Difference between revisions of "Template:Coords"
Jump to navigation
Jump to search
m |
|||
Line 1: | Line 1: | ||
− | '''Coordinates:''''' {{{1}}}, {{{2}}}'' [http://maps.google.com/maps?f=q&q={{{1}}},{{{2}}}&ie=UTF8 <small><sup>Google</sup></small>] [https://www.openstreetmap.org/#map=18/{{{1}}}/{{{2}}} <small><sup>OSM</sup></small>] | + | <includeonly><span class="plainlinks"> |
+ | {{#ifeq: {{{3|}}} | 1 | | ||
+ | [http://maps.google.com/maps?f=q&q={{{1}}},{{{2}}}&ie=UTF8 <small><sup>Google</sup></small>] [https://www.openstreetmap.org/#map=18/{{{1}}}/{{{2}}} <small><sup>OSM</sup></small>] | | ||
+ | '''Coordinates:''''' {{{1}}}, {{{2}}}'' [http://maps.google.com/maps?f=q&q={{{1}}},{{{2}}}&ie=UTF8 <small><sup>Google</sup></small>] [https://www.openstreetmap.org/#map=18/{{{1}}}/{{{2}}} <small><sup>OSM</sup></small>] | ||
+ | }} | ||
</span></includeonly><noinclude> | </span></includeonly><noinclude> | ||
− | |||
==Usage== | ==Usage== | ||
*Go to Google Maps. | *Go to Google Maps. | ||
*Right-click the location, click on the coordinates to copy. | *Right-click the location, click on the coordinates to copy. | ||
− | *Input like this:'''<nowiki> {{Coords|49.9016|18.3063}}</nowiki>''' | + | *4 decimals gives enough accuracy. |
− | + | *Input like this:'''<nowiki>{{Coords|49.9016|18.3063}}</nowiki>''' to display like this: {{Coords|49.9016|18.3063}} | |
− | * | + | *To only get the superscripted links to Maps and OSM set the 3rd input to "1" like this:'''<nowiki>{{Coords|49.9016|18.3063|1}}</nowiki>''' {{Coords|49.9016|18.3063|1}} |
− | {{Coords|49.9016|18.3063}} | + | |
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 19:11, 12 April 2025
Usage
- Go to Google Maps.
- Right-click the location, click on the coordinates to copy.
- 4 decimals gives enough accuracy.
- Input like this:{{Coords|49.9016|18.3063}} to display like this:
Coordinates: 49.9016, 18.3063 Google OSM
- To only get the superscripted links to Maps and OSM set the 3rd input to "1" like this:{{Coords|49.9016|18.3063|1}}