Template:Locate: Difference between revisions

From Bhamwiki
Jump to navigation Jump to search
m (Show example)
(Matching Locate_address template)
Line 1: Line 1:
<p style="float: right; background-color: #eee; border: 1px solid #999; margin-left: 1em; 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>
<p style="float: right; background-color: #eee; border: 1px solid #999; margin-left: 1em; padding: .2em; font-size: smaller;">[http://maps.google.com/maps?ll={{{lat}}},{{{lon}}}&z={{{zoom|12}}}&q={{{lat}}},{{{lon}}} Locate with<br>Google Maps]</p><noinclude>
<noinclude>
<p><br><br><br></p>
<p><br><br></p>


----
'''Parameters:'''
*'''lat''' (latitude as decimal)
*'''lon''' (longitude as decimal)
*'''zoom''' (0-17, recommended 10-16, defaults to 12)


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.
Latitude and longitude 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''.


Keep in mind that Birmingham is located at coordinates north and west, meaning that the latitude is positive, but ''the longitude is negative''.
Also note that floating an image to the right immediately below this template can cause the image to hide some of the text.


----


<p style="float: right; background-color: #eee; border: 1px solid #999; margin-left: 1em; padding: .2em; font-size: smaller;">[http://maps.google.com/maps?ll=33.468306,-86.808146&spn=0.1,0.1&q=33.468306,-86.808146 Locate on map]</p>
<p style="float: right; background-color: #eee; border: 1px solid #999; margin-left: 1em; padding: .2em; font-size: smaller;">[http://maps.google.com/maps?ll=33.468306,-86.808146&z=12&q=33.468306,-86.808146 Locate with<br>Google Maps]</p>


'''Example:'''<br>
'''Example:'''<br>
<nowiki>{{</nowiki>Locate |<br>
<nowiki>{{</nowiki>Locate | lat=33.468306 | lon=-86.808146 <nowiki>}}</nowiki>
lat=33.468306 |<br>
lon=-86.808146<br>
<nowiki>}}</nowiki>


[[Category:Bhamwiki_templates]]
[[Category:Bhamwiki_templates]]
</noinclude>
</noinclude>

Revision as of 10:47, 14 November 2006

Locate with
Google Maps




Parameters:

  • lat (latitude as decimal)
  • lon (longitude as decimal)
  • zoom (0-17, recommended 10-16, defaults to 12)

Latitude and longitude 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.

Also note that floating an image to the right immediately below this template can cause the image to hide some of the text.


Locate with
Google Maps

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