Wikivoyage:Template index
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.
Wiki Markup | Purpose | Template Display | ||
---|---|---|---|---|
{{stub}} | Indicates that an article is at stub status. This notice should be added to the bottom of the article. |
| ||
{{outlinecity}} {{outlineregion}} {{outlinecountry}} {{outlinephrasebook}} {{outlineitinerary}} {{outlinetopic}} {{outlinepark}} |
Indicates that an article is at outline status. This notice should be added to the bottom of the article. | |||
{{usablecity}} {{usableregion}} {{usablecountry}} {{usablephrasebook}} {{usabletopic}} {{usableitinerary}} {{usablepark}} |
Indicates that an article of the specified type is at usable status. This notice should be added to the bottom of the article just below the content. | |||
{{guidecity}} {{guideregion}} {{guidecountry}} {{guidephrasebook}} {{guidetopic}} {{guideitinerary}} {{guidepark}} |
Indicates that an article of the specified type is at guide status. This notice should be added to the bottom of the article just below the content. | |||
{{starcity}} {{starregion}} {{starcountry}} {{starphrasebook}} {{startopic}} {{staritinerary}} {{starpark}} |
Indicates that an article of the specified type is at star status. This notice should be added to the bottom of the article just below the content. | |||
{{starnomination}} | 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. | |||
{{destarnomination}} | 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. | |||
{{starpotential}} | 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. |
|
Wiki Markup | Purpose | Template Display | ||
---|---|---|---|---|
{{confused|place}} | Notifies readers that a particular place should not be confused with another place, perhaps with a similar name. | |||
{{disamb}} | Indicates that a page is a disambiguation page. This notice should be added to the bottom of all disambiguation pages. |
| ||
{{otheruses}} | 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. |
|
Redirects
Wiki Markup | Purpose | Template Display |
---|---|---|
{{soft redirect|page}} | Creates a soft redirect to a page on a different wiki. | meta:Main page This page is a soft redirect. |
Further information
Wiki Markup | Purpose | Template Display |
---|---|---|
{{see also}} | Used at top of page sections, to point the reader to related information. |
|
{{moreinfo}} | Used at top of page sections, to point the reader to another page for particular information.. |
|
{{main}} | Used at top of page sections, to point the reader to the main article dealing with a certain topic. |
|
Article notices
These notices are used to indicate that an article needs attention due to some problem:
Wiki Markup | Purpose | Template Display | ||
---|---|---|---|---|
{{delete}} | Indicates that an article qualifies for speedy deletion. This notice should be added to the top of the article. | |||
{{vfd}} | Indicates that an article has been recommended for deletion. This notice should be added to the top of the article. |
| ||
{{copyvio|url}} | 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. | |||
{{merge|destination}} | 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. | |||
{{merge from|destination}} | Indicates that content from another article should be merged into the article. This notice should be placed at the top of an article or section. | |||
{{style}} | 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. |
|||
{{advert}} | Indicates that a page contains extensive touting and hyperbole. This notice should be placed at the top of an article. | |||
{{movetodistrict}} | Content on a huge city main page needs to be split off into districts. This notice should be placed at the top of the section that needs work. | |||
{{movetocity}} | Content on a region page needs to be moved to the respective city articles. This notice should be placed at the top of the section that needs work. | |||
{{districts discussion}} | 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. | |||
{{regions discussion}} | 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. | |||
{{translate|fr}} | 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. | |||
{{transcription|standard}} | Indicates that content in a phrasebook does not match Wikivoyage's romanization standards. |
Warning notices
Informational notices provide warnings and disclaimers about hazards or other vital pieces of information that travelers should be alerted to.
Wiki Markup | Purpose | Template Display | |||
---|---|---|---|---|---|
{{disclaimerbox|text of disclaimer}} | 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. |
| |||
{{cautionbox|text of caution}} | 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. |
| |||
{{warningbox|text of warning}} | 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. |
| |||
{{VisaRestriction|text of information}} | Information about visa restrictions. |
|
Template notices
Wiki Markup | Purpose | Template Display |
---|---|---|
<noinclude>{{documentation}}</noinclude> | Inserts the documentation on a template page. | |
<noinclude>{{experimental}}</noinclude> | Used for experimental templates. |
Wiki Markup | Purpose | Template Display |
---|---|---|
{{discover}} | Inserts the current "Wikivoyage Discover" factoids. Should be placed in the appropriate spot on the Main Page. |
|
These notices are used to promote articles that are collaborations of the month:
Wiki Markup | Purpose | Template Display | ||
---|---|---|---|---|
{{cotm|date}} | Indicates that a page is the current collaboration of the month. This notice should be placed at the top of the article's talk page. | This article is the collaboration of the month for December 2009. Find out how it can be improved, and plunge forward to make this an article we can be proud of! | ||
{{pcotw|from-date|to-date}} | Indicates that a page was previously a collaboration of the week. This notice should be placed at the top of an article's talk page. |
| ||
{{pcotm|date}} | Indicates that a page was previously a collaboration of the month. This notice should be placed at the top of an article's talk page. |
| ||
{{current collaboration}} | Used by other templates to create a link to the current collaboration of the month. | — | ||
{{cotmpromote}} | Used by the Project page to promote the collaboration of the month. |
|
Large events
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.
Host City for |
Sochi 2014 Winter Olympics |
Venue one |
Venue two |
Cluster three |
Park four |
Sochi Olympics · Sochi 2014 |
Content insertion
These templates are used to standardize the look of specific Wikivoyage article content.
Wiki Markup | Purpose | Template Display | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{infobox|title|description}} | Used to create an infobox to display an interesting fact or notable piece of information within an article. Infoboxes should be used sparingly. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{eatpricerange|budget|midrange|splurge}} | Used to establish the local baseline for classifying restaurant listings. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{sleeppricerange|budget|midrange|splurge}} | Used to establish the local baseline for classifying accommodation listings. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Climate | units = Metric | janhigh = 32 | febhigh = 33 | marhigh = 34 | aprhigh = 35 | mayhigh = 34 | junhigh = 33 | julhigh = 33 | aughigh = 33 | sephigh = 32 | octhigh = 32 | novhigh = 32 | dechigh = 31 | janlow = 21 | feblow = 23 | marlow = 25 | aprlow = 26 | maylow = 26 | junlow = 25 | jullow = 25 | auglow = 25 | seplow = 25 | octlow = 24 | novlow = 23 | declow = 21 | janprecip = 9 | febprecip = 29 | marprecip = 28 | aprprecip = 64 | mayprecip = 220 | junprecip = 149 | julprecip = 154 | augprecip = 196 | sepprecip = 344 | octprecip = 241 | novprecip = 48 | decprecip = 9 | description = Check Bangkok's '''[http://www.tmd.go.th/en/province.php?id=37 7-day forecast]''' }} |
Used to show information about the climate of a destination. The units field can be set to Metric or Imperial depending on the local preference. For U.S. articles, this page exists to automatically generate the wikitext needed to display the template correctly. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{IATA|XXX}} | Used to display IATA airport codes. | XXX IATA | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{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. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{pagebanner|image}} |
Used to display a banner at the top of each article | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Quickbar |
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. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{regionlist | regionmap=Macao-map.png | regionmaptext=Districts of Macau | regionmapsize=250px | region1name=[[Macau/Peninsula|Macau Peninsula]] | region1color=#d56d76 | region1items= | region1description=The peninsula in the north. | region2name=[[Macau/Taipa|Taipa]] | region2color=#d5dc76 | region2items= | region2description=The northern island. | region3name=[[Macau/Cotai|Cotai]] | region3color=#d09440 | region3items= | region3description=A strip of reclaimed land. | region4name=[[Macau/Coloane|Coloane]] | region4color=#71b37b | region4items= | region4description=The southern island. }} |
Shows regions and a map of a huge city, country or region article. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{PrintDistricts}} | 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. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{SeeDistricts}} | 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. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{attribution|Source1|Source2|...|Source30}} | 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. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{joke}} | 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. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{CompletedEvent|year|text}} | 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. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{LunarNewYeardates}} | Used to list the dates and names of the Lunar years based on the Chinese calendar |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{ramadandates}} | Used to list the dates of Ramadan |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{lang|ja|須賀川}} |
Used to display some text in another language (add the correct markup around it) | 須賀川 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{flag|countryname}} |
Used to include the flag of a given country | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{schengen}} |
Used to include the boilerplate text needed in the Get in section of every Schengen member | (long text, see Template:Schengen) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{euro}} |
Used to include the boilerplate text needed in the Buy section of every country using the euro | Template index uses the euro, like several other European countries. One euro is divided into 100 cents. The official symbol for the euro is €, and its ISO code is EUR. There is no official symbol for the cent.
All banknotes and coins of this common currency are legal tender within all the countries, except that low-denomination coins (one and two cent) are phased out in some of them. The banknotes look the same across countries, while coins have a standard common design on the reverse, expressing the value, and a national country-specific design on the obverse. The obverse is also used for different designs of commemorative coins. The design of the obverse does not affect the coin's acceptability. |
Maps, listings and geocoding
These templates are used to generate points of interest for dynamic maps, geographic co-ordinates and individual listings.
Wiki Markup | Purpose | Template Display | ||
---|---|---|---|---|
{{see | name=Exploratorium | url=https://www.exploratorium.edu/ |
Used to display a See listing in hCard microformat. | 1 Exploratorium, Pier 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. | ||
{{do | …}} |
Used to display a Do/Buy/Eat/Drink/Sleep listing in hCard microformat, similar to {{see | …}}. The base template is {{listing}}, all other hCards are derived from it. Co-ordinates may be specified for use on dynamic maps. | |||
{{marker|type=|name=|lat=|long=}} | Specifies the latitude and longitude of a point of interest for inclusion on a dynamic map. Similar to {{listing}} but provides just a name and co-ordinates for inclusion inline with text. | 1 Palace of Fine Arts | ||
{{mapframe|lat|long|zoom=|height=|width=|layer=|staticmap=|align=|name=}} | Displays a PoiMap2 dynamic map on the current page using OpenStreetMap and co-ordinates from listings and markers. | |||
{{PoiMap2detail|lat|long|zoom=|layer=|Description}} | 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. |
| ||
{{geo|lat|long}} | 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. | |||
{{Food-icon}} |
Used to display icons indicating the services available at listings in hCard microformat. |
Talk pages
Wiki Markup | Purpose | Template Display | ||
---|---|---|---|---|
{{talk page}} | Talk page of a Wikivoyager |
| ||
{{swept}} | Indicates if a discussion has been swept in from the Traveller's Pub |
| ||
{{subst:unsigned|username}} | Annotates unsigned posts to make discussions easier to follow. This template must be substituted. | —The preceding comment was added by DenisYurkin (talk • contribs) | ||
{{subst:wikipedian}} | Welcomes a new user believed to be familiar with Wikipedia on their user talk page. This template must be substituted. | Hello, Template index! Welcome to Wikivoyage... | ||
{{subst:welcome}} | Welcomes a new user on their user talk page. This template must be substituted. | Hello, Template index! Welcome to Wikivoyage... | ||
{{subst:welcomebusiness}} | Welcomes a new user (likely business owner) on their user talk page. This template must be substituted. | Hello, Template index! Welcome to Wikivoyage...Please also have a look at welcome, business owners, welcome, tourism professionals and the don't tout guidelines. | ||
{{subst:tout}} | Tells a new user that they have been touting, and explains way. This template, also, must be substituted. | Hello, Template index! Thank you for contributing to Wikivoyage, but please note that one or more of your recent edits has been reverted... | ||
{{talk archive}} | Marks a page as an archive that should not be edited. |
| ||
{{airport expedition}} | Indicates an article is part of the Airport Expedition |
| ||
{{Wikipedia|WP article name}} | 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. |
|
User pages
Wiki Markup | Purpose | Template Display | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{User page}} | Identify a page as belonging to the Userspace of a Wikivoyager |
| ||||||||||||||||||||||||||||||
{{Interwiki}} | Display a table with links and images to a Wikivoyager's user page on the other Wikivoyage sister projects |
|
Image copyright
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:
Wiki Markup | Purpose | Template Display | |||||||
---|---|---|---|---|---|---|---|---|---|
{{cc-by-sa-1.0}} | the default license for Wikivoyage before 2010 |
| |||||||
{{cc-by-sa-2.0}} |
| ||||||||
{{cc-by-sa-2.5}} |
| ||||||||
{{cc-by-sa-3.0}} | the default license for Wikivoyage from 2010 |
| |||||||
{{cc-by-sa-all}} | licenses the image under all current and future versions of cc-by-sa |
| |||||||
{{dual-gfdl-cc-by-sa-3.0}} | for images licensed under both cc-by-sa 3.0 and GFDL |
| |||||||
{{dual-gfdl-cc-by-sa-any}} | for images licensed under any version of cc-by-sa and GFDL |
| |||||||
{{cc-zero}} | for images licensed under the CC-0 Public Domain dedication |
| |||||||
{{PD-author}} | use this if the author of the image has released it into the Public Domain |
| |||||||
{{PD-old}} | use this if the image is in the public domain because the author died more than 70 years ago |
| |||||||
{{PD-self}} | use this if you are the author of the image, and have released it into the Public Domain |
| |||||||
{{PD-USGov}} | use this if it is an image created by an employee of the US federal government, during the course of their duties |
| |||||||
{{Non-free image|articles= [[Article]]|license=license}} |
For non-free images uploaded locally |
| |||||||
{{Wikivoyage-screenshot}} | For screenshots uploaded locally |
| |||||||
{{License review|~~~|~~~~~}} | Indicating the license of a file has been verified by an administrator or reviewer |
|
Inserting boilerplate text
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.
- Country - Type {{subst:country skeleton}} into the edit box. - Expands into the Country article template text when saved.
- Region - Type {{subst:region skeleton}} into the edit box. - Expands into the Region article template text when saved.
- Small city - Type {{subst:smallcity skeleton}} into the edit box. - Expands into the Small city article template text when saved.
- Big city - Type {{subst:bigcity skeleton}} into the edit box. - Expands into the Big city article template text when saved.
- Huge city - Type {{subst:hugecity skeleton}} into the edit box. - Expands into the Huge city article template text when saved.
- District - Type {{subst:district skeleton}} into the edit box. - Expands into the District article template text when saved.
- Park - Type {{subst:park skeleton}} into the edit box. - Expands into the Park article template text when saved.
- Phrasebook - Type {{subst:phrasebook skeleton}} into the edit box. - Expands into the Phrasebook article template text when saved.
Nomination templates
These templates are used on Wikivoyage-namespace pages to help unify the presentation of nominations and other internal site processes.
{{FeatureNom | place=Place Name | status=articlestatus | time=featuretime | comment=Commentary | nominatedBy=~~~~ | DotMImage=Image | DotMBlurb=BlurbForFrontPage }} |
This template is used for nominations on the Project:Destination of the Month candidates page. |
|
Print formatting
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.
- {{index|...}}
- Add an entry to the index for this point
- {{pagebreak}}
- Force a page break here
Policy pages
{{historical}} | Marks a policy page as historical and not in active use. |
| ||
{{nutshell|text}} | Describes a certain policy in a nutshell. It is placed at the top of a policy page. |
|
- {{IsPartOf}} Generation of breadcrumbs for destination article.
- {{PartOfTopic}} Generation of breadcrumbs for travel topic article.
- {{PartOfItinerary}} Generation of breadcrumbs for itinerary article (single continent level).
Graffiti wall
Similar to Project:Graffiti wall, you can use Template:Graffiti wall to play with a major edit to existing template before making it live for an existing (and widely used) template.
Other
{{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.
See also
- Using Mediawiki templates - Policies about template use and creation.
- Article skeleton templates - Guidelines about standard sections that should be included in Wikivoyage articles.