Zum Inhalt springen

Vorlage:Navbar-header

Aus Wikivoyage
Dokumentation für die Vorlage {{Navbar-header}}[Ansicht] [Bearbeiten] [Versionsgeschichte] [Aktualisieren]

Usage

Simply place the following code in the header area of a given template to add a centred heading with right justified view/talk/edit link functionality.

{{Navbar-header |Heading |Name of template }}

Parameters

Mandatory

1
(the first unnamed parameter) Text that appears centered in the titlebar (the top bar).
2
(the second unnamed parameter) The name of the template, which is needed for the links to work properly on all of the pages where the template is used on. You can enter {{subst:PAGENAME}} for this value as a shortcut.

Optional

plain
switched from mode to , if plain=1 is set.
fontcolor
Specifies the title text color

See also

{{navbar}}
This template transcludes navbar, the source is more customizable.

Make use of meta-template to reduce code bloat and simplify editing:

Navigation templates comparison
CollapsibleHeader color ImageGroupsStyle (body)
parameter/s
Examples
{{Navbox}} collapsiblenavbox Left/right of bodyYesYes
{{Navbox with collapsible groups}} collapsiblenavbox Left/right of body and/or in each listYesYes
{{Navbox with columns}} collapsiblenavbox Left/right of columnsNoYes
{{Navbox years}} collapsiblenavbox NoNoNo
Collapsible attributes
TypeCSS classesJavascriptCollapses whenCustom
initial state
Nesting
Collapsible tables collapsible Defined in Common.js 2 or more autocollapse on pageYesYes
Hinweise