FANDOM


Title?
Template documentation (for the template shown above, sometimes hidden or invisible)

Meta-template for building navboxes. A navbox is a grouping of links used in multiple related articles to facilitate navigation between those articles.

Up to 8 blocks with up to 8 content & group fields each are supported, as well as displaying the rows in a column-based or horizontal layout and making groups collapsible. Each of these options can be specified for individual blocks or the whole navbox. In addition, navboxes built with this meta-template can be nested/displayed within each other. The template also supports displaying images to the left and/or right of individual blocks or the whole navbox.

Standard navboxes (i.e. those inserted at the bottom of an article) are collapsible and will be auto-collapsed by default (this can be changed by altering the autocollapse limit in MediaWiki:Common.js). Side navboxes are not collapsible by default and do not count towards this limit.

Usage

{{Navbox
|1               ={{{1|}}}
|editlink        =Navbox example
|title           =Examples in ''Oddworld''
|contentA1       =Links
}}

Examples

Simple box

{{Navbox
|1               ={{{1|}}}
|editlink        =Navbox example
|title           =Examples in ''Oddworld''
|contentA1       =Content A
}}

results in:

Examples in Oddworld

Standard box with groups, blocks and headers

{{Navbox
|1               ={{{1|}}}
|editlink        =Navbox example
|title           =Examples in ''Oddworld''
|headerA         =Header A
|blockA          =Block A
|groupA1         =Group A1
|contentA1       =Content A1
|contentA2       =Content A2
|blockB          =Block B
|groupB1         =Group B2
|contentB1       =Content B1
}}

results in:

Examples in Oddworld

Standard box with groups, blocks and image

{{Navbox
|1               ={{{1|}}}
|editlink        =Navbox example
|title           =Examples in ''Oddworld''
|image           =Wiki.png
|blockA          =Block A
|groupA1         =Group A1
|contentA1       =Content A1
|contentA2       =Content A2
|blockB          =Block B
|groupB1         =Group B1
|contentB1       =Content B1
}}

results in:

Examples in Oddworld
Wiki

Standard box with groups, blocks and block images

{{Navbox
|1               ={{{1|}}}
|editlink        =Navbox example
|title           =Examples in ''Oddworld''
|imageA          =Wiki.png
|blockA          =Block A
|groupA1         =Group A1
|contentA1       =Content A1
|contentA2       =Content A2
|groupA3         =Group A3
|contentA3       =Content A3
|imageB          =Wiki.png
|blockB          =Block B
|groupB1         =Group B1
|contentB1       =Content B1
|groupB2         =Group B2
|contentB2       =Content B2
|groupB3         =Group B3
|contentB3       =Content B3
}}

results in:

Examples in Oddworld

Collapsible groups

{{Navbox
|1               ={{{1|}}}
|editlink        =Navbox example
|title           =Examples in ''Oddworld''
|options         =collapsiblegroups
|headerA         =Header A
|imageA          =Wiki.png
|blockA          =Block A
|groupA1         =Group A1
|contentA1       =Content A1
|contentA2       =Content A2
|groupA3         =Group A3
|contentA3       =Content A3
|imageB          =Wiki.png
|headerB         =Header B
|blockB          =Block B
|groupB1         =Group B1
|contentB1       =Content B1
|groupB2         =Group B2
|contentB2       =Content B2
|groupB3         =Group B3
|contentB3       =Content B3
}}

results in:

Examples in Oddworld

Collapsible and non-collapsible mixed

{{Navbox
|1               ={{{1|}}}
|editlink        =Navbox example
|title           =Examples in ''Oddworld''
|optionsB        =collapsible
|blockA          =Block A
|groupA1         =Group A1
|contentA1       =Content A1
|contentA2       =Content A2
|groupA3         =Group A3
|contentA3       =Content A3
|headerB         =Header B
|blockB          =Block B
|groupB1         =Group B1
|contentB1       =Content B1
|groupB2         =Group B2
|contentB2       =Content B2
|groupB3         =Group B3
|contentB3       =Content B3
}}

results in:

Examples in Oddworld

Columns

{{Navbox
|1               ={{{1|}}}
|editlink        =Navbox example
|title           =Examples
|options         =columns
|contentA1       =Content A1
|contentA2       =Content A2
|contentA3       =Content A3
}}

results in:

Examples

Columns and standard rows mixed

{{Navbox
|1               ={{{1|}}}
|editlink        =Navbox example
|title           =Examples
|optionsA        =columns
|headerA         =Header A
|contentA1       =Content A1
|contentA2       =Content A2
|headerB         =Header B
|groupB1         =Group B1
|contentB1       =Content B1
|groupB2         =Group B2
|contentB2       =Content B2
}}

results in:

Examples

Side navbox

Examples
{{Navbox
|1               ={{{1|}}}
|editlink        =Navbox example
|title           =Examples
|position        =right
|options         =columns
|headerA         =Header A
|contentA1       =Content A1
|contentA2       =Content A2
|contentA3       =Content A3
}}

Technical

  • This template is fairly complex. Editing it requires a good understanding of parser functions and wiki syntax.
  • Auxiliary templates:
    • Template:Navbox/aux: Merges various input parameters, calculates row/column counts for a given block and passes results to {{Navbox/aux2}} or {{Navbox/aux3}} (depending on the specified layout type).
    • Template:Navbox/aux2: Returns a whole block of standard rows according to options and specified cells.
    • Template:Navbox/aux3: Returns a whole block of columns according to options and specified cells.
Documentation transcluded from Template:Navbox/doc.
Community content is available under CC-BY-SA unless otherwise noted.