Wikitravel:Template index
From Wikitravel
Contents
The MediaWiki software used to run Wikitravel 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.
[edit] Article status
| 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. |
| ||
| {{outline}} | 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 a 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 a 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. |
| ||
| {{starnomination}} | Indicates that a an article of has been nominated for star status. This notice should be added to the bottom of the article just below the content, in place of the "guide" 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. |
| ||
| {{starcity}} {{starregion}} {{starcountry}} {{starphrasebook}} {{startopic}} {{staritinerary}} {{starpark}} | Indicates that a 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. |
|
[edit] Disambiguation notices
| Wiki Markup | Purpose | Template Display | ||
|---|---|---|---|---|
| {{confused}} | 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. |
|
[edit] Further information
| Wiki Markup | Purpose | Template Display |
|---|---|---|
| {{seealso}} | Used at top of page sections, to point reader to related information. |
|
| {{moreinfo}} | Used at top of page sections, to refer reader to another page for particular information.. |
|
[edit] Articles needing attention
These notices are used to indicate that an article needs attention due to some problem:
| Wiki Markup | Purpose | Template Display | |
|---|---|---|---|
| {{vfd}} | Indicates that an article has been recommended for deletion. This notice should be added to the top of the article. | ||
| {{ifd}} | Indicates that an image has been recommended for deletion. This notice should be added to the image description on the article(s) where the image appears. |
This image has been recommended for deletion. | |
| {{ifds}} | Same as above, but used for images that are located on :Shared |
This image has been recommended for deletion. | |
| {{copyvio|url}} | Used on pages that contain a copyright violations. This notice should be placed at the top of an article. Note that 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. | ||
| {{style}} | Indicates that a page does not conform to the manual of style. This notice should be placed at the top of an article. |
| |
| {{ad}} | Indicates that a page contains extensive touting and hyperbole. This notice should be placed at the top of an article. |
| |
| {{transcription|standard}} | Indicates that content in a phrasebook does not match Wikitravel's romanization standards. |
| |
| {{districtify}} | 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. |
|
[edit] Collaboration of the month
These notices are used to promote articles that are collaborations of the month:
| Wiki Markup | Purpose | Template Display | |
|---|---|---|---|
| {{cotm|from-date|to-date}} | Indicates that a page is the current collaboration of the month. This notice should be placed at the top of an article as well as at the top of the article's talk page. |
| |
| {{pcotm|from-date|to-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. |
| |
| {{cotmpromote}} | Used on the front page to promote the current collaboration of the month. |
| |
| {{Current collaboration}} | Used by other templates to create a link to the current collaboration of the month. |
[edit] Other information 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|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. |
| |
| {{warningbox|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. |
|
[edit] 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.
[edit] Content insertion
These templates are used to standardize the look of specific Wikitravel 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. |
| ||||||||||||||||||||||||||||||
| {{newsitem|title|date|description}} | Used to create a news item on the Main Page. |
| ||||||||||||||||||||||||||||||
| {{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 Wikitravel:Routebox navigation for more detailed instructions. |
| ||||||||||||||||||||||||||||||
|
{{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. For the image argument, please make sure the width is exactly 250px (the width of the quickbar) and that the "noframe" option is specified. |
| ||||||||||||||||||||||||||||||
| {{traveltopic}} | Identifies an article as a Wikitravel "travel topic" article. Should be placed at the top of the content of an article. |
This article is a travel topic.
| ||||||||||||||||||||||||||||||
| {{itinerary}} | Identifies an article as a Wikitravel "itinerary" article. Should be placed at the top of the content of an article. |
This article is an itinerary.
| ||||||||||||||||||||||||||||||
| {{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. | |||||||||||||||||||||||||||||||
| {{geo|lat|long}} | ||||||||||||||||||||||||||||||||
| {{discover}} | Inserts the current "Wikitravel Discover" factoids. Should be placed in the appropriate spot on the Main Page. |
| ||||||||||||||||||||||||||||||
| {{Unsigned|UserName}} | Annotates unsigned posts to make discussions easier to follow | —The preceding comment was added by DenisYurkin (talk • contribs) | ||||||||||||||||||||||||||||||
| {{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. |
| ||||||||||||||||||||||||||||||
| {{Mergecredit|Redirect page}} | Identifies other articles whose content has been merged to this article, to comply with the Attribution requirement of the Creative Commons BY-SA license. Placed at the bottom of an article. |
| ||||||||||||||||||||||||||||||
[edit] Image copyright
All images, files, etc on Wikitravel 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 Wikitravel |
| ||||
| {{cc-by-sa-2.0}} |
| |||||
| {{cc-by-sa-2.5}} |
| |||||
| {{cc-by-sa-3.0}} |
| |||||
| {{cc-by-sa-all}} | licenses the image under all current and future versions of cc-by-sa |
| ||||
| {{dual-gfdl-cc-by-sa-1.0}} | for images licensed under both cc-by-sa 1.0 and GFDL |
| ||||
| {{dual-gfdl-cc-by-sa-any}} | for images licensed under any version of cc-by-sa and GFDL |
| ||||
| {{PD-creator}} | use this if you are the creator of the image and wish to release it into the Public Domain |
| ||||
| {{PD-fed}} | most images created by a US federal gov't employee during the course of duty are in the Public Domain | | ||||
| {{PD}} | use this if you are not the creator of the image, but have found it already in the Public Domain |
|
[edit] Inserting boilerplate text
Wikitravel has a number of article templates that can be used to format articles. The following substitution texts can be used to quickly insert the article 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}} into the edit box. - Expands into the Country article template text when saved.
- Region - Type {{subst:region}} into the edit box. - Expands into the Region article template text when saved.
- Small city - Type {{subst:smallcity}} into the edit box. - Expands into the Small city article template text when saved.
- Big city - Type {{subst:bigcity}} into the edit box. - Expands into the Big city article template text when saved.
- Huge city - Type {{subst:hugecity}} into the edit box. - Expands into the Huge city article template text when saved.
- District - Type {{subst:district}} into the edit box. - Expands into the District article template text when saved.
- Park - Type {{subst:park}} into the edit box. - Expands into the Park article template text when saved.
[edit] Print formatting
The following special templates are used by Wikitravel Press to control the appearance of printed text. They have no impact on the appearance of website and can be safely ignored.
- {{index|...}}
- Add an entry to the index for this point
- {{pagebreak}}
- Force a page break here
- {{web|...}}
- Show this content only on the web, not in print
See Editor's Handbook: Preparing guides for print for details.
[edit] Graffiti wall
Similar to Wikitravel: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.
[edit] See also
- Using Mediawiki templates - Policies about template use and creation.
- Article templates - Guidelines about standard sections that should be included in Wikitravel articles.


