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}} {{outlineitinerary}} {{outlinetopic}} | 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|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. |
|
[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. |
</div> | ||
| {{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. |
| ||
| {{movelistings}} | 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. |
|
[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. |
| ||
| {{cautionbox|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|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|information}} | Information about visa restrictions. |
|
[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.
| Host City for |
| London 2012 Olympics |
| <<Stadium/Venue>>
|
| London 2012 Olympics [2] · London2012 [3] |
[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. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {{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 7 day forecast''' at [http://www.tmd.go.th/en/province.php?id=37 TMD.go.th] }} | Used to show information about the climate of a destination. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {{IATA|XXX}} {{ICAO|KXXX}} | Used to display airport codes, either IATA or ICAO. | IATA: XXX ICAO: KXXX | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {{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. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {{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. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {{traveltopic}} | Identifies an article as a Wikitravel "travel topic" article. Should be placed at the top of the content of an article. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {{itinerary}} | Identifies an article as a Wikitravel "itinerary" article. Should be placed at the top of the content of an 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. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {{geo|lat|long}} | Specifies the latitude and longitude of the location and adds a "Map" link to the page for a Google, Yahoo, or Microsoft map. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {{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. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {{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 bottom of an article. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {{translate|fr}} | Identifies that a more complete article exists in another language version of Wikitravel; encourages the user to help with translation. Placed at the top 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}} | 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. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[edit] Talk pages
| Wiki Markup | Purpose | Template Display |
|---|---|---|
| {{swept}} | Indicates if a discussion has been swept in from the Traveller's Pub |
|
[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 before 2010 |
| ||||
| {{cc-by-sa-2.0}} |
| |||||
| {{cc-by-sa-2.5}} |
| |||||
| {{cc-by-sa-3.0}} | the default license for Wikitravel 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 |
| ||||
| {{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] News
| Wiki Markup | Purpose | Template Display |
|---|---|---|
| {{newsitem|title|date|description}} | A newsitem that is placed on the Travel news page, and optionally also on the Main Page. |
[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.
- Phrasebook - Type {{subst:phrasebook}} into the edit box. - Expands into the Phrasebook article template text when saved.
[edit] Nomination templates
These templates are used on Wikitravel-namespace pages to help unify the presentation of nominations and other internal site processes.
| {{DotmNomination | place=Place Name | status=articlestatus | time=featuretime | comment=Commentary | nominatedBy=~~~~ | DotMImage=Image | DotMBlurb=BlurbForFrontPage }} | This template is used for nominations on the Wikitravel:Destination of the Month candidates page. |
|
[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.
Categories: Stub articles | Outline articles | Usable articles | Guide articles | Star article nominations | Star potential | Star articles | Disambiguation | VfD | Copyvio | Not an article | Articles needing style fixes | Articles containing touting | Articles needing transcription fixes | Articles needing districtification | Articles with districts discussion | Articles with regions discussion | Huge city articles | Articles needing translation from French | Joke articles | Wikitravel help


