Template documentation follows |
---|
Note: the template above may sometimes be partially or fully invisible. |
Visit Template:Navbox/doc to edit this documentation. (How does this work?) |
Meta-template for building navboxes. A navbox is a grouping of links used in multiple related articles to facilitate navigation between those articles. See {{Navbox subgroup}} for sublist within a navbox or scroll down.
See the Wikipedia Navbox template for full function.
Usage
Please remove the parameters that are left blank.
{{Navbox |bodyclass = |name = {{subst:PAGENAME}} |title = |titleclass = |image = |above = |state = |group1 = |list1 = |group2 = |list2 = ... |group20 = |list20 = |below = }}
Example
|
Usage for subgroups
Please remove the parameters that are left blank.
{{Navbox |name = {{FULLPAGENAME}} |image = [[File:unknown-icon.png|100px]] |state = uncollapsed |title = Simple Subgroup Test |above = Above |below = Below |group1 = Group1 |list1 = List1 |group2 = Group2 |list2 = {{Navbox|child |evenodd = swap |group1 = Group1 |list1 = List1 |group2 = Group2 |list2 = List2 |group3 = Group3 |list3 = List3 }} |group3 = Group3 |list3 = List3 }}
Example for subgroups
|
Parameter list
The navbox uses lowercase parameter names, as shown in the box (at right). The mandatory 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):
bodyclass -
applies an HTMLclass
attribute to the entire navbox.name -
the name of the template.title -
text in the title bar, such as: [[Widget stuff]].titleclass -
applies an HTMLclass
attribute to the title bar.state -
controls when a navbox is mw-collapsible or mw-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;
image -
an optional right-side image, coded as the whole image. Typically it is purely decorative, so it should be coded as[[Image:XX.jpg|90px|link=|alt=]]
.imageleft -
an optional left-side image (code the same as the "image" parameter).
above -
text to appear above the group/list section (could be a list of overall wikilinks).
groupn -
the left-side text before list-n (if group-n omitted, list-n starts at left of box).listn -
text listing wikilinks, often separated by middot templates, such as: [[A]] • [[B]]below -
optional text to appear below the group/list section.
Community content is available under CC-BY-SA unless otherwise noted.