Template:Navbox
Jump to navigation
Jump to search
Usage
Please remove the parameters that are left blank.
{{Navbox
| name = {{subst:PAGENAME}}
| listclass = hlist
| state = {{{state|}}}
| title =
| above =
| image =
| group1 =
| list1 =
| group2 =
| list2 =
...
| group20 =
| list20 =
| below =
}}
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:
name –the name of the template.title –text in the title bar, such as: [[Widget stuff]].listclass –a CSS class for the list cells, usuallyhlistfor horizontal lists. Alternatively, use bodyclass for the whole box.state –controls when a navbox is expanded or collapsed, such as:autocollapse, uncollapsed, collapsed, plain, offtitlestyle –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. Typically it is purely decorative, so it should be coded 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 starts at left of box).listn –text listing wikilinks using a wikilist format.below –optional text to appear below the group/list section.
| The above documentation is transcluded from Template:Navbox/doc. (edit | history) Please add categories to the /doc subpage. Subpages of this template. |