Jump to content

Template:Buy/doc

From Wikivoyage

Usage

[edit]
{{buy
 | name    = | alt = | url = | email = 
 | address = | lat = | long = | directions = 
 | phone   = | tollfree = | fax = 
 | hours   = | price = 
 | lastedit=
 | content =
}}

Parameters

[edit]
  • name: the name of the shop. Required.
  • alt: an alternative name, either in the local language or just an alternative. Optional.
  • address: a street address for finding the shop, for places where this is meaningful. Recommended.
  • directions: additional brief directions besides the street address, such as cross streets, nearby subway or bus stations. Optional
  • phone: a phone number for getting more information. Recommended.
  • tollfree: a toll-free phone number, if available. Optional.
  • email: an email address for getting more information. Optional.
  • fax: a fax number. Optional.
  • url: the URL for the official Web site for this shop (see external links for more guidelines). Recommended.
  • hours: opening hours of the shop, when applicable. Recommended.
  • price: price of an average purchase. Recommended.
  • lat: decimal latitude (GPS coordinates) for map output. Optional.
  • long: decimal longitude (GPS coordinates) for map output. Optional
    • Note: lat and long should have the same number of decimal places (using trailing zeroes if applicable). If one is present, so should the other be.
  • lastedit: Field indicating when the listing was last updated, or when the information in the listing was last verified. Format must be "2015-01-15" (yyyy-mm-dd). Optional

Example

[edit]
* {{buy
| name=Harrods | alt= | url=http://www.harrods.com/ | email=
| address=87–135 Brompton Rd SW1X 7XL | lat= | long= | directions=tube: Knightsbridge
| phone=+44 20 7730 1234 | tollfree= | fax=
| hours=M-Sa 10:00-20:00 | price=
| lastedit=2015-01-15
| content=The most famous store in London, favoured by the British establishment and owned by Mohamed Al-Fayed. Fairly strict dress code so do not turn up looking like a backpacker and expect to gain entrance.
}}
  • Harrods, 87–135 Brompton Rd SW1X 7XL (tube: Knightsbridge), +44 20 7730 1234. M-Sa 10:00-20:00. The most famous store in London, favoured by the British establishment and owned by Mohamed Al-Fayed. Fairly strict dress code so do not turn up looking like a backpacker and expect to gain entrance.

See also

[edit]

TemplateData

[edit]

Listing template for things to buy

Template parameters

ParameterDescriptionTypeStatus
Namename

Name of the shop

Example
Harrods
Stringsuggested
Altalt

An alternative name, former name, or name in the local language

Stringsuggested
URLurl

The URL for the official website for the shop

Example
http://www.harrods.com/
URLsuggested
Emailemail

An email address for getting more information

Example
hello@example.com
Stringsuggested
Addressaddress

Street address, if relevant

Example
87–135 Brompton Rd SW1X 7XL
Stringsuggested
Directionsdirections

Additional brief directions besides the street address, such as cross streets, nearby subway or bus stations.

Example
tube: Knightsbridge
Stringsuggested
Latitudelat

Decimal latitude (GPS coordinates) for map output

Example
51.4994
Numbersuggested
Longitudelong

Decimal longitude (GPS coordinates) for map output

Example
-0.1632
Numbersuggested
Telephone numberphone

For getting more information

Example
+44 20 7730 1234
Stringsuggested
Toll-free telephone numbertollfree

Toll-free telephone number

Example
+1 800 555-1234
Stringoptional
Fax numberfax

Fax number

Example
+1 312 555-1234
Stringoptional
Hourshours

The opening and closing hours of the shop

Example
M-Sa 10:00-20:00
Stringsuggested
Priceprice

Price of average purchase

Example
£50
Stringsuggested
Last updatelastedit

The date when the listing was last updated, or when the information in the listing was last verified.

Example
2016-06-30
Auto value
{{subst:#time:Y-m-d}}
Datesuggested
Contentcontent

A description of the shop

Example
The most famous store in London, favoured by the British establishment and owned by Mohamed Al-Fayed. Fairly strict dress code so do not turn up looking like a backpacker and expect to gain entrance.
Contentsuggested