Template:Navbox
Usage
Please remove the parameters that are left blank.
{{Navbox | title = | listclass = hlist | state = collapsed | above = | image = | group1 = | list1 = | group2 = | list2 = | group3 = | list3 = <!-- ... --> | below = }}
Parameter list
The navbox uses lowercase parameter names, as shown in the box (above). The required name and title will create a one-line box if other parameters are omitted.
Notice "group1" (etc.) is optional, as are sections named "above/below".
The basic and most common parameters are as follows (see below for the full list):
name
– the name of the template.title
– text in the title bar, such as: [[Widget stuff]].listclass
– a CSS class for the list cells, usuallyhlist
for horizontal lists. Alternatively, use bodyclass for the whole box.state
– controls when a navbox is expanded or collapsed.titlestyle
– a CSS style for the title-bar, such as:background: gray;
groupstyle
– a CSS style for the group-cells, such as:background: #eee;
above
– text to appear above the group/list section (could be a list of overall wikilinks).image
– an optional right-side image, coded as the whole image, such as:[[File:XX.jpg|80px|link=|alt=]]
imageleft
– an optional left-side image (code the same as the "image" parameter).groupn
– the left-side text before list-n (if group-n omitted, list-n extends to the left edge of the box, and defaults totext-align:center
styling).below
– optional text to appear below the group/list section.
TemplateData
TemplateData for Navbox
Creates a navigational box for links to other pages. Does not display in mobile.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | The name of the template. Needed for "View • Talk • Edit" links to work properly.
| String | suggested |
Title | title | Text in the title bar; centered in the top row of the table. Usually the template's topic.
| Unknown | suggested |
Group 1 | group1 | If specified, text appears in a header cell displayed to the left of list 1. If omitted, list 1 uses the full width of the table. | Unknown | suggested |
List 1 | list1 | Body of the template; usually a list of links. Format is inline. At least one list parameter is required; each additional list is displayed in a separate row of the table. Each listn may be preceded by a corresponding groupn parameter. Entries should be separated using a newline and an asterisk. If two asterisks are used, it provides nesting within the previous entry with brackets. | Unknown | required |
List class | listclass | CSS class for the list cells, usually hlist for horizontal lists. Alternatively, use bodyclass for the whole box.
| String | optional |
State | state | Controls when a navbox is expanded or collapsed
| Unknown | suggested |
Above | above | Full-width cell displayed between the titlebar and first group/list, i.e. above the template's body (groups, lists and image) | String | suggested |
Below | below | Full-width cell displayed below the template's body. | Unknown | suggested |
Image | image | Image to be displayed in a cell below the title and to the right of the body
| File | suggested |
group2 | group2 | no description | Unknown | suggested |
list2 | list2 | no description | Unknown | suggested |
group3 | group3 | no description | Unknown | suggested |
list3 | list3 | no description | Unknown | suggested |
group4 | group4 | no description | Unknown | optional |
list4 | list4 | no description | Unknown | optional |
Image left | imageleft | Image to be displayed in a cell below the title and to the left of the body. For the image to display properly, list1 parameter must be specified and no groups can be specified.
| File | optional |
Navbar status | navbar | no description
| String | optional |
Border status | border | no description
| String | optional |
bodystyle | bodystyle | no description | Unknown | optional |
basestyle | basestyle | no description | Unknown | optional |
titlestyle | titlestyle | no description | Unknown | optional |
groupstyle | groupstyle | no description | Unknown | optional |
liststyle | liststyle | no description | Unknown | optional |
group1style | group1style | no description | Unknown | optional |
list1style | list1style | no description | Unknown | optional |
groupwidth | groupwidth | no description | Unknown | optional |
listpadding | listpadding | no description | Unknown | optional |
oddstyle | oddstyle | no description | Unknown | optional |
evenstyle | evenstyle | no description | Unknown | optional |
evenodd | evenodd | no description
| Unknown | optional |
abovestyle | abovestyle | no description | Unknown | optional |
belowstyle | belowstyle | no description | Unknown | optional |
imagestyle | imagestyle | no description | Unknown | optional |
imageleftstyle | imageleftstyle | no description | Unknown | optional |