Template:Pagebanner

From Savez
Revision as of 20:15, 26 July 2023 by BalkanMapper (talk | contribs)

This template places a banner and horizontal Table of Contents at the top of travel guide pages, with many other information.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Image link1

Banner illustrating the article

Example
File:Vue panoramique Parlement de Bretagne.jpg
Filesuggested
Caption textcaption

Will display a description of the picture when a mouse pointer is placed over the banner image.

Stringsuggested
Page namepgname

Enter a name to display in the banner, only if it is different than the formal name of the page.

Stringoptional
Disambiguationdisambig

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.

Stringoptional
Star articlestar

Enter "yes" if the guide is a Star article. This displays the Star article symbol in the top right corner.

Booleanoptional
Destination of the monthotbp

Enter "yes" if the guide is has been a Off the beaten path. This displays the OtBP symbol in the top right corner.

Booleanoptional
Destination of the monthdotm

Enter "yes" if the guide is has been a Destination of the month. This displays the DOtM symbol in the top right corner.

Booleanoptional
Featured travel topicftt

Enter "yes" if the guide is has been a Featured travel topic. This displays the FFT symbol in the top right corner.

Booleanoptional
UNESCO World Heritage list elementunesco

Enter "yes" if the guide is or describes a site on the UNESCO World Heritage list. Only the lowest level guides in the hierarchy should be tagged (ie, Sydney/City Centre for the Opera House, not Sydney). This displays the World Heritage symbol in the top right corner and adds a category.

Booleanoptional
TOC box colorTOC 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.

Unknownoptional
No table of contentsnotoc

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.

Unknownoptional
Index pagesindex

Enter "yes" for banners on title/index pages or pages in other main namespace article categories which do not always get banners.

Unknownoptional
Freedom of panoramafop

Enter "yes" for freedom-of-panorama banners which are not allowed on Commons, to remove them from applicable maintenance categories

Unknownoptional
Focal area of the imageorigin

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.

Unknownoptional