Jump to content

Wy/si/විකිචාරිකා:සැකිලි සුචිය

From Wikimedia Incubator
< Wy | si
(Redirected from Wy/si/Wikivoyage:Template index)
Wy > si > විකිචාරිකා:සැකිලි සුචිය
ඉංග්‍රීසි ව්‍යාපෘතියෙන් ගෙනා පෙළ


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. Template:Wy/si/Outlinecity
{{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. Template:Wy/si/Usablecity
{{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. Template:Wy/si/Guidecity
{{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. Template:Wy/si/Starcity
{{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. Template:Wy/si/Starnomination
{{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. Template:Wy/si/Destarnomination
{{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. Template:Wy/si/Starpotential
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.
Sibu, Sarawak සමඟ පටලවා නොගන්න.
{{disamb}} Indicates that a page is a disambiguation page. This notice should be added to the bottom of all disambiguation pages. Template:Wy/si/Disamb
{{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. Template:Wy/si/Otheruses

Redirects

[edit | edit source]
Wiki Markup Purpose Template Display
{{soft redirect|page}} Creates a soft redirect to a page on a different wiki. Template:Wy/si/Soft redirect

Further information

[edit | edit source]
Wiki Markup Purpose Template Display
{{see also}} Used at top of page sections, to point the reader to related information. Template:Wy/si/See also
{{moreinfo}} Used at top of page sections, to point the reader to another page for particular information.. Template:Wy/si/Moreinfo
{{main}} Used at top of page sections, to point the reader to the main article dealing with a certain topic. Template:Wy/si/Main

Article notices

[edit | edit source]

These notices are used to indicate that an article needs attention due to some problem:

Wiki Markup Purpose Template Display
{{Wy/si/Wy/si/ඉවත් කරන්න}} 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. Template:Wy/si/Vfd
{{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. Template:Wy/si/Copyvio
{{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. Template:Wy/si/Merge
{{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. Template:Wy/si/Merge from
{{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.
Template:Wy/si/Style
{{advert}} Indicates that a page contains extensive touting and hyperbole. This notice should be placed at the top of an article. Template:Wy/si/Advert
{{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. Template:Wy/si/Movetodistrict
{{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. Template:Wy/si/Movetocity
{{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. Template:Wy/si/Districts discussion
{{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. Template:Wy/si/Regions discussion
{{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. Template:Wy/si/Translate
{{transcription|standard}} Indicates that content in a phrasebook does not match Wikivoyage's romanization standards. Template:Wy/si/Transcription

Warning notices

[edit | edit source]

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. Template:Wy/si/Disclaimerbox
{{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.

Template:Wy/si/Cautionbox
{{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. Template:Wy/si/Warningbox
{{VisaRestriction|text of information}} Information about visa restrictions. Template:Wy/si/VisaRestriction

Template notices

[edit | edit source]
Wiki Markup Purpose Template Display
<noinclude>{{documentation}}</noinclude> Inserts the documentation on a template page. Template:Wy/si/Documentation
<noinclude>{{Wy/si/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. Template:Wy/si/Cotm
{{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. Template:Wy/si/Pcotw
{{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. Template:Wy/si/Pcotm
{{current collaboration}} Used by other templates to create a link to the current collaboration of the month. Template:Wy/si/Current collaboration
{{cotmpromote}} Used by the Project page to promote the collaboration of the month. Template:Wy/si/Cotmpromote

Large events

[edit | edit source]

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.

Template:Wy/si/Sochi2014


Content insertion

[edit | edit source]

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. Template:Wy/si/Infobox
{{eatpricerange|budget|midrange|splurge}} Used to establish the local baseline for classifying restaurant listings. Template:Wy/si/Eatpricerange
{{sleeppricerange|budget|midrange|splurge}} Used to establish the local baseline for classifying accommodation listings. Template:Wy/si/Sleeppricerange
{{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.
Template:Wy/si/Climate
{{IATA|XXX}} Used to display IATA airport codes. Template:Wy/si/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. Template:Wy/si/Routebox

{{pagebanner|image}}

Used to display a banner at the top of each article
Paris

{{Quickbar
| location=xx-location.png
| capital=Capital
| currency=Local currency (ABC)
| population=4,567,890 (July 2005 est.)
| electricity=xxxV/yyHz (Z plug)
| callingcode=+CC
| timezone=UTC +N
| emergencies=xxx
| driving side=left
}}

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. Template:Wy/si/Quickbar
{{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.

Template:Wy/si/Regionlist

{{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:Wy/si/PrintDistricts
{{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. Template:Wy/si/SeeDistricts
{{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. Template:Wy/si/Attribution
{{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. Template:Wy/si/Joke
{{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. Template:Wy/si/CompletedEvent
{{LunarNewYeardates}} Used to list the dates and names of the Lunar years based on the Chinese calendar Template:Wy/si/LunarNewYeardates
{{ramadandates}} Used to list the dates of Ramadan Template:Wy/si/Ramadandates

{{lang|ja|須賀川}}

Used to display some text in another language (add the correct markup around it) Template:Wy/si/Lang

{{flag|countryname}}

Used to include the flag of a given country Template:Wy/si/Flag

{{schengen}}

Used to include the boilerplate text needed in the Get in section of every Schengen member (long text, see Schengen)

{{euro}}

Used to include the boilerplate text needed in the Buy section of every country using the euro Template:Wy/si/Euro

Maps, listings and geocoding

[edit | edit source]

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/
| email= | address=Pier 15, 698 The Embarcadero
| lat=37.8013 | long=-122.3988 | directions=at Green St
| phone=+1 415 528-4360 | tollfree= | fax=
| hours=Tu-Su 10AM-5PM; open W until 10PM, closed M
| price=Adults: $25, Students/seniors/youth: $19,
Children age 5 and under: Free
| content=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.
}}

Used to display a See listing in hCard microformat. Template:Wy/si/See

{{do | …}}
{{buy | …}}
{{eat | …}}
{{sleep | …}}
{{drink | …}}
{{go | …}}]]
{{listing | …}}

Used to display a Do/Buy/Eat/Drink/Sleep listing in hCard microformat, similar to {{see | …}}. The base template is {{Wy/si/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 {{Wy/si/listing}} but provides just a name and co-ordinates for inclusion inline with text. Template:Wy/si/Marker
{{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. Template:Wy/si/Mapframe
{{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. Template:Wy/si/PoiMap2detail
{{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. Full screen dynamic map

{{Food-icon}}
{{Lodging-icon}}
{{Toilet-icon}}
{{EVCharger-icon}}
{{Store-icon}}
{{Handicap-icon}}

Used to display icons indicating the services available at listings in hCard microformat. Template:Wy/si/Food-icon Template:Wy/si/Fuel-icon Template:Wy/si/Lodging-icon Template:Wy/si/Toilet-icon Template:Wy/si/EVCharger-icon Template:Wy/si/Store-icon Template:Wy/si/Handicap-icon

Talk pages

[edit | edit source]
Wiki Markup Purpose Template Display
{{talk page}} Talk page of a Wikivoyager Template:Wy/si/Talk page
{{swept}} Indicates if a discussion has been swept in from the Traveller's Pub Template:Wy/si/Swept
{{subst:unsigned|username}} Annotates unsigned posts to make discussions easier to follow. This template must be substituted. —The preceding comment was added by DenisYurkin (talkcontribs)
{{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. Template:Wy/si/Talk archive
{{airport expedition}} Indicates an article is part of the Airport Expedition Template:Wy/si/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. Template:Wy/si/Wikipedia

User pages

[edit | edit source]
Wiki Markup Purpose Template Display
{{User page}} Identify a page as belonging to the Userspace of a Wikivoyager Template:Wy/si/User page
{{Interwiki}} Display a table with links and images to a Wikivoyager's user page on the other Wikivoyage sister projects Template:Wy/si/Interwiki
[edit | edit source]

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 Template:Wy/si/Cc-by-sa-1.0
{{cc-by-sa-2.0}} Template:Wy/si/Cc-by-sa-2.0
{{cc-by-sa-2.5}} Template:Wy/si/Cc-by-sa-2.5
{{cc-by-sa-3.0}} the default license for Wikivoyage from 2010 Template:Wy/si/Cc-by-sa-3.0
{{cc-by-sa-all}} licenses the image under all current and future versions of cc-by-sa Template:Wy/si/Cc-by-sa-all
{{dual-gfdl-cc-by-sa-3.0}} for images licensed under both cc-by-sa 3.0 and GFDL Template:Wy/si/Dual-gfdl-cc-by-sa-3.0
{{dual-gfdl-cc-by-sa-any}} for images licensed under any version of cc-by-sa and GFDL Template:Wy/si/Dual-gfdl-cc-by-sa-any
{{cc-zero}} for images licensed under the CC-0 Public Domain dedication Template:Wy/si/Cc-zero
{{PD-author}} use this if the author of the image has released it into the Public Domain Template:Wy/si/PD-author
{{PD-old}} use this if the image is in the public domain because the author died more than 70 years ago Template:Wy/si/PD-old
{{PD-self}} use this if you are the author of the image, and have released it into the Public Domain Template:Wy/si/PD-self
{{PD-USGov}} use this if it is an image created by an employee of the US federal government, during the course of their duties Template:Wy/si/PD-USGov
{{Non-free image|articles=
[[Article]]|license=license}}
For non-free images uploaded locally Template:Wy/si/Non-free image
{{Wikivoyage-screenshot}} For screenshots uploaded locally Template:Wy/si/Wikivoyage-screenshot
{{License review|~~~|~~~~~}} Indicating the license of a file has been verified by an administrator or reviewer

Inserting boilerplate text

[edit | edit source]

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.

Nomination templates

[edit | edit source]

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. Template:Wy/si/FeatureNom
[edit | edit source]

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

[edit | edit source]
{{historical}} Marks a policy page as historical and not in active use. Template:Wy/si/Historical
{{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

[edit | edit source]

Similar to Project:Graffiti wall, you can use Graffiti wall to play with a major edit to existing template before making it live for an existing (and widely used) template.

Other

[edit | edit source]

{{Wy/si/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.

අමතර අවධානයට

[edit | edit source]