Template:Wy/pa/Pagebanner
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
This template places a banner and horizontal Table of Contents at the top of travel guide pages. This template is a wrapper around the mw:Extension:WikidataPageBanner extension and should be used instead of invoking the extension directly. For more information about page banner usage on Wikivoyage, see Wikivoyage:Banner Expedition.
Basic usage: {{Wy/pa/pagebanner | image name }}. Leave out the File:
prefix.
- To use the default banner, which inserts the page name and TOC on top of generic image, simply type {{Wy/pa/pagebanner}}
- To get the default pagebanner for the region or type of article, use the appropriate keyword instead of the image name.
- For destination articles, one of: "Europe", "North America", "Middle East"/"ME", "North Africa", "Asia", "South America"/"Africa"/"SA", "Caribbean", "Australia", "Oceania", "New Zealand"/"NZ"
- For travel topics: "Travel topic"/"Topic"/"TT" or a specific one
- "Flying"
- "Dive guide"/"Diving"/"Dive"
- "Itinerary"
- "Phrasebook"
- For disambiguation pages: "Disambiguation page"/"disambg"
- image name: Enter the name of the image to use in the banner (excluding "File:"). Images should have a width-to-height ratio of 7:1, preferably 2100 x 300 pixels, and be at least 1800 pixels wide.
Customizing the banner: {{Wy/pa/pagebanner | image name | caption text | page name | disambiguation | star | DotM | OtBP | Ftt | TOC box }}
Parameters
edit- Template:Wy/pa/para: Recommended. Enter caption=description to display a description of the picture when a mouse pointer is placed over the banner image.
- Template:Wy/pa/para: Optional. Enter pgname=name to display in the banner. Only enter a name if you want it to be different than the formal name of the page.
- Template:Wy/pa/para: Optional. Displays a disambiguation icon in the banner (a question mark) and the disambiguation hatnote after the banner. Enter disambig=yes if the name of the disambiguation page is page name (disambiguation). Enter disambig=disambiguation page name if the disambiguation page name is different from the current page name.
- Template:Wy/pa/para: Optional. Enter star=yes if the article is a Star article. This displays the Star article symbol in the top right corner.
- Template:Wy/pa/para: Optional. Enter dotm=yes if the article is a previous Destination of the month. This displays the DotM symbol in the top right corner and adds a category.
- Template:Wy/pa/para: Optional. Enter otbp=yes if the article has been featured on Off the beaten path. This displays the OtBP symbol in the top right corner and adds a category.
- Template:Wy/pa/para: Optional. Enter ftt=yes if the article has been a Featured travel topic. This displays the Ftt symbol in the top right corner and adds a category.
- Template:Wy/pa/para: Optional. Enter box=black for the TOC to appear in a translucent black box with white type. Enter box=white for the TOC to appear in a translucent white box with black type. Enter nothing for the default solid grey box with black type.
- Template:Wy/pa/para: Optional. Enter notoc=true to stop the TOC being included in the banner and for the entire TOC to be shown within the article instead. Mainly to be used on articles with lots of sections.
- Template:Wy/pa/para: Optional. Enter index=yes for banners on title/index pages or pages in other main namespace article categories which do not always get banners.
- Template:Wy/pa/para: Optional. Enter fop=yes for freedom-of-panorama banners which are not allowed on Commons, to remove them from applicable maintenance categories
- Template:Wy/pa/para: Optional. Use this parameter to define the focal area of the image. This is used to crop the banner appropriately on small screens. The value of the parameter should consist of an x and a y coordinate separated by a comma. Each coordinate represents the distance from the center of the image as a value from -1 to 1. For example, origin=1,1 is the top right corner and origin=-1,1 is the top left corner. There is a graphic here that shows this information visually.
UNESCO tags
edit- Template:Wy/pa/para: Optional. Enter unesco_whs=yes if the article is or describes a site on the UNESCO World Heritage List. Only the lowest level articles in the hierarchy should be tagged (i.e. Sydney/City Centre for the Opera House, not Sydney). This displays the World Heritage symbol in the top right corner and adds a category.
- Template:Wy/pa/para: Optional. Enter unesco_ich=yes if the article is or describes a UNESCO Intangible Cultural Heritage. Only the lowest level articles in the hierarchy should be tagged. This displays the Intangible Cultural Heritage symbol in the top right corner and adds a category.
- Template:Wy/pa/para: Optional. Enter unesco_gg=yes if the article is or describes a geopark in the UNESCO Global Geoparks Network. Only the lowest level articles in the hierarchy should be tagged. This displays the Global Geoparks Network symbol in the top right corner and adds a category.
- Template:Wy/pa/para: Optional. Enter unesco_cc=yes if the article is or describes one of the UNESCO Creative Cities. This displays the Creative Cities symbol in the top right corner and adds a category.
- Template:Wy/pa/para: Optional. Enter unesco_br=yes if the article is or describes a biosphere reserve in the UNESCO World Network of Biosphere Reserves. This displays the Man and the Biosphere Programme symbol in the top right corner and adds a category.
Deprecated
edit- Template:Wy/pa/para: Optional. Use the specific UNESCO parameter instead.
TemplateData
editThis template places a banner and horizontal Table of Contents at the top of travel guide pages, with many other information.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image link | 1 | Banner illustrating the article
| File | suggested |
Caption text | caption | Will display a description of the picture when a mouse pointer is placed over the banner image. | String | suggested |
Page name | pgname | Enter a name to display in the banner, only if it is different than the formal name of the page. | String | optional |
Disambiguation | disambig | Enter "yes" if the name of the disambiguation page is page name (disambiguation). Enter disambiguation's page name if the disambiguation page name is different from the current page name. It displays a disambiguation icon in the banner (a question mark) and the disambiguation hatnote after the banner. | String | optional |
Star article | star | Enter "yes" if the article is a Star article. This displays the Star article symbol in the top right corner. | Boolean | optional |
Destination of the month | otbp | Enter "yes" if the article is has been a Off the beaten path. This displays the OtBP symbol in the top right corner. | Boolean | optional |
Destination of the month | dotm | Enter "yes" if the article is has been a Destination of the month. This displays the DOtM symbol in the top right corner. | Boolean | optional |
Featured travel topic | ftt | Enter "yes" if the article is has been a Featured travel topic. This displays the FFT symbol in the top right corner. | Boolean | optional |
UNESCO element (deprecated) | unesco | Use the specific UNESCO parameter instead. | Boolean | optional |
UNESCO World Heritage Site | unesco_whs | Enter "yes" if the article is or describes a site on the UNESCO World Heritage List. Only the lowest level articles in the hierarchy should be tagged (i.e. Sydney/City Centre for the Opera House, not Sydney). This displays the World Heritage symbol in the top right corner and adds a category. | Boolean | optional |
UNESCO Intangible Cultural Heritage | unesco_ich | Enter "yes" if the article is or describes a UNESCO Intangible Cultural Heritage. Only the lowest level guides in the hierarchy should be tagged. This displays the Intangible Cultural Heritage symbol in the top right corner and adds a category. | Boolean | optional |
UNESCO Global Geopark | unesco_gg | Enter "yes" if the article is or describes a geopark in the UNESCO Global Geoparks Network. Only the lowest level articles in the hierarchy should be tagged. This displays the Global Geoparks Network symbol in the top right corner and adds a category. | Boolean | optional |
UNESCO Creative Cities | unesco_cc | Enter "yes" if the article is or describes one of the UNESCO Creative Cities. This displays the Creative Cities symbol in the top right corner and adds a category. | Boolean | optional |
UNESCO Biosphere Reserve | unesco_br | Enter "yes" if the article is or describes a biosphere reserve in the UNESCO World Network of Biosphere Reserves. This displays the Man and the Biosphere Programme symbol in the top right corner and adds a category. | Boolean | optional |
TOC box color | TOC box | Enter box=black for the TOC to appear in a translucent black box with white type. Enter box=white for the TOC to appear in a translucent white box with black type. Enter nothing for the default solid grey box with black type. | Unknown | optional |
No table of contents | notoc | Enter "true" to stop the TOC being included in the banner and for the entire TOC to be shown within the article instead. Mainly to be used on articles with lots of sections. | Unknown | optional |
Index pages | index | Enter "yes" for banners on title/index pages or pages in other main namespace article categories which do not always get banners. | Unknown | optional |
Freedom of panorama | fop | Enter "yes" for freedom-of-panorama banners which are not allowed on Commons, to remove them from applicable maintenance categories | Unknown | optional |
Focal area of the image | origin | Use this parameter to define the focal area of the image. This is used to crop the banner appropriately on small screens. The value of the parameter should consist of an x and a y coordinate separated by a comma. Each coordinate represents the distance from the center of the image as a value from -1 to 1. For example, origin=1,1 is the top left corner and origin=-1,1 is the bottom left corner. There is a graphic here that shows this information visually. | Unknown | optional |