FANDOM


 Template documentation [view] [edit] [purge]

Navbox is used to create a navigational box which contains links to a group of pages.

Usage

To modify the navbox, you can edit several parameters. Entering the title and at least one group of items is mandatory; the rest of the parameters are optional (however, most navboxes should include a name parameter).

{{Navbox
|state      = <!-- collapsed (default)|uncollapsed|plain; see below for further details -->
|name       = <!-- name of the template -->
|style      = <!-- style for the whole table (e.g., text margins) -->
|title      = <!-- text that appears in the navbox header -->
|gtitleN    = <!-- title of Nth group of items (can specify up to 20 groups) -->
|groupN     = <!-- list of page items for the Nth group -->
|styleN     = <!-- style for groupN (e.g., color, text-align) -->
|footer     = <!-- text that appears in the navbox footer -->
|fstyle     = <!-- style for the footer (e.g., color, text-align) -->
}}

Note: It is recommended you separate a list of items with bullet points using the template {{*}}.

States

  • collapsed (default): The template is collapsible and initially collapsed.
  • uncollapsed: The template is collapsible, but not initially collapsed.
  • plain: The template is not collapsible.

Sub-groups

  • You may also include sub-groups within a particular group of items.
  • For example, if you wanted to include sub-groups within the first group of items, you would have to introduce a new parameter called gtype1, and set it to subgroup.
  • Then, under the parameter group1, add a nested navbox as so:
{{Navbox 
|subgroup=yes 
|gtitle1= 
|group1=
}}

filling in the required parameters as necessary. See below for examples.

Examples

Navbox with a single, centered list

{{Navbox
|name       = Old School RuneScape players
|title      = Navbox with a single, centered list
|group1     = [[Calisme]] {{*}} [[iDrizzay]] {{*}} [[Pur]] {{*}} [[Sc0ooby Doo]] {{*}} [[Stupidman990]]
|style1     = text-align:center
}}

produces:

Navbox with a footer

{{Navbox
|name       = Old School RuneScape players
|title      = Navbox with a footer
|group1     = [[Calisme]] {{*}} [[iDrizzay]] {{*}} [[Pur]] {{*}} [[Sc0ooby Doo]] {{*}} [[Stupidman990]]
|style1     = text-align:center
|footer     = Footer text
}}

displays:

Navbox with multiple groups of items

{{Navbox
|name       = Old School RuneScape players
|title      = Navbox with multiple groups of items
|gtitle1    = Title1
|group1     = List1
|gtitle2    = Title2
|group2     = List2
|gtitle3    = Title3
|group3     = List3
}}

creates:

Navbox initially uncollapsed

{{Navbox
|state      = uncollapsed
|name       = Old School RuneScape players
|title      = Navbox initially uncollapsed
|group1     = List1
}}

produces:

Navbox that is not collapsible

{{Navbox
|state      = plain
|name       = Old School RuneScape players
|title      = Navbox that is not collapsible
|group1     = List1
}}

displays:

Navbox with a subgroup

{{Navbox
|name       = Old School RuneScape players
|title      = Navbox with a subgroup
|gtitle1    = Title1
|gtype1     = subgroup
|group1     = 
 {{Navbox 
 |subgroup=yes 
 |gtitle1=Sub-title1
 |group1=Sub-list1
 |gtitle2=Sub-title2
 |group2=Sub-list2
 }}
|gtitle2    = Title2
|group2     = List2
|gtitle3    = Title3
|group3     = List3
}}

creates:

RuneScape Wiki logo This page uses content from the RuneScape Wiki. The original page was at Template:Navbox. The list of authors can be seen in the page history. As with the RuneScape Players Wiki, the text of the RuneScape Wiki is available under the Creative Commons Attribution-Share Alike License 3.0.
Community content is available under CC-BY-SA unless otherwise noted.