Template:Locate address inline: Difference between revisions
Jump to navigation
Jump to search
(Corrected examples, added text parameter) |
(Added type parameter) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[http://maps.google.com/maps?q={{{address}}},+{{{city|Birmingham}}},+{{{state|AL}}}&z={{{zoom|15}}}&t={{{type|m}}} {{{text|map}}}]<noinclude> | |||
<p><br></p> | <p><br></p> | ||
Line 9: | Line 9: | ||
*'''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) | ||
*'''text''' (link text, defaults to " | *'''type''' ("m" for map (default), "k" for satellite, "h" for hybrid) | ||
*'''text''' (link text, defaults to "map") | |||
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. | |||
''' | '''Example:'''<br> | ||
710 [[20th Street North]] <nowiki>{{</nowiki>Locate_address_inline | address = 710+20th+St+N <nowiki>}}</nowiki> | 710 <nowiki>[[</nowiki>20th Street North<nowiki>]]</nowiki> (<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 | 710 [[20th Street North]] ([http://maps.google.com/maps?q=710+20th+St+N,+Birmingham,+AL&z=15&t=m map]) | ||
'''Example:'''<br> | |||
<nowiki>{{</nowiki>Locate_address_inline<br> | <nowiki>{{</nowiki>Locate_address_inline<br> | ||
| address = | | address = 1817+3rd+Ave+N<br> | ||
| text = 1817 3rd Ave. N<br> | | text = 1817 3rd Ave. N<br> | ||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
Will display:<br> | Will display:<br> | ||
[http://maps.google.com/maps?q=1817+3rd+Ave+N,+Birmingham,+AL&z=15&t=m 1817 3rd Ave. N] | |||
[[Category: | [[Category:Mapping templates|Locate address inline]] | ||
</noinclude> | </noinclude> |
Latest revision as of 16:52, 21 December 2006
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)
- text (link text, defaults to "map")
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.
Example:
710 [[20th Street North]] ({{Locate_address_inline | address = 710+20th+St+N }})
Will display:
710 20th Street North (map)
Example:
{{Locate_address_inline
| address = 1817+3rd+Ave+N
| text = 1817 3rd Ave. N
}}
Will display:
1817 3rd Ave. N