Template:Locate: Difference between revisions
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}}}& | <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) | |||
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''. | |||
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& | <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 | | <nowiki>{{</nowiki>Locate | lat=33.468306 | lon=-86.808146 <nowiki>}}</nowiki> | ||
lat=33.468306 | | |||
lon=-86.808146 | |||
<nowiki>}}</nowiki> | |||
[[Category:Bhamwiki_templates]] | [[Category:Bhamwiki_templates]] | ||
</noinclude> | </noinclude> |
Revision as of 10:47, 14 November 2006
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.
Example:
{{Locate | lat=33.468306 | lon=-86.808146 }}