|
|
Template index
From eTripTips Wiki
The MediaWiki software used to run Wikitravel offers the capability to automatically generate sophisticated HTML using templates. 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. You may prefer a straightforward list of 'all pages in the 'Template' namespace'
[edit] Available Templates
The following templates can be used in articles.
[edit] Notices
Notices are short fragments of standard text that should appear on relevant pages. Most reflect an article's status. A template is used so that a standard text appears on each relevant page. This saves typing. The following notices are currently available.
These notices are used to indicated article status:
| 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.
|
|
| {{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.
| e.g.
| This is a usable article. It has information for getting in as well as some complete entries for restaurants and hotels. An adventurous person could use this article, but please plunge forward and help it grow!
|
|
{{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.
| e.g.
| This is a guide article. It has a variety of good, quality information including hotels, restaurants, attractions, arrival and departure info. Plunge forward and help us make it a star!
|
|
| {{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.
|
|
{{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.
| e.g.
| This is a star article. It is a high-quality article complete with maps, photos, and great information. If you know of something that has changed, please plunge forward and help it grow!
|
|
These notices are used with disambiguation pages:
| Wiki Markup
| Purpose
| Template Display
|
| {{disamb}}
| Indicates that a page is a disambiguation page. This notice should be added to the bottom of all disambiguation pages.
|
| This article is a disambiguation page. If you arrived here by following a link from another page you can help by correcting it, so that it points to the appropriate disambiguated page.
|
|
| {{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.
|
- For other places with the same name, see Paris (disambiguation).
|
These notices are used to indicate that an article needs attention due to some problem:
| Wiki Markup
| Purpose
| Template Display
|
| {{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.
|
|
| {{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.
|
|
Template index is a huge city, so all individual listings should be moved to the appropriate district articles. Please help sort them out if you are familiar with this city.
|
|
| {{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.
|
|
| {{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.
|
|
| {{style}}
| Indicates that a page does not conform to the manual of style. 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.
|
|
These notices are used to promote articles that are collaborations of the week:
| Wiki Markup
| Purpose
| Template Display
|
| {{cotw|from-date|to-date}}
| Indicates that a page is the current collaboration of the week. This notice should be placed at the top of an article as well as at the top of the article's talk page.
|
|
This article is the Collaboration of the week for the period 27 Mar 2006 to 2 Apr 2006. 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.
|
|
| {{cotwpromote}}
| Used on the front page to promote the current collaboration of the week.
|
|
| {{Current COTW}}
| Used by other templates to create a link to the current collaboration of the week.
| Vienna
|
[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.
|
|
Here Tibet is used as a synonym for the Tibetan Autonomous Region (T.A.R.) of China not the historic Tibet in existance prior to the Chinese takeover. This is not a political statement. The strict restrictions on freedom of movement put on foreigners, sharply divides the T.A.R from ethnically Tibetan areas that form a geographic and cultural continuation of Tibet to the east of the T.A.R..
|
|
| {{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.
|
|
WARNING: The effects of Hurricane Katrina severely damaged parts of New Orleans at the end of August, 2005, and it expected to take many months for the city to return to normality. As of Spring 2006, most services in the main travel centers (French Quarter, Central Business District, Garden District, and Faubourg Marigny) are back to normal; however, be prepared for contingencies if you're traveling outside the city center.
|
|
[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.
|
|
Sample title
Sample description
|
|
| {{eatpricerange|budget|midrange|splurge}}
| Used to establish the local baseline for classifying restaurant listings.
|
| This guide uses the following price ranges for a typical meal for one, including soft drink:
|
| Budget | Under $10
|
| Mid-range | $10-30
|
| Splurge | Over $30
|
|
| {{sleeppricerange|budget|midrange|splurge}}
| Used to establish the local baseline for classifying accommodation listings.
|
| This guide uses the following price ranges for a standard double room:
|
| Budget | Under $50
|
| Mid-range | $50-100
|
| Splurge | Over $100
|
|
| {{newsitem|title|date|description}}
| Used to create a news item on the Main Page.
| Budget terminals at Sing, KL
23 March 2006
New airport terminals built for low-cost carriers open in Kuala Lumpur on March 23 and in Singapore in March 26. Flights by Air Asia, Malaysia's sole low cost carrier, will operate from the new terminal, while Tiger Airways will move to Singapore's Budget Terminal. (more...)
|
|
{{quickbar
| image=[[Image:Pretty.jpg|noframe|250px]]
| flag=[[Image:xx-flag.png]]
| location=[[Image:xx-location.png]]
| capital=Capital
| government=Government type
| currency=Local currency (ABC)
| area=123 sq km
| population=4,567,890 (July 2005 est.)
| language=Language1, Language2
| religion=Religion1, Religion2
| electricity=xxxV/yyHz (Z plug)
| callingcode=+CC
| tld=.xx
| timezone=UTC +N
}}
| 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.
|
|
| Flag
|
|
| Quick Facts
|
| Capital
| Singapore
|
| Government
| Parliamentary pepublic
|
| Currency
| Singapore dollar (SGD)
|
| Area
| total: 692.7 sq km water: 10 sq km land: 682.7 sq km
|
| Population
| 4,425,720 (July 2005 est.)
|
| Language
| English (official), Chinese (official), Malay (official and national), Tamil (official)
|
| Religion
| Buddhist, Muslim, Christian, Hindu, Sikh, Taoist, Confucianist
|
| Electricity
| 230V/50Hz (British plug)
|
| Calling Code
| +65
|
| Internet TLD
| .sg
|
| Time Zone
| UTC +8
|
|
| {{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.
|
- Template index is a huge city with several district articles containing sightseeing, restaurant, nightlife and accommodation listings — consider printing them all.
|
| {{discover}}
| Inserts the current "Wikitravel Discover" factoids. Should be placed in the appropriate spot on the Main Page.
|
- If you visit Albuquerque and hear people talking about the "Big Eye", don't get paranoid; it's not a surveillance device, but rather the intersection of two Interstate highways.
- One of the sights of Senggigi, Indonesia is an empty chair representing Brahma's empty throne.
- College Park (Maryland) is the site of the world's oldest continuously operated airport.
|
| {{Unsigned|UserName}}
| Annotates unsigned posts to make discussions easier to follow
| —The preceding comment was added by DenisYurkin (talk • contribs) .
|
[edit] Image Copyright
Use one of the following templates to clearly indicate the copyright status of an image on its image page. This as an easy way of complying with the Wikitravel:Image policy, though using a templates is not required :
[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] 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.
[edit] See also
|