m (Changed protection level of Template:Navbox musical artist/color: allow template editors to modify ([Edit=Protected template] (indefinite) [Move=Protected template] (indefinite))) |
m (1 revision imported) |
||
(No difference)
|
Latest revision as of 18:43, 21 June 2023
{{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 · t · 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
- (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
- 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 tocollapsed
, the navbox will always start out in a collapsed state. If set to blank or anything other thanautocollapse
orcollapsed
, the navbox will always start out in an expanded state. A navbox withautocollapse
will start out collapsed if there are two or more tables on the same page that usecollapsible
. For the technically minded, see MediaWiki:Common.js.
- navbar
- Defaults to
Navbar
. If set toplain
, 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.
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 |
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 |