Template:Navbox musical artist

Template page
Template documentationview · edit · history · purge ]


{{Navbox musical artist}} is the standard navigation template for musician articles, and is within the purview of WikiProject Musicians. Please discuss major changes on the talk page before making them. See also Wikipedia:WikiProject Musicians/Navbox for more information.

Usage

Please remove the parameters that are left blank.

<syntaxhighlight lang="wikitext"></syntaxhighlight>

Parameters

Mandatory

name
The name of the template, which is needed for the "v ·· e" ("view · talk · 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 template's topic, i.e. a succinct description of the body contents. This should be a single line, but if a second line is needed, use {{-}} to ensure proper centering.
listn
(i.e. list1, list2, etc. up to list20) 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 . 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 one of the following seven categories:
Code Display
solo_singer Background color
non_vocal_instrumentalist Background color
non_performing_personnel Background color
group_or_band Background color
cover_band Background color
classical_ensemble Background color
temporary Background color

Optional

Cells

groupn
(i.e. group1, group2, etc. up to group20) 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.

Examples

{{Navbox}} is used to build this template. {{Navbox}} uses the {{Nowraplinks}} CSS class thus links do not line break in this template. If there are non-linked portions of text that need to be controlled for wrapping use the hlist class (see WP:HLIST). If a small space between groups is desired leave an empty line between them.

Band

<syntaxhighlight lang="wikitext" style="overflow: auto;">

</syntaxhighlight>

Musician

<syntaxhighlight lang="wikitext" style="overflow: auto;">

</syntaxhighlight>

See also

  • WP:HLIST, which describes the use of the hlist class.
  • {{Navbox}}, the standard Navbox.
  • Wikipedia:Line-break handling, the how-to guide about handling word-wraps (line-breaks) on Wikipedia – such as lists of links linewrapping within navboxes.


Navigation templates comparison
Template Collapsible Header color Image Groups Style (body)
parameter/s
{{Navbox}} collapsible navbox Left/right of body Yes Yes
{{Navbox with collapsible groups}} collapsible navbox Left/right of body and/or in each list Yes Yes
{{Navbox with columns}} collapsible navbox Left/right of columns No Yes
Collapsible attributes
Type CSS classes JavaScript Collapses when Custom
initial state
Nesting
Collapsible tables mw-collapsible Defined in Common.js 2 or more autocollapse on page Yes Yes