FANDOM


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?)

Description

This template should be used in navbox templates, which should be included at the bottom of each page that is linked in the template.

Usage

Parameter(s) Usage Default value(s)
name Should be identical to the template's name without namespace. {{{name}}}
title Sets the title used at the top of the navbox. {{{title}}}
state Allows you to change the collapsing state of the table. More info. Collapsed is removed while on pages in the Template namespace, to make editing easier. collapsible
selected Uncollapses the group with a matching abbrn. None
titlestyle
titleclass
Allows custom styling for the title area None
bodystyle
bodyclass
Allows custom styling for the body area None
groupstyle
groupclass
Allows custom styling for the group area None
liststyle
listclass
Allows custom styling for the list area None
withcollapsiblegroups Converts the Groups to collapsible headers None
groupn Adds the heading for the group number specified group1 = {{{group1}}}
group2+ = None
abbrn Used with selected to un-collapse a particular group None
staten Allows you to change the collapsing state of the groupn.
selected overrides this if specified.
collapsed
listn Adds text for the list number specified list1 = {{{list1}}}
list2+ = None

Sample output

{{Navbox
| name = Navbox
| title = Navbox
| bodyclass = hlist

| group1 = Group 1
| list1 = List 1

| group2 = Group 2
| list2 = {{Navbox|child
 | group1 = Group 2.1
 | list1 = List 2.1

 | group2 = Group 2.2
 | list2 = List 2.2
 
 | group3 = Group 2.3
 | list3 = List 2.3
 }}

| group3 = Group 3
| list3 =
* List 3
* List
* List
}}

Sample output (with collapsible groups)

{{Navbox
| name      = Navbox
| title     = Navbox (with collapsible groups)
| selected  = g2
| bodyclass = hlist
| withcollapsiblegroups = 1

| group1 = Group 1
| abbr1  = g1
| list1  = List 1

| group2 = Group 2
| abbr2  = g2
| list2  = {{Navbox|child
  | group1 = Group 2.1
  | list1  = List 2.1

  | group2 = Group 2.2
  | list2  = List 2.2

  | group3 = Group 2.3
  | list3  = List 2.3
  }}

| group3 = Group 3
| abbr3  = g3
| list3  =
* List 3
* List
* List
}}
Community content is available under CC-BY-SA unless otherwise noted.