Template:Locate address: Difference between revisions

From Bhamwiki
Jump to navigation Jump to search
m (Cautionary note)
(Another trick)
 
(2 intermediate revisions by the same user not shown)
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>
<nowiki>{{</nowiki>Locate_address | address = 710+20th+St+N <nowiki>}}</nowiki>
<nowiki>{{</nowiki>Locate_address | address = 710+20th+St+N <nowiki>}}</nowiki>


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.
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 Google Maps link in a new window or tab to confirm the location displays as desired.
 
It is also possible to sometimes use a name rather than an actual street address.  For example, Google Maps has [[Tannehill Ironworks Historical State Park]] defined as Tannehill State Park, West Blocton, ALTherefore, "Tannehill State Park" can be used as the address with a city of West Blocton.
 
Also note that floating an image to the right immediately below this template can cause the image to hide some of the text.


[[Category:Bhamwiki_templates]]
[[Category:Mapping_templates|Locate address]]
</noinclude>
</noinclude>

Latest revision as of 12:40, 18 June 2010

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 Google Maps link in a new window or tab to confirm the location displays as desired.

It is also possible to sometimes use a name rather than an actual street address. For example, Google Maps has Tannehill Ironworks Historical State Park defined as Tannehill State Park, West Blocton, AL. Therefore, "Tannehill State Park" can be used as the address with a city of West Blocton.

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