Template:Locate address inline: Difference between revisions

From Bhamwiki
Jump to navigation Jump to search
(Corrected examples, added text parameter)
(Removed parantheses)
Line 1: Line 1:
([http://maps.google.com/maps?q={{{address}}},+{{{city|Birmingham}}},+{{{state|AL}}}&z={{{zoom|15}}} {{{text|Google Maps}}}])<noinclude>
[http://maps.google.com/maps?q={{{address}}},+{{{city|Birmingham}}},+{{{state|AL}}}&z={{{zoom|15}}} {{{text|Google Maps}}}]<noinclude>
<p><br></p>
<p><br></p>


Line 13: Line 13:


'''Examples:'''<br>
'''Examples:'''<br>
710 [[20th Street North]] <nowiki>{{</nowiki>Locate_address_inline | address = 710+20th+St+N <nowiki>}}</nowiki>
710 [[20th Street North]] (<nowiki>{{</nowiki>Locate_address_inline | address = 710+20th+St+N <nowiki>}}</nowiki>)


Will display:<br>
Will display:<br>
710 [[20th Street North]] ([http://maps.google.com/maps?q=710+20th+St+N,+Birmingham,+AL&z=15 Google Maps])
710 [[20th Street North]] [http://maps.google.com/maps?q=710+20th+St+N,+Birmingham,+AL&z=15 Google Maps]


<nowiki>{{</nowiki>Locate_address_inline<br>
<nowiki>{{</nowiki>Locate_address_inline<br>

Revision as of 08:31, 11 November 2006

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)
  • text (link text, defaults to "Google Maps")


Examples:
710 20th Street North ({{Locate_address_inline | address = 710+20th+St+N }})

Will display:
710 20th Street North Google Maps

{{Locate_address_inline
| address = 710+20th+St+N
| text = 1817 3rd Ave. N
}}

Will display:
(1817 3rd Ave. 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.