User:WOSlinker/Sandbox/Navbox music/doc
From Wikipedia, the free encyclopedia
This template allows a navigational template to be set up relatively quickly by supplying it one or more lists of links. It is similar to {{Navbox}} in options availalbe but is styled to look a little different.
Contents |
[edit] Usage
Please remove the parameters that are leave blank.
{{Navbox |name = {{subst:PAGENAME}} |state = |title = |above = |group1 = |list1 = |group2 = |list2 = ... |group12 = |list12 = |below = }}
[edit] Parameters
[edit] 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 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 (body may be used in place of list1)
- (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).
- (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
[edit] Optional
[edit] Cells
-
- groupn
- (i.e. group1, group2, etc.) If specified, text appears in a header cell displayed above the listn.
-
- 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).
[edit] Styles (NOT RECOMMENDED)
Styles are not recommended as to maintain consistency among templates and pages in Wikipedia. However, the option to modify styles is given in case it is necessary.
-
- titlestyle
- CSS styles to apply to title, most often the titlebar's background color:
titlestyle = background:#nnnnnn;
titlestyle = background:name;
-
- bodystyle
- Specifies CSS styles to apply to the template body. The shorter name style may be used when no other style parameters are specified. This option should be used sparingly as it can lead to visual inconsistencies. Examples:
background:#nnnnnn;
width:N [em/%/px or width:auto];
float:[left/right/none];
clear:[right/left/both/none];
-
- groupstyle
- CSS styles to apply to the groupN cells. This option overrides any styles that are applied to the entire table. Examples:
background:#nnnnnn;
text-align:[left/center/right];
vertical-align:[top/middle/bottom];
-
- liststyle
- CSS styles to apply to all lists. Overruled by the oddstyle and evenstyle parameters (if specified) below.
[edit] Default styles
The style settings listed here are those that editors using the navbox change most often. The other more complex style settings were left out of this list to keep it simple.
titlestyle = background:#69c;
bodystyle = background:white; width:100%; vertical-align:middle;
abovestyle = text-align:center;
belowstyle = background:#69c; text-align:center;
groupstyle = background:#c0c0c0; text-align:center;
liststyle = background:transparent; text-align:center;
Since only bodystyle has a vertical-align all the others inherit its vertical-align:middle;
.
[edit] 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 use collapsible. For the technically minded, see MediaWiki:Common.js.
-
- navbar
- Defaults to
Tnavbar
. If set toplain
, the links on the left side of the titlebar will not be displayed.
[edit] Examples
{{User:WOSlinker/Sandbox/Navbox_music | name = Led Zeppelin | title = [[Led Zeppelin]] | above = '''[[Jimmy Page]]'''{{·wrap}} '''[[Robert Plant]]'''{{·wrap}} '''[[John Paul Jones (musician)|John Paul Jones]]'''{{·wrap}} '''[[John Bonham]]''' |group1 = [[Led Zeppelin discography|'''Discography''']] | list1 = <div> '''Studio albums:''' ''[[Led Zeppelin (album)|Led Zeppelin]]''{{·wrap}} ''[[Led Zeppelin II]]''{{·wrap}} ''[[Led Zeppelin III]]''{{·wrap}} [[Image:Zoso.svg|55px|Led Zeppelin IV]] (''[[Led Zeppelin IV]]''){{·wrap}} ''[[Houses of the Holy]]''{{·wrap}} ''[[Physical Graffiti]]''{{·wrap}} ''[[Presence]]''{{·wrap}} ''[[In Through the Out Door]]'' '''Live albums:''' ''[[The Song Remains the Same (album)|The Song Remains the Same]]''{{·wrap}} ''[[BBC Sessions (Led Zeppelin album)|BBC Sessions]]''{{·wrap}} ''[[How the West Was Won (Led Zeppelin album)|How the West Was Won]]'' '''Compilations:''' ''[[Coda (album)|Coda]]''{{·wrap}} ''[[Led Zeppelin (box set)|Box Set]]''{{·wrap}}''[[Profiled]]''{{·wrap}} ''[[Led Zeppelin Remasters|Remasters]]''{{·wrap}} ''[[Led Zeppelin Box Set, Vol. 2|Box Set 2]]''{{·wrap}} ''[[The Complete Studio Recordings (Led Zeppelin)|Complete Studio Recordings]]''{{·wrap}} ''[[Early Days: Best of Led Zeppelin Volume One]]''{{·wrap}} ''[[Latter Days: Best of Led Zeppelin Volume Two]]''{{·wrap}} ''[[Mothership (album)|Mothership]]'' </div> |group2 = [[Led Zeppelin#Filmography|'''Films''']] | list2 = ''[[The Song Remains the Same (film)|The Song Remains the Same]]''{{·wrap}} ''[[Led Zeppelin (DVD)|Led Zeppelin DVD]]'' |group3 = [[:Category:Led Zeppelin|'''Other''']]</div> | list3 = [[Peter Grant (music manager)|Peter Grant]]{{·wrap}} [[Richard Cole]]{{·wrap}} [[Swan Song Records]]{{·wrap}} [[The Yardbirds]]{{·wrap}} [[XYZ (band)|XYZ]]{{·wrap}} [[The Firm (band)|The Firm]]{{·wrap}} [[Page and Plant]]{{·wrap}} [[Strange Sensation]]{{·wrap}} [[Led Zeppelin bootleg recordings|Bootlegs]]{{·wrap}} [[Led Zeppelin concerts|Concerts]]{{·wrap}} [[:Category:Led Zeppelin songs|Songs]] }}
{{Navbox music |name = Bob Dylan |title = [[Bob Dylan]] |group1 = [[Bob Dylan discography|Discography]] |list1 = <div> {{Navbox generic subgroup | groupstyle = background:#f0f0f0; | liststyle = background:transparent;text-align:left; | group1 = Studio albums | list1 = {{nowrap|''[[Bob Dylan (album)|Bob Dylan]]'' •}} {{nowrap|''[[The Freewheelin' Bob Dylan]]'' •}} {{nowrap|''[[The Times They Are a-Changin']]'' •}} {{nowrap|''[[Another Side of Bob Dylan]]'' •}} {{nowrap|''[[Bringing It All Back Home]]'' •}} {{nowrap|''[[Highway 61 Revisited]]'' •}} {{nowrap|''[[Blonde on Blonde]]'' •}} {{nowrap|''[[John Wesley Harding (album)|John Wesley Harding]]'' •}} {{nowrap|''[[Nashville Skyline]]'' •}} {{nowrap|''[[Self Portrait]]'' •}} {{nowrap|''[[New Morning]]'' •}} {{nowrap|''[[Pat Garrett & Billy the Kid (album)|Pat Garrett & Billy the Kid]]'' •}} {{nowrap|''[[Dylan (1973 album)|Dylan]]'' •}} {{nowrap|''[[Planet Waves]]'' •}} {{nowrap|''[[Blood on the Tracks]]'' •}} {{nowrap|''[[The Basement Tapes]]'' •}} {{nowrap|''[[Desire (album)|Desire]]'' •}} {{nowrap|''[[Street Legal (album)|Street Legal]]'' •}} {{nowrap|''[[Slow Train Coming]]'' •}} {{nowrap|''[[Saved (album)|Saved]]'' •}} {{nowrap|''[[Shot of Love]]'' •}} {{nowrap|''[[Infidels]]'' •}} {{nowrap|''[[Empire Burlesque]]'' •}} {{nowrap|''[[Knocked Out Loaded]]'' •}} {{nowrap|''[[Down in the Groove]]'' •}} {{nowrap|''[[Oh Mercy]]'' •}} {{nowrap|''[[Under the Red Sky]]'' •}} {{nowrap|''[[Good as I Been to You]]'' •}} {{nowrap|''[[World Gone Wrong]]'' •}} {{nowrap|''[[Time out of Mind]]'' •}} {{nowrap|''[["Love and Theft"]]'' •}} {{nowrap|''[[Modern Times (Bob Dylan album)|Modern Times]]''}} | group2 = Live albums | list2 = {{nowrap|''[[The Concert for Bangla Desh (album)|The Concert for Bangla Desh]]'' •}} {{nowrap|''[[Before the Flood]]'' •}} {{nowrap|''[[Hard Rain (album)|Hard Rain]]'' •}} {{nowrap|''[[Bob Dylan at Budokan]]'' •}} {{nowrap|''[[Real Live]]'' •}} {{nowrap|''[[Dylan & The Dead]]'' •}} {{nowrap|''[[The 30th Anniversary Concert Celebration]]'' •}} {{nowrap|''[[MTV Unplugged (Bob Dylan album)|MTV Unplugged]]'' •}} {{nowrap|''[[Live at The Gaslight 1962]]'' •}} {{nowrap|''[[Live at Carnegie Hall 1963]]''}} | group3 = [[Traveling Wilburys]] | list3 = {{nowrap|''[[Traveling Wilburys Vol. 1]]'' •}} {{nowrap|''[[Traveling Wilburys Vol. 3]]''}} | group4 = Compilations | list4 = {{nowrap|''[[Bob Dylan's Greatest Hits]]'' •}} {{nowrap|''[[Bob Dylan's Greatest Hits Vol. II]]'' •}} {{nowrap|''[[Masterpieces]]'' •}} {{nowrap|''[[Biograph (album)|Biograph]]'' •}} {{nowrap|''[[Bob Dylan's Greatest Hits Volume 3]]'' •}} {{nowrap|''[[The Essential Bob Dylan]]'' •}} {{nowrap|''[[Dylan (2007 album)|Dylan]]''}} | group5 = The Bootleg Series | list5 = {{nowrap|''[[The Bootleg Series Volumes 1–3 (Rare & Unreleased) 1961–1991|Volumes 1–3 (Rare & Unreleased) 1961–1991]]'' •}} {{nowrap|''[[The Bootleg Series Vol. 4: Bob Dylan Live 1966, The "Royal Albert Hall" Concert|Vol. 4: Bob Dylan Live 1966, The "Royal Albert Hall" Concert]]'' •}} {{nowrap|''[[The Bootleg Series Vol. 5: Bob Dylan Live 1975, The Rolling Thunder Revue|Vol. 5: Bob Dylan Live 1975, The Rolling Thunder Revue]]'' •}} {{nowrap|''[[The Bootleg Series Vol. 6: Bob Dylan Live 1964, Concert at Philharmonic Hall|Vol. 6: Bob Dylan Live 1964, Concert at Philharmonic Hall]]'' •}} {{nowrap|''[[The Bootleg Series Vol. 7: No Direction Home: The Soundtrack|Vol. 7: No Direction Home: The Soundtrack]]''}} }} |group2 = Films |list2 = {{nowrap|''[[Dont Look Back]]'' •}} {{nowrap|''[[Eat the Document]]'' •}} {{nowrap|''[[Pat Garrett and Billy the Kid]]'' •}} {{nowrap|''[[Renaldo and Clara]]'' •}} {{nowrap|''[[Hearts of Fire]]'' •}} {{nowrap|''[[Masked and Anonymous]]'' •}} {{nowrap|''[[No Direction Home]]''}} |group3 = Writings |list3 = {{nowrap|''[[Tarantula (book)|Tarantula]]'' •}} {{nowrap|''[[Writings and Drawings]]'' •}} {{nowrap|''[[Lyrics: 1962–1985]]'' •}} {{nowrap|''[[Drawn Blank]]'' •}} {{nowrap|''[[Chronicles, Vol. 1]] '' •}} {{nowrap|''[[Lyrics: 1962–2001]]}} |below = {{nowrap|[[:Category:Bob Dylan albums |Albums]] •}} {{nowrap|[[:Category:Bob Dylan songs|Songs]] •}} {{nowrap|[[:Category:Bob Dylan|Related topics]]}} }}
|
[edit] See also
- {{·}} and {{•}} - The dots and bullets usually used in the link lists in the navboxes.
- {{Navbox}} - Standard Navbox.
collapsible | Header color | Image | Groups | Style (body) parameter/s |
Examples | |
---|---|---|---|---|---|---|
{{Navbox}} | collapsible | navbox | Left/right of body | Yes | Yes | {{USCongress}}, {{Solar System}} |
{{Navbox with columns}} | collapsible | navbox | Left/right of columns | No | Yes | {{Current U.S. Senators}}, {{Czech lands}} |
{{Navbox with collapsible groups}} | collapsible | navbox | Left/right of body and/or in each list | Yes | Yes | {{University of Michigan}}, {{Scouting}} |
Type | CSS classes | Javascript | Collapses when | Custom initial state |
Nesting |
---|---|---|---|---|---|
Collapsible tables | collapsible | Defined in Common.js | 2 or more autocollapse on page | Yes | Yes |