Template:Sleep/sandbox

From Wikivoyage
Jump to navigation Jump to search
[view] [edit] [history] [purge] Template documentation

Usage[edit]

{{sleep
 | name    = | alt = | url = | email = 
 | address = | lat = | long = | directions = 
 | phone   = | tollfree = | fax = 
 | checkin = | checkout = | price =
 | lastedit=
 | content = 
}}

Parameters[edit]

  • name: the name of the hotel or accommodation. Required. Make sure there is no whitespace between the = sign and the name, or the entry will show up as "NoName" on the map.
  • alt: an alternative name, either in the local language or just an alternative. Optional.
  • address: a street address for finding the hotel, 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 making reservations or getting more information. Recommended.
  • tollfree: a toll-free phone number, if available. Optional.
  • email: an email address for making reservations or getting more information. Optional.
  • fax: a fax number. Optional.
  • url: the URL for the official Web site for this hotel (see external links for more guidelines). Recommended.
  • hours: opening hours of the hotel, when applicable. Recommended.
  • checkin: checkin time. Optional.
  • checkout: checkout time Optional.
  • price: price of a room. 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]

* {{sleep
| name=Claridge's | alt= | url=http://www.claridges.co.uk/ | email=
| address=49 Brook St | lat= | long= | directions=
| phone=+44 20 7629 8860 | tollfree= | fax=
| checkin= | checkout= | price=
| lastedit=2015-01-15
| content=A London institution for those in the know. On the corner of Brook street and Davies street. Famous for serving traditional afternoon tea and hosts Gordon Ramsay's restaurant. (Not for much longer though)
}}
  • Claridge's, 49 Brook St, +44 20 7629 8860. A London institution for those in the know. On the corner of Brook street and Davies street. Famous for serving traditional afternoon tea and hosts Gordon Ramsay's restaurant. (Not for much longer though)

See also[edit]

TemplateData[edit]

Listing template for places to sleep

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

Name of the hotel or accommodation

Example
Claridge's
Stringsuggested
Alternative namealt

An alternative name, e.g., in the local language or a former name

Example
formerly Mivart's Hotel
Stringsuggested
URLurl

URL for the official Web site for this hotel

Example
http://www.claridges.co.uk/
URLsuggested
Emailemail

an email address for making reservations or getting more information

Example
hotel@example.com
Stringsuggested
Addressaddress

A street address for finding the hotel, for places where this is meaningful

Example
49 Brook St
Stringsuggested
Latitudelat

Decimal latitude (GPS coordinates) for map output

Example
51.5125
Numbersuggested
Longitudelong

Decimal longitude (GPS coordinates) for map output

Example
-0.1476
Numbersuggested
Directionsdirections

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

Example
corner of Brook Street and Davies Street in Mayfair
Stringsuggested
Telephonephone

For making reservations or getting information

Example
+44 20 7629 8860
Stringsuggested
Toll-free telephone numbertollfree

no description

Example
+1 800 555-1234
Stringoptional
Fax numberfax

no description

Example
+44 (0)20 7499 2210
Stringoptional
Check-in timecheckin

The normal earliest time for checking in. Use either 24-hour format (15:00) or 12-hour (3PM)

Example
3PM
Stringsuggested
Check-out timecheckout

The normal time for leaving the hotel

Example
noon
Stringsuggested
priceprice

no description

Example
£400 per night for a single room, and up
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
Descriptioncontent

A description of the hotel

Example
A London institution for those in the know. On the corner of Brook street and Davies street. Famous for serving traditional afternoon tea and hosts Gordon Ramsay's restaurant. (Not for much longer though)
Contentsuggested