The MediaWiki software used to run Wikivoyage offers the capability to automatically generate sophisticated HTML using templates. Templates are faster than typing manually, and keep common messages uniform across the site. New templates should be discussed before being created or modified.
The list below shows most of the templates that are currently available, alongside brief explanations of how and where to use them, or you can see a complete list of all pages in the Template namespace.
Indicates that an article has been nominated for star status. This notice should be added to the top of the article just below the "pagebanner" template.
Indicates that an article has been nominated to lose its star status. This notice should be added to the top of the article just below the "pagebanner" template.
Draws attention to a failed star nomination for an article and the reasons why it wasn't awarded star status. This notice should be placed at the top of an article's discussion page.
Used on pages that would normally require disambiguation, but meet the "most famous" exception (such as Paris and Denmark). This notice should be added to the top of the article and will create a link to a disambiguation page.
Indicates that an article qualifies for speedy deletion. This notice should be added to the top of the article.
This page is a candidate for deletion. It will be deleted by an administrator as soon as possible, if its deletion complies with our deletion policy. If you believe this article does not meet the criteria for speedy deletion, replace this notice with a {{Wy/si/vfd}} notice and nominate this article for deletion on the Votes for deletion page.
Used on pages that contain copyright violations. This notice should be placed at the top of an article. It is generally preferred to just remove copyrighted information and then leave a note on the talk page indicating where the content came from and why it was removed.
Indicates that an article does not meet the article criteria and that its content should be merged into the destination article. This notice should be placed at the top of an article.
Indicates that a page does not conform to the manual of style. This notice should be placed at the top of the relevant article or section. Optionally, the suggested remedy may be specified after a vertical bar character e.g.: {{style|[[Units#Avoid_orphaned_units]]}}, in which case the subsequent default text of "Please use the article's talk page to ask questions if you are not sure why this tag was added and whether it is safe to remove it." will not display.
Discussion on the Talk page is under way for defining new districts. This notice should be placed at the top of the city article that has a districts discussion taking place.
Discussion on the Talk page is under way for defining new regions. This notice should be placed at the top of a regions article that has a regions discussion taking place.
Identifies that a more complete article exists in another language version of Wikivoyage; encourages the user to help with translation. Placed at the top of an article.
A disclaimer is a sparingly-used message, normally containing editorial content about policy decisions. A disclaimer should generally be discussed prior to being added to an article.
Used for non-life-threatening warnings that could affect a traveler's possessions, finances, or health, and other notices that need presentation in an attention-grabbing format. It should be used sparingly—only if normal prose is insufficient for some reason.
You can use the parameter "boldtext=" to change the word "NOTE" to something else.
Used to call out information that is vital to a traveler's safety, such as recent damage from a natural disaster, political instability, or some other serious condition. Warning boxes should be sparingly used and placed either at the top of an article or within the article section that is related to the warning.
This article is an experiment. See the article criteria for guidelines on what subjects are typically given their own articles and use this article's discussion page to explain the purpose for the article and whether the content should (or should not) be merged into another page.
Please do not remove this tag until a consensus to do so has been reached on the article/template's discussion page.
These are temporary templates for use on articles where large and significant events will be hosted. These templates should be deleted and removed from here once the event has passed.
{{routebox | image1=image name (do not include "Image:")
| imagesize1=pixel size for icon (optional, defaults to 22px)
| directionl1=direction (should be N, NW, W, or SW)
| majorl1=[[Next major city or junction]]
| minorl1=[[Next minor city]] (optional)
| directionr1=opposite direction (should be S, SE, E, or NE)
| majorr1=[[Next major city or junction]]
| minorr1=[[Next minor city]] (optional)
}}
Used to add routes through the city. For more than one route, add a space and then the "image" through "minorr1" lines before the closing brackets and replace "1" with "2", "3",etc. See Project:Routebox navigation for more detailed instructions.
Used to create the quick reference box for country pages (and should not be used anywhere else). All arguments to the command are optional and should be explicitly set only as a purposeful override to the Wikidata property which is normally sourced by the template.
Applied to articles using the Huge City template to point out that listings are on separate district pages. Should be placed at the top of the content of an article.
Applied at the top of the sleep, eat, drink, do and see sections of huge cities. Indicates that listings are to be found within the district articles of a city.
Identifies external sources that contributed content to the article, to comply with the Attribution requirement of the Creative Commons BY-SA license. Placed at the bottom of an article.
Indicates that the article has been written as an April Fool's Day joke, and that no more edits should be made. It is placed at the top of the article.
Indicates that the article has been written for an event that has passed, and that no more edits should be made. It is placed at the top of the article.
| name=Exploratorium | url=https://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
| 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.
}}
Used to display a See listing in hCard microformat.
Used to display a Do/Buy/Eat/Drink/Sleep listing in hCard microformat, similar to {{see | …}}. The base template is {{Wy/si/listing}}, all other hCards are derived from it. Co-ordinates may be specified for use on dynamic maps.
Specifies the latitude and longitude of a point of interest for inclusion on a dynamic map. Similar to {{Wy/si/listing}} but provides just a name and co-ordinates for inclusion inline with text.
Links to a PoiMap2 dynamic map without embedding it in the current page. Useful for long itinerary where multiple "Detailed map" links may be needed to cover the entire route in detail.
Specifies the latitude and longitude of the page/city location and adds a "Map" icon to the upper-right corner of the article page that links to the same full-screen dynamic OpenStreetMap as the {{PoiMap2detail}} template above.
Identifies content reused from articles on Wikipedia, also to comply with the Attribution requirement of the Creative Commons BY-SA license. Placed at the talk page of the article, as stated in the template's description. If you place it in the article itself it will not produce anything.
All images, files, etc. on Wikivoyage must be published according to our copyleft. When uploading a file it is imperative that you select a compatible license:
Wikivoyage has a number of article skeletons that can be used to format articles. The following substitution texts can be used to quickly insert the article skeleton template into newly created articles. When the article is saved the shortcut is replaced with the text. This is a one-off substitution and can only be undone by deleting the inserted text - use with care.
The following special templates were used by Wikitravel Press to control the appearance of printed text. They have no impact on the appearance of articles and can be safely ignored. They are retained for possible future use in other printed travel guides.
Describes a certain policy in a nutshell. It is placed at the top of a policy page.
මෙම පිටුවේ විස්තරය සැකෙවින්: The core, underlying principle of Wikivoyage is that this site is written for the benefit of travellers. The question of "what is best for the traveller" should always guide decision making.
Similar to Project:Graffiti wall, you can use Graffiti wall to play with a major edit to existing template before making it live for an existing (and widely used) template.
{{Wy/si/cbignore}} – A no-op template marking an URL to be ignored by bots that would otherwise mark it as dead. This can be relevant for sites that misbehave when accessed by bots. When seen on editing, you might want to check manually that the link works.