Template:Listing/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Listing. It contains usage information, categories, and other content that is not part of the original template page. |
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.
- BFE - ButtFuck, Egypt, somewhere south of Cairo (follow the Nile until you see signs) This place is very, very far away. [website] W ☎ CALL-BFE, tollfree:1(800) CALL-BFE, fax: 1(888) SEND-BFE, email: bfe@gmail.org hours: 24-7. check-in: 2pm, check-out: 11am. price: 1,000 lira.
Some caveats:
- If your optional description contains an equals sign, you must place the parameter
content=
just before the description (after the vertical bar) - 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.