维基导游:模板索引
MediaWiki軟件是用作運行维基导游提供使用模板自动生成复杂HTML的功能。模板比手动输入更快,并使整个站点的公共消息保持一致。在创建或修改之前应该讨论新模板。
下面的列表显示了当前可用的大多数模板,以及如何以及在何处使用它们的简要说明,或者您可以查找模板命名空间中的所有页面。
維基標記 | 目的 | 模板顯示 | ||
---|---|---|---|---|
{{stub}} | 表明條目处于小作品状态。該通知應被添加到條目底部。 | |||
{{outlinedistrict}} {{outlinecity}} {{outlineregion}} {{outlinecountry}} {{outlinephrasebook}} {{outlineitinerary}} {{outlinetopic}} {{outlinepark}} |
表明特定類型的條目处于大纲状态。該通知應被添加到條目底部。 | |||
{{usabledistrict}} {{usablecity}} {{usableregion}} {{usablecountry}} {{usablephrasebook}} {{usabletopic}} {{usableitinerary}} {{usablepark}} |
表明特定類型的條目处于可用状态。該通知應被添加到條目正下方內容之底部。 | |||
{{guidedistrict}} {{guidecity}} {{guideregion}} {{guidecountry}} {{guidephrasebook}} {{guidetopic}} {{guideitinerary}} {{guidepark}} |
表明特定類型的條目处于指南状态。該通知應被添加到條目正下方內容之底部。 | |||
{{stardistrict}} {{starcity}} {{starregion}} {{starcountry}} {{starphrasebook}} {{startopic}} {{staritinerary}} {{starpark}} |
表明特定類型的條目处于明星状态。該通知應被添加到該條目正下方內容之底部。 | |||
{{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. |
|
維基標記 | 目的 | 模板顯示 | ||
---|---|---|---|---|
{{confused|place}} | 通知读者不要将某个地方与另一个地方混淆,也许是名字相似。 |
| ||
{{Disamb}} | 表示页面是消歧义页。此通知应添加到“所有”消歧页面的底部。 |
| ||
{{Otheruses}} | 用于通常需要消除歧义的页面,但符合“最着名”的例外(例如巴黎和丹麦)。此通知应添加到文章的顶部,并将创建指向消歧页面的链接。 |
|
重定向
编辑維基標記 | 目的 | 模板顯示 |
---|---|---|
{{Soft redirect|''頁面''}} | 創建一個軟重定向到不同維基的一個頁面上。 | meta:Main page 本頁面為軟重定向。 |
更多信息
编辑維基標記 | 目的 | 模板顯示 |
---|---|---|
{{See also}} | 用於在頁面頂部的部分,給讀者指出相關信息. |
|
{{Moreinfo}} | 用于在页面顶部的部分,给读者指向另一个页面的特定信息。 |
|
{{Main}} | 用於在頁面頂部的部分,給讀者指出的文章主要涉及某個話題。 |
|
条目声明
编辑These notices are used to indicate that an article needs attention due to some problem:
維基標記 | 目的 | 模板顯示 | ||
---|---|---|---|---|
{{Delete}} | 標示條目符合快速删除。该通知应被添加到文章的顶部。 | |||
{{Vfd}} | Indicates that an article has been recommended for deletion. This notice should be added to the top of the article. |
| ||
{{Copyvio|網址}} | Used on pages that contain a 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. | |||
{{Copypaste|網址}} | 拷貝後貼上的內容 | |||
{{Merge|目的地}} | 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. |
| ||
{{TARequired}} | 需要增加人工地區詞轉換 |
| ||
{{Update|time=input time here}} | 需要更新 |
| ||
{{Dead end}} | 需要增加內部鏈接 | |||
{{Transcription|standard}} | Indicates that content in a phrasebook does not match Wikivoyage's romanization standards. |
|
警告声明
编辑資訊公告提供有關危害或其他資訊重要部分給旅行者應警惕警告和聲明。
維基標記 | 目的 | 模板顯示 | ||||
---|---|---|---|---|---|---|
{{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. |
|
模板声明
编辑維基標記 | 目的 | 模板顯示 | ||
---|---|---|---|---|
<noinclude>{{documentation}}</noinclude> | Inserts the documentation on a template page. | |||
<noinclude>{{Experimental}}</noinclude> | Used for experimental templates. |
|
維基標記 | 目的 | 模板顯示 |
---|---|---|
{{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:
維基標記 | 目的 | 模板顯示 | ||
---|---|---|---|---|
{{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. |
我們的大洲條目是通向其他內容的重要端口,但他們常常有格式散亂和長篇空白等問題。我們需要填入這些條目需要的基本內容,然後讓他們煥發(sparkle)。為一個大洲寫一個「觀光」或「活動」段落其實非常容易,特別是如果我們得到一隊人一起玩到自己的長處。任務:
|
大型活动
编辑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.
主辦城市 |
索契2014年冬季奧運會 |
Venue one |
Venue two |
Cluster three |
Park four |
索契 奧運 · 索契 2014 |
内容插入
编辑These templates are used to standardize the look of specific Wikivoyage article content.
維基標記 | 目的 | 模板顯示 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{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 Wikivoyage: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. 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. |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Itinerary}} | Identifies an article as a Wikivoyage "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. |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{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. |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{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. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{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. |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{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 |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{See | name=Exploratorium | url=http://www.exploratorium.edu/ |
Used to display a See listing in hCard microformat, see Template:See/doc | 1 Exploratorium,地址 Pier 15, 698 The Embarcadero(at Green St),📞 +1 415 528-4360。🕘 Tu-Su 10AM-5PM; open W until 10PM, closed M。💰 Adults: $25, Students/seniors/youth: $19, Children age 5 and under: Free。簡介 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. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{do | …}} |
Used to display a Do/Buy/Eat/Drink/Sleep listing in hCard microformat, similar to {{see | …}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{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 | 模板索引 uses the euro (€, EUR) as its money. It is one of 23 European countries that use this common European currency: Austria, Belgium, Cyprus, Estonia, Finland, France, Germany, Greece, Ireland, Italy, Luxembourg, Malta, the Netherlands, Portugal, Slovakia, Slovenia and Spain (which are all eurozone countries of the European Union or EU) together with the six non-EU members Andorra, Kosovo, Monaco, Montenegro, San Marino and the Vatican that also solely use euros but have no say in eurozone affairs. These 23 countries together have a population of more than 330 million.
One euro is divided into 100 cents. Except for Kosovo and Montenegro, all issue their own coins with a distinctive, national face. However, all the coins' obverse looks the same, as do all bills or banknotes and all are legal tender in all 23 countries. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Indian Rupee}} |
Used to include the Indian Rupee symbol | ₹ |
讨论页面
编辑維基標記 | 目的 | 模板顯示 | ||||||
---|---|---|---|---|---|---|---|---|
{{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. | --以上未簽名的留言由DenisYurkin(對話|貢獻)加入。 | ||||||
{{subst:Welcome}} | Welcomes a new user on their user page. This template must be substituted. |
感谢您对维基导游的兴趣与贡献,希望您喜欢这里。除了歡迎辭以外,也請您了解以下重要文章:
| ||||||
{{Talk archive}} | Marks a page as an archive that should not be edited. |
| ||||||
{{Airport expedition}} | Indicates an article is part of the Airport Expedition |
|
用戶頁面
编辑維基標記 | 目的 | 模板顯示 | ||
---|---|---|---|---|
{{User page}} | 用戶頁面 of a Wikivoyager |
|
图像版权
编辑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:
維基標記 | 目的 | 模板顯示 | ||||||
---|---|---|---|---|---|---|---|---|
{{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 |
| ||||||
{{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 |
| ||||||
{{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 |
|
插入样板文本
编辑Wikivoyage 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 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.
提名模板
编辑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 Wikivoyage:Destination of the Month candidates page. |
|
打印格式
编辑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
方针页面
编辑{{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. |
|
维护
编辑以下的模板中的訊息僅為參考,沒有人需強迫遵守它們。
模板名稱 | 效用 | 位置 | ||||
---|---|---|---|---|---|---|
正在进行擴展或重大修改 {{ Underconstruction }} |
|
文章頂部 |
- {{IsPartOf}} Generation of breadcrumbs for destination article.
- {{PartOfTopic}} Generation of breadcrumbs for travel topic article.
涂鸦墙
编辑Similar to Wikivoyage: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.
另请参阅
编辑- Using Mediawiki templates - Policies about template use and creation.
- Article templates - Guidelines about standard sections that should be included in Wikivoyage articles.