Template:Navigation bar

From OpenStreetMap Wiki
Jump to navigation Jump to search
[Edit] [Purge] Template-info.svg Template documentation

This template will produce a grey box which fills the full width of the page, with a little show/hide link appearing in the top right.

Such a box is typically used as a navigation bar, with lots of links to let people navigate between a set of similar pages. To do this, the template would normally be used within another template, which is then placed on each of the pages. For example Template:Staedte im Ruhrgebiet (So far on this wiki it has mostly been used for German city pages.)

Usage

  • title (mandatory) = The title to appear at the top of the box. Visible even when you "hide" the box.
  • content (mandatory) = Everything in the main portion of the box, which folds away when you "hide" the box.
  • image (optional) = Image to display in the bar (e.g. [[File:Sample.svg|40x40px|link=Full page name|Tooltip text.]]).

Example

  • {{Navigation bar|title = Title of bar |content = Here is the content, which would typically be where a set of navigation links appear. }}
  • {{Navigation bar|title = Title of bar |image = [[File:Sample.svg|x40px|link=Template:Navigation bar|Sample.]] |content = Here is the content, which would typically be where a set of navigation links appear. }}

See also