Template:Dynamic navigation box

You don't need to be Editor-In-Chief to add or edit content to WikiDoc. You can begin to add to or edit text on this WikiDoc page by clicking on the edit button at the top of this page. Next enter or edit the information that you would like to appear here. Once you are done editing, scroll down and click the Save page button at the bottom of the page.

Jump to: navigation, search
Image:Symbol opinion vote.svg
The template {{Dynamic navigation box}} is deprecated. Please use {{Dynamic navigation box}} instead.
This usage is deprecated. Please replace it with {{tdeprecated|Dynamic navigation box|Dynamic navigation box}}.
The template {{Dynamic navigation box}} is deprecated. Please use {{Navbox}} instead.


This template creates a navigational template when supplied with text for the title and body (usually a list of links).

Contents

Usage

Example 1

{{Dynamic navigation box
| title = [[Wikipedia:Navigational templates|Navigational templates]]
| body  = [[Template:Cosmology|Cosmology]]{{·}} [[Template:General relativity|Relativity]]{{·}}
[[Template:Continents of the world|World continents]]
}}

Example 2

{{Dynamic navigation box
| name  = {{subst:PAGENAME}}
| title = [[Wikipedia:Navigational templates|Navigational templates]]
| body  = [[Template:Cosmology|Cosmology]]{{·}} [[Template:General relativity|Relativity]]{{·}}
[[Template:Continents of the world|World continents]]
}}

Parameters

Mandatory

title
Text that appears centered in the titlebar (the top bar). Usually this is the template's topic, i.e. a succinct description of the body contents.
body
Contents of the navigation box. To separate links | ( | ) or • ( • ) or {{·}} ( · ) to separate links. It is not possible to include a pipe ( | ) in the contents as this symbol is used to separate parameters.

Optional

name
The name of the template, which is needed for the "view · talk · edit" 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.
style
Specifies CSS values to apply to the template. For instance: text-align: (right|center|left|justified); width: (em, %, px, auto); float: (left|right|none); clear: (right|left|both|none); margin:...etc. This option should be used sparingly as it can lead to visual inconsistencies.
color
Title background color. Default is #ccf. Use of this parameter is discouraged. Where it is used, care and consensus are needed as multiple navigational templates on one page with different titlebar colors will probably look unpleasant.
fontcolor
Title font color. Also used by the {{tnavbar}} template (v-d-e links).
state
Defaults to autocollapse. If set to collapsed, the navbox will always start out in a collapsed state. If set to blank or anything other than autocollapse or collapsed, the navbox will always start out in an expanded state. A navbox with autocollapse will start out collapsed if there are 2 or more tables on the same page that use collapsible. For the technically minded, see MediaWiki:Common.js.

See also

Navigation template comparison
view  talk  edit
collapsible Header color Image Groups Style (body)
parameter/s
Examples
{{Navbox}} collapsible navbox Left/right of body Yes Yes {{USCongress}}, {{Apollo program}}
{{Navbox with columns}} collapsible navbox Left/right of columns No Yes {{Current U.S. Senators}}, {{UK subdivisions}}
The background color for the header or title is inherited from the class listed below. The templates have titlestyle parameters that can be used to override the default.
Collapsible attributes
Type CSS classes Collapses when Custom
initial state
Nesting Default
header color
Font size
Collapsible tables collapsible, navbox 2 or more autocollapse on page Yes Yes #ccccff 90%
ar:قالب:صندوق ملفوف1

br:Patrom:Taolenn verdeiñ hep skeudenn bs:Šablon:Navigacija bez slike de:Vorlage:Navigationsleiste ohne Bildfr:Modèle:Liste de navigation sans image hr:Predložak:Navigacija bez slike ja:Template:Dynamic navigation box nl:Sjabloon:Navigatiezondersr:Шаблон:Навигација без слике sv:Mall:Navigationsbox

Views
Personal tools
Navigation
Help
Toolbox
In other languages