Sjabloon:Listing

Uit Wikivoyage

.

[view] [edit] [history] [[[:Sjabloon:Purge]]] Template documentation

Documentation[bewerken]

This template is used for implementing generic business listings. There are a few attraction-specific type template which should be used instead, if applicable:

Als het gewenste niet in een van deze sjablonen past, kies je deze:

* {{listing
| name= | wikidata= | url= | email=
| address  = | lat=  | long=  | directions= 
| phone    =  | tollfree= | fax=
| hours    = | price= 
| lastedit =
| content  =
}}
Bij lastedit= vul je "2024-03-28" in.


Usage[bewerken]

* {{listing
| type=TYPE OF LISTING (see, do, buy, eat, drink, sleep)
| name=NAME OF LISTING (REQ)
| alt=ALTERNATE NAME
| wikidata=WIKIDATA QID IDENTIFIER OF THE LISTING
| wikipedia=WIKIPEDIA ARTICLE NAME OF THE LISTING
| url=URL OF LISTING'S WEBSITE including '''''http://''''' at the start
| email=EMAIL ADDRESS OF LISTING
| address=ADDRESS OF LISTING
| lat=LATITUDINAL POSITION OF THE LISTING
| long=LONGITUDINAL POSITION OF THE LISTING
| directions=SHORT DESCRIPTION OF HOW TO GET TO LISTING
| phone=PHONE NUMBER TO CONTACT LISTING
| tollfree=TOLL-FREE PHONE NUMBER TO CONTACT LISTING
| fax=FAX NUMBER TO CONTACT LISTING
| hours=OPERATING HOURS OF LISTING
| price=ADMISSION PRICE FOR THE LISTING
| checkin=CHECKIN TIME (SLEEP LISTINGS ONLY)
| checkout=CHECKOUT TIME (SLEEP LISTINGS ONLY)
| lastedit=DATE OF LAST EDIT (yyyy-mm-dd)
| content=BRIEF DESCRIPTION OF THE LISTING
}}

There are no mandatory fields, but it strongly recommended to insert at least one (possibly the name) and preferably more as a {{listing}} with no information is useless to the voyager.

Some caveats:

  • Unlike the old XML listing syntax, do not use quotation marks around your entries.
  • "lat" and "long" are for WGS84 coordinates' latitude and longitude, respectively. Decimal form, see example.

Microformat[bewerken]

The template emits an hCard microformat.

Example[bewerken]

  •    ExploratoriumPier 15, 698 The Embarcadero (at Green St),  +1 415 528-4360. Tu-Su 10AM-5PM; open W until 10PM, closed M. A great kid friendly option, with lots of interactive exhibits teaching about science, with intriguing displays about the mind, natural systems, sound, sight, and much much more. Adults: $25, Students/seniors/youth: $19, Children age 5 and under: Free.

Source:

* {{listing
| name=Exploratorium | wikidata=Q206518 | url=http://www.exploratorium.edu/ | email=
| address=Pier 15, 698 The Embarcadero | lat=37.8013 | long=-122.3988 | directions=at Green St
| phone=+1 415 528-4360 | tollfree= | fax=
| hours=Tu-Su 10AM-5PM; open W until 10PM, closed M
| price=Adults: $25, Students/seniors/youth: $19, Children age 5 and under: Free
| lastedit=2015-01-15
| content=A great kid friendly option, with lots of interactive exhibits teaching about science, with intriguing displays about the mind, natural systems, sound, sight, and much much more.
}}

Associated template:

  • Dependent on Template:Marker for creating a listing's header (item type, number, name, URL)

TemplateData[bewerken]

This template is used for implementing generic business listings. There are a few attraction-specific templates (see, do, buy, eat, drink, sleep) which should be used instead, if applicable.

Sjabloonparameters[Sjabloongegevens bewerken]

ParameterBeschrijvingTypeStatus
Namename

Name of the listing

Voorbeeld
Natolin metro station
Automatische waarde
Tekenreeksvereist
Alternative namealt

Alternative name of the listing (if any)

Voorbeeld
Kercelak
Tekenreeksvoorgesteld
URLurl

URL of listing's website, including http:// at the beginning

Voorbeeld
http://um.warszawa.pl
URLvoorgesteld
Emailemail

Email address of the listing

Tekenreeksvoorgesteld
Addressaddress

Postal address of the listing

Voorbeeld
c/Ochoa 23
Tekenreeksvoorgesteld
Latitudelat

Latitudinal position (use decimal notation, WGS84 style)

Voorbeeld
52.231667
Getalvoorgesteld
Longitudelong

Longitudinal position (use decimal notation, WGS84 style)

Voorbeeld
21.006389
Getalvoorgesteld
Directionsdirections

Short description of how to get there

Voorbeeld
Main gate at Mean Street
Tekenreeksvoorgesteld
Phonephone

Contact phone number

Voorbeeld
+48 22 987-65-43
Tekenreeksvoorgesteld
Toll-freetollfree

Toll-free contact number

Tekenreeksvoorgesteld
Faxfax

Fax number

Voorbeeld
+48 22 765-43-21
Tekenreeksvoorgesteld
Operating hourshours

Operating hours of listing

Voorbeeld
Tu-Su 10AM-5PM; open W until 10PM, closed M
Tekenreeksvoorgesteld
Priceprice

Admission price

Voorbeeld
Adults: $25, Students/seniors/youth: $19, Children age 5 and under: Free
Tekenreeksvoorgesteld
Last editlastedit

Date of last update (use yyyy-mm-dd)

Voorbeeld
2016-05-17
Automatische waarde
{{subst:#time:Y-m-d}}
Datumvoorgesteld
Descriptioncontent

Brief description of the listing

Voorbeeld
A great kid friendly option, with lots of interactive exhibits teaching about science, with intriguing displays about the mind, natural systems, sound, sight, and much much more.
Inhoudvoorgesteld

See also[bewerken]