Sjabloon:Listing

Uit Wikivoyage
Ga naar: navigatie, zoeken

.

[view] [edit] [history] [[[:Sjabloon:Purge]]] Template-info.svg 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:

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

Parameter Beschrijving Type Status
Name name

Name of the listing

Standaard
leeg
Voorbeeld
Natolin metro station
Automatische waarde
Tekenreeks vereist
Alternative name alt

Alternative name of the listing (if any)

Standaard
leeg
Voorbeeld
Kercelak
Automatische waarde
leeg
Tekenreeks voorgesteld
URL url

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

Standaard
leeg
Voorbeeld
http://um.warszawa.pl
Automatische waarde
leeg
URL voorgesteld
Email email

Email address of the listing

Standaard
leeg
Voorbeeld
leeg
Automatische waarde
leeg
Tekenreeks voorgesteld
Address address

Postal address of the listing

Standaard
leeg
Voorbeeld
c/Ochoa 23
Automatische waarde
leeg
Tekenreeks voorgesteld
Latitude lat

Latitudinal position (use decimal notation, WGS84 style)

Standaard
leeg
Voorbeeld
52.231667
Automatische waarde
leeg
Getal voorgesteld
Longitude long

Longitudinal position (use decimal notation, WGS84 style)

Standaard
leeg
Voorbeeld
21.006389
Automatische waarde
leeg
Getal voorgesteld
Directions directions

Short description of how to get there

Standaard
leeg
Voorbeeld
Main gate at Mean Street
Automatische waarde
leeg
Tekenreeks voorgesteld
Phone phone

Contact phone number

Standaard
leeg
Voorbeeld
+48 22 987-65-43
Automatische waarde
leeg
Tekenreeks voorgesteld
Toll-free tollfree

Toll-free contact number

Standaard
leeg
Voorbeeld
leeg
Automatische waarde
leeg
Tekenreeks voorgesteld
Fax fax

Fax number

Standaard
leeg
Voorbeeld
+48 22 765-43-21
Automatische waarde
leeg
Tekenreeks voorgesteld
Operating hours hours

Operating hours of listing

Standaard
leeg
Voorbeeld
Tu-Su 10AM-5PM; open W until 10PM, closed M
Automatische waarde
leeg
Tekenreeks voorgesteld
Price price

Admission price

Standaard
leeg
Voorbeeld
Adults: $25, Students/seniors/youth: $19, Children age 5 and under: Free
Automatische waarde
leeg
Tekenreeks voorgesteld
Wikipedia article wikipedia

Wikipedia article of the listing

Standaard
leeg
Voorbeeld
Natolin metro station
Automatische waarde
leeg
Pagina voorgesteld
Wikidata link wikidata

Wikidata QID of the listing

Standaard
leeg
Voorbeeld
639010
Automatische waarde
leeg
Getal voorgesteld
Last edit lastedit

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

Standaard
leeg
Voorbeeld
2016-05-17
Automatische waarde
{{subst:#time:Y-m-d}}
Datum voorgesteld
Description content

Brief description of the listing

Standaard
leeg
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.
Automatische waarde
leeg
Inhoud voorgesteld

See also[bewerken]