Follow us on Twitter @LiquipediaSC2 if you'd like to be kept up to date on all things StarCraft II!

TemplateArchive:NavBox

From Liquipedia StarCraft 2 Wiki

Usage[edit]

Template:NavBox, Template:NavBox/row, and Template:NavBox/end are used in unison to construct navigation boxes.

Each box must start with a Template:NavBox. Any value in show expands the box automatically upon page load.

{{NavBox
|bgcolor=
|fgcolor=
|name=
|show=
}}

Each row in the box is added using Template:NavBox/row. The first field is the name of the row put in the first column. The second field is the data placed in the second column. A box may have an unlimited number of rows.

{{NavBox/row
|Text placed here goes into the first column.
|Text placed here goes into the second column.
}}

The box must end with a Template:NavBox/end.

{{NavBox/end}}

A header may be used to separate rows using Template:NavBox/head.

{{NavBox/head|Text}}

Optional Fields[edit]

The following are some notes on optional fields.

  • 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[edit]

{{NavBox
|bgcolor=
|fgcolor=
|name=Test
}}
{{NavBox/row
|Row 1
|Stuff
}}
{{NavBox/row
|Row 2
|More stuff
}}
{{NavBox/head|Break}}
{{NavBox/row
|Row 3
|Even more stuff
}}
{{NavBox/head|Nested rows}}
{{NavBox/row
|Row 4
|rows=3
}}
{{NavBox/row
|Row 4a
|*''rows'' in Row 4 denotes the number of nested rows a row holds.
*Row 4 does ''not'' have data.
*''norow'' is needed for the first nested row in a group. In this case, Row 4a.
|norow=x
}}
{{NavBox/row
|Row 4b
|Row 4b does ''not'' use ''norow''.
}}
{{NavBox/row
|Row 4c
|Row 4c does ''not'' use ''norow''.
}}
{{NavBox/head|End of nested rows}}
{{NavBox/end}}

Template:NavBox Template:NavBox/row Template:NavBox/row Template:NavBox/head Template:NavBox/row Template:NavBox/head Template:NavBox/row Template:NavBox/row Template:NavBox/row Template:NavBox/row Template:NavBox/head Template:NavBox/end