FANDOM


Template Documentation (Edit)

Usage

Template:NavBox2, Template:NavBox2/row, Template:NavBox2/head and Template:NavBox2/empty are used in unison to construct navigation boxes.

Template:NavBox2 is the box's base. Any value in show expands the box automatically upon page load. Replace {{{1}}} with any number and combination of Template:NavBox2/row, Template:NavBox2/head and Template:NavBox2/empty. template is the page name of the template without the namespace.

{{NavBox2
|template=
|bgcolor=
|fgcolor=
|name=
|show=
|{{{1}}}
}}

Template:NavBox2/head creates area with a dark background colour inside Template:NavBox2 or Template:NavBox2. Enter the text to be displayed in {{{1}}}.

{{NavBox2/head
|bgcolor=
|fgcolor=
|{{{1}}}
}}

Template:NavBox2/empty creates area with a light background colour inside Template:NavBox2 or Template:NavBox2. Enter the text to be displayed in its single field.

{{NavBox2/empty
|bgcolor=
|fgcolor=
|{{{1}}}
}}

Template:NavBox2/row generates a two-column row. Replace field {{{1}}} with the row's title, which is displayed in the left column. Field {{{2}}} must be some combination of Template:NavBox2/row, Template:NavBox2/head and Template:NavBox2/empty.

{{NavBox2/row
|{{{1}}}
|{{{2}}}
}}

To avoid extraneous newlines, observe the arrangement of the closing braces on the last line in the example below.

When web links, it may be necessary to escape = characters with =.

Optional Fields

The following are some notes on optional fields.

  • template
    • The page name of the template; include namespace. This creates links to the template in the box header.
  • bgcolor
    • Manually sets the background color of the header text.
    • If using hex triplet (ex. #000000) the # must be replaced with #.
  • fgcolor
    • Manually sets the foreground color of the header text.
    • If using hex triplet (ex. #000000) the # must be replaced with #.

Example

{{NavBox2
|template=Template:NavBox2
|name=Test
|
{{NavBox2/empty|Argh!}}
{{NavBox2/head|Polka Dots}}
{{NavBox2/row
|Dressup
|
{{NavBox2/head|Polka Dots 2}}
{{NavBox2/empty|Argh 2!}}
{{NavBox2/row
|Dressup 2
|
{{NavBox2/head|Polka Dots 3}}
{{NavBox2/empty|Argh 3!}}
{{NavBox2/row
|Dressup 3
|
{{NavBox2/head|Polka Dots 4}}
{{NavBox2/empty|Argh 4!}}
}}
}}
}}
{{NavBox2/row
|Mannequin
|
{{NavBox2/row
|Sleeping<br/>security<br/>guard
|
{{NavBox2/empty|Officer}}
}}
{{NavBox2/row
|Mouse
|
{{NavBox2/empty|Hole}}
}}
}}
{{NavBox2/row
|Hamsterstan<br/>Gerbilstan
|
{{NavBox2/empty|
Note that nested lists are automatically formatted.

*1
**1a
**1b
**1c
*2
**2a
**2b
**2c
}}
}}
}}
Community content is available under CC-BY-SA unless otherwise noted.