Template:Navbox

From Imagisphere
Jump to navigation Jump to search

This template creates a header which will turn a table into a navbox.

Usage

{| {{navbox|Navbox Example|navbar=Navbox}}
! Example group 1
| Example text
|-
! Example group 2
| Text above a sub-table
	{|
	!Example sub-group 1
	|Example sub-list 1
	|-
	!Example sub-group 2
	|Example sub-list 2<br>Taking up two lines
	|}
* Horizontal list
* Under a sub-table
** Sub-item
*** Sub-sub-item
* Normal size again!
|-
!colspan="2"|Example sub-header
|}

Produces:

Parameters

The template itself accepts a few different parameters, including:

  • 1: The text that appears in the navbox's header.
  • navbar: The name of the template, minus the 'Template:' prefix. If specified, quick links to view, discuss and edit the navbox will appear in the top left corner of the header.
  • class: Use this to apply additional CSS classes to the navbox, separated by spaces.
  • collapsed If enabled, the navbox will start collapsed, and can be expanded.