Template:Locate: Difference between revisions

From Bhamwiki
Jump to navigation Jump to search
(First cut at Google Maps link template)
 
(Categorize, give usage, tweak)
Line 1: Line 1:
<div style="float: right; background-color: #eee; border: 1px solid #999; padding: .2em; font-size: smaller;">[http://maps.google.com/maps?ll={{{lat}}},{{{lon}}}&spn=0.1,0.1&q={{{lat}}},{{{lon}}} Locate on map]</div>
<p style="float: right; background-color: #eee; border: 1px solid #999; padding: .2em; font-size: smaller;">[http://maps.google.com/maps?ll={{{lat}}},{{{lon}}}&spn=0.1,0.1&q={{{lat}}},{{{lon}}} Locate on map]</p>
<noinclude>
<p><br><br></p>
 
----
 
The parameters are "lat" (latitude) and "lon" (longitude).  These must be entered in decimal representation, not degrees, minutes, and seconds.  [http://www.fcc.gov/mb/audio/bickel/DDDMMSS-decimal.html This page] can be used to do the conversion if needed.
 
Keep in mind that Birmingham is located at coordinates north and west, meaning that the latitude is positive, but ''the longitude is negative''.
 
'''Example:'''<br>
<nowiki>{{</nowiki>Locate |<br>
lat=33.468306 |<br>
lon=-86.808146<br>
<nowiki>}}</nowiki>
 
[[Category:Bhamwiki_templates]]
</noinclude>

Revision as of 17:25, 10 November 2006

Locate on map




The parameters are "lat" (latitude) and "lon" (longitude). These must be entered in decimal representation, not degrees, minutes, and seconds. This page can be used to do the conversion if needed.

Keep in mind that Birmingham is located at coordinates north and west, meaning that the latitude is positive, but the longitude is negative.

Example:
{{Locate |
lat=33.468306 |
lon=-86.808146
}}