Template:Navbox department

Template documentation

{{Navbox department}} is a navigational template for Wikimedia Foundation departments.

Usage

Please remove the parameters that are left blank.

{{Navbox department
| name       = {{subst:PAGENAME}}
| state      = 
| lang       = 
| title      = 
| background = [color hexcode]
| bodyclass  = hlist
| above      = 

| group1     = 
| list1      = 

| group2     = 
| list2      = 

 ...

| group12    = 
| list12     = 

| below      = 
}}

Parameters

Mandatory

name
The name of the template, which is needed for the "v · d · e" ("view · discuss · edit") links to work properly on all pages where the template is used. You can enter {{subst:PAGENAME}} for this value as a shortcut.
title
Text that appears centered in the top row of the table. It is usually the department's name. This should be a single line, but if a second line is needed, use {{-}} to ensure proper centering.
listn
(i.e. list1, list2, etc.) The body of the template, usually a list of links. Format is inline, although the text can be entered on separate lines if the entire list is enclosed within <div> </div>. At least one list parameter is required; each additional list is displayed in a separate row of the table. Each listn may be preceded by a corresponding groupn parameter, if provided (see below).
background
Use a color hex code. This defaults to #B1D7FE:

Optional

Cells

groupn
(i.e. group1, group2, etc.) If specified, text appears in a cell displayed to the left of listn. Use these fields to provide label a for listn, such as "Studio albums", "Films", "Former members", etc.
above
A full-width cell displayed between the titlebar and first group/list, i.e. above the template's body (groups, lists and image). In a template without an image, above behaves in the same way as the list1 parameter without the group1 parameter.
below
A full-width cell displayed below the template's body (groups, lists and image).

Other

state
Defaults to autocollapse. If set to collapsed, the navbox will always start out in a collapsed state. If set to blank or anything other than autocollapse or collapsed, the navbox will always start out in an expanded state. A navbox with autocollapse will start out collapsed if there are two or more tables on the same page that use collapsible. For the technically minded, see MediaWiki:Common.js.
navbar
Defaults to Navbar. If set to plain, the links on the left side of the titlebar will not be displayed.
lang
Language code of the navbox content (e.g. en or zh-hans), highly recommended. It affects used fonts, language used by screen readers, hyphenation rules if hyphenation is enabled etc. If this is provided, but dir isn’t, the text directionality is also reset, so the browser will decide whether it should show content left to right or right to left based on the navbox content, ignoring context.
dir
Directionality of the navbox content (ltr or rtl). Highly recommended for navboxes translated with the Translate extension, optional if the navbox content is guaranteed to be in one language (e.g. untranslatable/manually translated ones)—the browsers’ automatic text direction detection doesn’t work well with content containing both left-to-right and right-to-left text.