Template:Listing/doc

Usage
This template is used for implementing generic business listings. There are a few attraction-specific specialized templates which should be used instead, if applicable (see at end of this documentation).

There are no mandatory fields, but it strongly recommended to insert at least one (possibly the name) and preferably more as a 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 (as measured and reported by most GPS receptors). Both are indicated in signed decimal form in degrees (using only an optional leading "+" or "-" sign, basic Latin digits, and "." as decimals separator), see example.
 * Do not specify any hemisphere name of abbreviation, use an optional leading sign instead: the "-" sign is required in the southern and western hemispheres; negative longitudes are used in the eastern Pacific Ocean, all the Americas, most of the northern Atlantic Ocean including Iceland, Ireland, western UK and France, the Iberian peninsula and north-western Africa).
 * Their value should be in the range from -90 to 90 inclusively for the latitude, and in the range from -180 to 180 for the longitude. The geographic poles conventionally use the arbitrary longitude 0.
 * However, world maps rendered for the most commonly used 2D projections (Mercator-like, preserving angles and shapes but not relative surfaces) will not display positions at polar latitudes (below roughly -87.5 degrees, or above roughly 87.5 degrees). Some other maps may render all positions, using projections suitable for specific regions (with their own limits).

Microformat
The template emits an hCard microformat.

Example
Source:

Notes:
 * This template also allows the insertion of an "edit" link near the end of the generated text. Clicking on it will open a custom form editor to fill in the existing or missing values for supported field values.
 * This "edit" link is added by a javascript extension tool (enabled on Wikivoyage), but it will not be visible in simple browsers (for old smartphones or some TV sets) that don't support Javascript, or in any browser whose Javascript has been disabled, or in any page which is not in the main namespace for articles (so it is also not visible in this template documentation page).

Associated template:
 * Dependent on Template:Marker for creating a listing's header (item type, number, name, URL). The "zoom" and "group" parameters for the Marker are not currently supported or passed through by Listing.
 * Lat, long, and wikidata are passed to marker. With the current behavior of marker, this means that explicit lat and long values are unnecessary if such values exist on the associated Wikidata item.

Tracking categories

 * Category:Listing with Wikipedia link but not Wikidata link

TemplateData
{	"params": { "name": { "label": "Name", "description": "Name of the listing", "example": "Natolin metro station", "type": "string", "required": true, "autovalue": "", "suggested": true },		"lat": { "label": "Latitude", "description": "Latitudinal position (use decimal notation, WGS84 style). Specify NA when coordinates are not applicable, to disallow fetching the value from wikidata", "example": "52.231667", "type": "number", "suggested": true },		"long": { "label": "Longitude", "description": "Longitudinal position (use decimal notation, WGS84 style). Specify NA when coordinates are not applicable, to disallow fetching the value from wikidata", "example": "21.006389", "type": "number", "suggested": true },		"url": { "label": "URL", "description": "URL of listing's website, including http:// at the beginning", "example": "http://um.warszawa.pl", "type": "url", "suggested": true },		"alt": { "label": "Alternative name", "description": "Alternative name of the listing (if any)", "example": "Kercelak", "type": "string", "suggested": true },		"address": { "label": "Address", "description": "Postal address of the listing", "example": "c/Ochoa 23", "type": "string", "suggested": true },		"directions": { "label": "Directions", "description": "Short description of how to get there", "example": "Main gate at Mean Street", "type": "string", "suggested": true },		"phone": { "label": "Phone", "description": "Contact phone number", "example": "+48 22 987-65-43", "type": "string", "suggested": true },		"tollfree": { "label": "Toll-free", "description": "Toll-free contact number", "type": "string" },		"fax": { "label": "Fax", "example": "+48 22 765-43-21", "description": "Fax number", "type": "string" },		"email": { "label": "Email", "description": "Email address of the listing", "type": "string", "suggested": true },		"hours": { "label": "Operating hours", "description": "Operating hours of listing", "example": "Tu-Su 10AM-5PM; open W until 10PM, closed M", "type": "string", "suggested": true },		"wikidata": { "label": "Wikidata link", "description": "Wikidata QID of the listing", "example": "Q639010", "type": "number", "suggested": true },		"wikipedia": { "label": "Wikipedia article", "description": "English Wikipedia article of the listing. Automatically acquired from Wikidata ID if present.", "example": "Natolin metro station", "type": "wiki-page-name" },		"image": { "label": "Commons image", "description": "Wikimedia Commons image of the listing for dynamic maps. Automatically acquired from Wikidata ID if preset. If specifying manually, omit 'File:'", "example": "Giant Mirror at the Exploratorium.jpeg", "type": "wiki-file-name" },		"content": { "label": "Description", "description": "Brief description of the listing", "example": "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.", "type": "content", "suggested": true },		"price": { "label": "Price", "description": "Admission price", "example": "Adults: $25, Students/seniors/youth: $19, Children age 5 and under: Free", "type": "string", "suggested": true },		"lastedit": { "label": "Last edit", "description": "Date of last update (use yyyy-mm-dd)", "example": "2016-05-17", "type": "date", "suggested": true, "autovalue": "" }	},	"paramOrder": [ "name", "alt", "url", "email", "address", "lat", "long", "directions", "phone", "tollfree", "fax", "hours", "price", "wikipedia", "wikidata", "image", "lastedit", "content" ],	"description": "This template is used for implementing business listings." }