Template:Pagebannertest

From Wikitravel
Jump to: navigation, search
Pagebannertest

Pagebanner default.jpg


This template places a banner and horizontal Table of Contents at the top of travel guide pages.

Basic Usage: {{pagebanner | image name }}

  • To use the default banner, which inserts the page name and TOC on top of generic image, simply type {{pagebanner}}
  • 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 at least 1800 pixels wide.

Customizing the Banner: {{pagebanner | image name | caption text | page name | disambiguation | star | DotM | OtBP | Ftt | TOC box }}

The template has the following additional options:

  • caption text: Recommended. Enter caption=description to display when mouse over the banner image a description of the picture.
  • page name: 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.
  • disambiguation: 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 the disambiguation page name is different than the current page name.
  • star: Optional. Enter star=yes if the guide is a Star article. This displays the Star article symbol in the top right corner.
  • DotM: Optional. Enter dotm=yes if the guide has been a previous Destination of the Month. This displays the DotM symbol in the top right corner.
  • OtBP: Optional. Enter otbp=yes if the guide has been featured on Off the Beaten Path. This displays the OtBP symbol in the top right corner.
  • Ftt: Optional. Enter ftt=yes if the guide has been a Featured travel topic. This displays the Ftt symbol in the top right corner.
  • TOC box: 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.
  • notoc: Optional. Enter notoc=true to stop the TOC being included in the banner and all it to be shown within the article instead. Mainly to be used on articles with lots of sections.