Difference between revisions of "Template:Maplink"

From Wikispooks
Jump to navigation Jump to search
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
This template is to facilitate linking to Google Maps.
 
This template is to facilitate linking to Google Maps.
The format for Google maps addresses on WikiSpooks is:  
+
The general format for Google maps addresses on WikiSpooks is:  
  
*<Code><nowiki>http://maps.google.com/maps?q=loc:latitude,longitude&z=10 </nowiki></code>  
+
*<Code><nowiki>http://maps.google.com/maps?q=loc:[latitude,longitude]&z=10 </nowiki></code>  
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
+
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 <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   

Revision as of 09:59, 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

  • {{Maplink|Coordinates}}

Map