Template:Maplink

From Wikispooks
Revision as of 15:08, 4 August 2010 by Peter (talk | contribs)
Jump to navigation Jump to search

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]

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:" is fixed by the template to ensure that a location marker is included on the map and the initial zoom level is set by the precision of the coordinates

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