Template:event-location

From IndieWeb

This template is used to generate p-location h-card in h-events.

Blank Template

Copy, paste, and fill in the information:

{{event-location
| name = 
| street-address = 
| locality = 
| region = 
| region_abbr = 
| postal_code = 
| country = 
| country_abbr = 
| url = 
| map_url = 
}}

Parameters

Most parameters correspond to h-card property names.

name
name of the location
street-address
street number + name
locality
city/town/village
region
state/county/province
region_abbr
(optional) region abbreviation. If entered, an abbr tag will be generated.
postal_code
(optional) postal code
country
country
country_abbr
(optional) country abbreviation. If entered, an abbr tag will be generated.
url
(optional) URL for the location
map_url
(optional) map URL of the location

Examples

{{event-location
| name = Mozilla
| street-address = 2 Harrison St.
| locality = San Francisco
| region = California
| region_abbr = CA
| postal_code = 94105
| country = United States of America
| country_abbr = USA
| url = https://wiki.mozilla.org/SF
| map_url = https://maps.google.com/maps?q=2+harrison+st+san+francisco
}}

Will generate:

Mozilla, 2 Harrison St., San Francisco, CA 94105, USA, View Map