Difference between revisions of "Template:Maplink"

From Wikispooks
Jump to navigation Jump to search
Line 4: Line 4:
  
 
*<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 parameters "latitude" and "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
  
 
Its usage is   
 
Its usage is   
  
*<code><nowiki> {{Maplink}} </nowiki></code>
+
*<code><nowiki> {{Maplink|Coordinates}} </nowiki></code>
 
 
 
</noinclude>
 
</noinclude>
[http://maps.google.com/maps?q=loc:{{{latitude}}},{{{longitude}}} Map]
+
[http://maps.google.com/maps?q=loc:{{{1}}} Map]

Revision as of 08:36, 21 July 2010

This template is to facilitate linking to Google Maps. The 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

Its usage is

  • {{Maplink|Coordinates}}

Map