Difference between revisions of "Template:Maplink"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
The <code><nowiki> "q=loc:" and "&z=10" are fixed by the template to ensure that a location marker is included on the map and the initial zoom level is set to 10 </nowiki></code> | The <code><nowiki> "q=loc:" and "&z=10" are fixed by the template to ensure that a location marker is included on the map and the initial zoom level is set to 10 </nowiki></code> | ||
− | Its usage is | + | Its usage is (copy and paste) |
− | + | :<code><nowiki> {{Maplink|Coordinates}} </nowiki></code> | |
+ | Replacing "Coordinates" with the decimal longitude and latitude coordinates separated by a comma as in <code><nowiki>40.12345,120.3456</nowiki></code> | ||
</noinclude>[http://maps.google.com/maps?q=loc:{{{1}}}&z=10 Map] | </noinclude>[http://maps.google.com/maps?q=loc:{{{1}}}&z=10 Map] |
Revision as of 11:09, 21 July 2010
This template is to facilitate linking to Google Maps. The general format for Google maps addresses on WikiSpooks is:
http://maps.google.com/maps?q=loc:[latitude,longitude]&z=10
where "latitude" and "longitude" are decimal number coordinates and represented in the template as a single parameter consisting of the decimal latitude and longitude coordinates separated by a comma.
The "q=loc:" and "&z=10" are fixed by the template to ensure that a location marker is included on the map and the initial zoom level is set to 10
Its usage is (copy and paste)
{{Maplink|Coordinates}}
Replacing "Coordinates" with the decimal longitude and latitude coordinates separated by a comma as in 40.12345,120.3456
Map