Template:Listing/doc
Jump to navigation
Jump to search
Documentation
This template is designed to replace Wikivoyage-style XML listing markup, which relied on an inflexible, hard-coded MediaWiki extension. It is sporked from the Wikivoyage template of the same name under CC-BY-SA so feel free to sell copies of it on the black market for whatever price gullible tourists are stupid enough to pay.
Here is the complete syntax:
* {{listing |name= |alt= |address= |directions= |phone= |tollfree= |email= |fax= |url= |hours= |checkin= |checkout= |price= |lat= |long= |wp= |un= | [description] }}
Only name is mandatory, but you should always provide some more information besides that.
Some caveats:
- Do not use quotation marks around your entries.
- For "wp" or "un" give the title of the corresponding Wikipedia or Uncyclopedia article, not the full URL. So, "example", not "http://en.wikipedia.org/wiki/example".
- "lat" and "long" are for WGS84 coordinates' latitude and longitude, respectively. These are currently broken as they rely on the mw:extension:Mapsources extension.
- If your optional description contains an equals sign, you must place the parameter
content=
just before the description (after the vertical bar):
* {{listing |name= |alt= |address= |directions= |phone= |email= |fax= |url= |hours= |checkin= |checkout= |price= |lat= |long= | wp= | un= | content= }}
See also
- bugzilla:43220 on Wikimedia, which proposes to redirect Wikivoyage mw:extension:Listings output to a template like this one.