Template:Locate address: Difference between revisions

From Bhamwiki
Jump to navigation Jump to search
m (Changed category)
(Added type parameter)
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?q={{{address}}},+{{{city|Birmingham}}},+{{{state|AL}}}&z={{{zoom|15}}} Locate with<br>Google Maps]</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?q={{{address}}},+{{{city|Birmingham}}},+{{{state|AL}}}&z={{{zoom|15}}}&t={{{type|m}}} Locate with<br>Google Maps]</p>
<noinclude>
<noinclude>
<p><br><br><br></p>
<p><br><br><br></p>
Line 10: Line 10:
*'''state''' (defaults to "AL")
*'''state''' (defaults to "AL")
*'''zoom''' (0-17, recommended 10-16, defaults to 15)
*'''zoom''' (0-17, recommended 10-16, defaults to 15)
*'''type''' ("m" for map (default), "k" for satellite, "h" for hybrid)


 
<p style="float: right; background-color: #eee; border: 1px solid #999; margin-left: 1em; padding: .2em; font-size: smaller;">[http://maps.google.com/maps?q=710+20th+St+N,+Birmingham,+AL&z=15&t=m Locate with<br>Google Maps]</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?q=710+20th+St+N,+Birmingham,+AL&z=15 Locate with<br>Google Maps]</p>


'''Example:'''<br>
'''Example:'''<br>

Revision as of 16:48, 21 December 2006

Locate with
Google Maps





Parameters:

  • address (spaces must be replaced with "+")
  • city (defaults to "Birmingham")
  • state (defaults to "AL")
  • zoom (0-17, recommended 10-16, defaults to 15)
  • type ("m" for map (default), "k" for satellite, "h" for hybrid)

Locate with
Google Maps

Example:
{{Locate_address | address = 710+20th+St+N }}

Keep in mind that pointers based on a street address are approximate and occasionally wildly incorrect. You are encouraged to use the "Show preview" button and open the link in a new window or tab to confirm the location displays as desired. Also note that floating an image to the right immediately below this template can cause the image to hide some of the text.