Template:Buy/doc: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
→Parameters: recommended → required (not having one results in a rather broken listing) |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
=== Usage === |
=== Usage === |
||
__NOTOC__ |
__NOTOC__ |
||
<syntaxhighlight lang="wikitext" copy=1>{{buy |
|||
<pre>{{buy |
|||
| name = | alt = | url = | email = |
| name = | alt = | url = | email = |
||
| address = | lat = | long = | directions = |
| address = | lat = | long = | directions = |
||
Line 10: | Line 10: | ||
| lastedit= |
| lastedit= |
||
| content = |
| content = |
||
}}</ |
}}</syntaxhighlight> |
||
=== Parameters === |
=== Parameters === |
||
Line 30: | Line 30: | ||
=== Example === |
=== Example === |
||
< |
<syntaxhighlight lang="wikitext" style="white-space:pre-wrap;"> |
||
* {{buy |
* {{buy |
||
| name=Harrods | alt= | url=http://www.harrods.com/ | email= |
| name=Harrods | alt= | url=http://www.harrods.com/ | email= |
||
Line 39: | Line 39: | ||
| 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. |
| 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. |
||
}} |
}} |
||
</syntaxhighlight> |
|||
</pre> |
|||
* {{buy |
* {{buy |
||
| name=Harrods | alt= | url=http://www.harrods.com/ | email= |
| name=Harrods | alt= | url=http://www.harrods.com/ | email= |
||
Line 52: | Line 52: | ||
* [[Wikivoyage:Listings]] |
* [[Wikivoyage:Listings]] |
||
* {{tl|Listing}} |
* {{tl|Listing}} |
||
⚫ | |||
** {{tl|Do}} |
** {{tl|Do}} |
||
⚫ | |||
** {{tl|Eat}} |
** {{tl|Eat}} |
||
** {{tl| |
** {{tl|Drink}} |
||
** {{tl|Sleep}} |
** {{tl|Sleep}} |
||
*[[Wikivoyage:Where you can stick it |
*[[Wikivoyage:Where you can stick it]] |
||
=== TemplateData === |
=== TemplateData === |
Latest revision as of 00:14, 8 October 2024
This is a documentation subpage for Template:Buy. It contains usage information, categories and other content that is not part of the original template page. |
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
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | Name of the shop
| String | suggested |
Alt | alt | An alternative name, former name, or name in the local language | String | suggested |
URL | url | The URL for the official website for the shop
| URL | suggested |
email | An email address for getting more information
| String | suggested | |
Address | address | Street address, if relevant
| String | suggested |
Directions | directions | Additional brief directions besides the street address, such as cross streets, nearby subway or bus stations.
| String | suggested |
Latitude | lat | Decimal latitude (GPS coordinates) for map output
| Number | suggested |
Longitude | long | Decimal longitude (GPS coordinates) for map output
| Number | suggested |
Telephone number | phone | For getting more information
| String | suggested |
Toll-free telephone number | tollfree | Toll-free telephone number
| String | optional |
Fax number | fax | Fax number
| String | optional |
Hours | hours | The opening and closing hours of the shop
| String | suggested |
Price | price | Price of average purchase
| String | suggested |
Last update | lastedit | The date when the listing was last updated, or when the information in the listing was last verified.
| Date | suggested |
Content | content | A description of the shop
| Content | suggested |