Template:Locate city: Difference between revisions

From Bhamwiki
Jump to navigation Jump to search
(Template creation)
 
mNo edit summary
 
(6 intermediate revisions by 2 users 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={{{city}}},+{{{state|AL}}}&z={{{zoom|12}}} 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={{{city}}},+{{{state|AL}}}&z={{{zoom|12}}}&t={{{type|m}}} Locate with<br>Google Maps]</p>
<noinclude>
<noinclude>
<p><br><br><br></p>
<p><br><br><br></p>


----
----
<div style="background-color: #ffc; border: 1px solid black; margin: auto; padding: .5em; text-align: center; width: 80%">This template has been deprecated in favor of [[Template:Infobox City]].</div>


'''Parameters:'''
'''Parameters:'''
Line 9: Line 10:
*'''state''' (defaults to "AL")
*'''state''' (defaults to "AL")
*'''zoom''' (0-17, recommended 10-16, defaults to 12)
*'''zoom''' (0-17, recommended 10-16, defaults to 12)
*'''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=Vestavia+Hills,+AL&z=12&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=Vestavia+Hills,+AL&z=12 Locate with<br>Google Maps]</p>


'''Example:'''<br>
'''Example:'''<br>
<nowiki>{{</nowiki>Locate_address | city = Vestavia+Hills <nowiki>}}</nowiki>
<nowiki>{{Locate_city | city = Vestavia+Hills}}</nowiki>


Keep in mind that pointers 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 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.


[[Category:Bhamwiki_templates]]
[[Category:Mapping templates|Locate city]]
</noinclude>
</noinclude>

Latest revision as of 20:04, 7 March 2008

Locate with
Google Maps





This template has been deprecated in favor of Template:Infobox City.

Parameters:

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

Locate with
Google Maps

Example:
{{Locate_city | city = Vestavia+Hills}}

Keep in mind that pointers 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.