Jump to content

Template:Infobox artist discography/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Fxqf (talk | contribs)
No edit summary
Gadget850 (talk | contribs)
update CSS style
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{esoteric}}
{{esoteric}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{TOCright}}
{{TOCright}}
Line 25: Line 25:
This template is designed for use in discography articles within [[:Category:Discographies]]. It displays the number of [[studio album]]s, [[live album]]s, [[compilation album]]s, [[Single (music)|singles]], [[VHS single|video releases]], [[Extended play|EPs]], etc., by an artist or group.
This template is designed for use in discography articles within [[:Category:Discographies]]. It displays the number of [[studio album]]s, [[live album]]s, [[compilation album]]s, [[Single (music)|singles]], [[VHS single|video releases]], [[Extended play|EPs]], etc., by an artist or group.


===Placement===
==Placement==
This template should be placed in an article at the top of the page, before the introduction.
This template should be placed in an article at the top of the page, before the introduction.


Line 48: Line 48:
}}
}}
</pre>
</pre>
;Example<nowiki>:</nowiki> <span style="font-weight:normal;">(see result on right)<br/>
'''Example''':(see result on right)

If you find that some of the arrows don't link to the intended sections, see [[#Modifying section links|Modifying section links]] below.
If you find that some of the arrows don't link to the intended sections, see [[#Modifying section links|Modifying section links]] below.
</span>
</span>
Line 166: Line 167:


===Advanced usage===
===Advanced usage===
==== Image size ====
====Image size====
The image is set to be 250px wide by default. If this needs to be adjusted, use the {{para|Image size}} parameter, which should be less than 250px. To set the image to its automatic size, set it to <code>auto</code>.
The image is set to be 250px wide by default. If this needs to be adjusted, use the {{para|Image size}} parameter, which should be less than 250px. To set the image to its automatic size, set it to <code>auto</code>.


==== Modifying section links ====
====Modifying section links====
If the discography doesn't use the titles as used in this template, you may modify the destination links (which appear as the diagonal arrow <span style="font-size:1.25em;">↙</span> in the template) by using the following parameters to link from the infobox to the appropriate section. Unless your section is named exactly as used in this infobox, it will not map to the correct part of the page or will only link to the top of the discography page.
If the discography doesn't use the titles as used in this template, you may modify the destination links (which appear as the diagonal arrow <span style="font-size:1.25em;">↙</span> in the template) by using the following parameters to link from the infobox to the appropriate section. Unless your section is named exactly as used in this infobox, it will not map to the correct part of the page or will only link to the top of the discography page.


Line 179: Line 180:
!scope="col"| Parameter to alter link
!scope="col"| Parameter to alter link
!scope="col"| Caption background color
!scope="col"| Caption background color
|- bgcolor="lightsteelblue"
|- style="background-color: lightsteelblue"
!scope="row"| Studio
!scope="row"| Studio
| Studio albums
| Studio albums
Line 185: Line 186:
| Studio link
| Studio link
| LightSteelBlue (#B0C4DE)
| LightSteelBlue (#B0C4DE)
|- bgcolor="burlywood"
|- style="background-color: burlywood"
!scope="row"| Live
!scope="row"| Live
| Live albums
| Live albums
Line 191: Line 192:
| Live link
| Live link
| BurlyWood (#DEB887)
| BurlyWood (#DEB887)
|- bgcolor="darkseagreen"
|- style="background-color: darkseagreen"
!scope="row"| Compilation
!scope="row"| Compilation
| Compilation albums
| Compilation albums
Line 197: Line 198:
| Comp link
| Comp link
| DarkSeaGreen (#8FBC8F)
| DarkSeaGreen (#8FBC8F)
|- bgcolor="beige"
|- style="background-color: beige"
!scope="row"| Internet
!scope="row"| Internet
| Internet albums
| Internet albums
Line 203: Line 204:
| Internet link
| Internet link
| Beige (#F5F5DC)
| Beige (#F5F5DC)
|- bgcolor="#99CCFF"
|- style="background-color: #99CCFF"
!scope="row"| Video
!scope="row"| Video
| Video albums
| Video albums
Line 209: Line 210:
| Video link
| Video link
| #99CCFF
| #99CCFF
|- bgcolor="#FFCCFF"
|- style="background-color: #FFCCFF"
!scope="row"| Music videos
!scope="row"| Music videos
| Music videos
| Music videos
Line 215: Line 216:
| MV link
| MV link
| #FFCCFF
| #FFCCFF
|- bgcolor="lightsalmon"
|- style="background-color: lightsalmon"
!scope="row"| EP
!scope="row"| EP
| EPs
| EPs
Line 221: Line 222:
| EPs link
| EPs link
| LightSalmon (#FFA07A)
| LightSalmon (#FFA07A)
|- bgcolor="khaki"
|- style="background-color: khaki"
!scope="row"| Singles
!scope="row"| Singles
| Singles
| Singles
Line 227: Line 228:
| Singles link
| Singles link
| Khaki (#F0E68C)
| Khaki (#F0E68C)
|- bgcolor="#DADCED"
|- style="background-color: #DADCED"
!scope="row"| B-sides
!scope="row"| B-sides
| B-sides
| B-sides
Line 233: Line 234:
| B link
| B link
| #DADCED
| #DADCED
|- bgcolor="gainsboro"
|- style="background-color: gainsboro"
!scope="row"| Soundtrack
!scope="row"| Soundtrack
| Soundtracks
| Soundtracks
Line 239: Line 240:
| Soundtrack link
| Soundtrack link
| Gainsboro (#DCDCDC)
| Gainsboro (#DCDCDC)
|- bgcolor="thistle"
|- style="background-color: thistle"
!scope="row"| Tribute
!scope="row"| Tribute
| Tribute and cover albums
| Tribute and cover albums
Line 245: Line 246:
| Trib link
| Trib link
| Thistle (#D8BFD8)
| Thistle (#D8BFD8)
|- bgcolor="#CCCCCC"
|- style="background-color: #CCCCCC"
!scope="row"| Option
!scope="row"| Option
| defined in Option&nbsp;name
| defined in Option&nbsp;name
Line 251: Line 252:
| Option link
| Option link
| #CCCCCC, or defined in Option&nbsp;color
| #CCCCCC, or defined in Option&nbsp;color
|- bgcolor="#BBBBBB"
|- style="background-color: #BBBBBB"
!scope="row"| 1Option
!scope="row"| 1Option
| defined in 1Option&nbsp;name
| defined in 1Option&nbsp;name
Line 257: Line 258:
| 1Option link
| 1Option link
| #BBBBBB, or defined in 1Option&nbsp;color
| #BBBBBB, or defined in 1Option&nbsp;color
|- bgcolor="#CCCCCC"
|- style="background-color: #CCCCCC"
!scope="row"| 2Option
!scope="row"| 2Option
| defined in 2Option&nbsp;name
| defined in 2Option&nbsp;name
Line 263: Line 264:
| 2Option link
| 2Option link
| #CCCCCC, or defined in 2Option&nbsp;color
| #CCCCCC, or defined in 2Option&nbsp;color
|- bgcolor="#BBBBBB"
|- style="background-color: #BBBBBB"
!scope="row"| 3Option
!scope="row"| 3Option
| defined in 3Option&nbsp;name
| defined in 3Option&nbsp;name
Line 269: Line 270:
| 3Option link
| 3Option link
| #BBBBBB, or defined in 3Option&nbsp;color
| #BBBBBB, or defined in 3Option&nbsp;color
|- bgcolor="#CCCCCC"
|- style="background-color: #CCCCCC"
!scope="row"| 4Option
!scope="row"| 4Option
| defined in 4Option&nbsp;name
| defined in 4Option&nbsp;name
Line 275: Line 276:
| 4Option link
| 4Option link
| #CCCCCC, or defined in 4Option&nbsp;color
| #CCCCCC, or defined in 4Option&nbsp;color
|- bgcolor="#BBBBBB"
|- style="background-color: #BBBBBB"
!scope="row"| 5Option
!scope="row"| 5Option
| defined in 5Option&nbsp;name
| defined in 5Option&nbsp;name
Line 283: Line 284:
|}
|}


==== Optional sections ====
====Optional sections====
:''Please use these functions sparingly.''
:''Please use these functions sparingly.''
As not all musical artists are the same, some will have the need to have different sections linked in their discography, such as a collaboration section, unreleased songs or others. In order to list these options, there are four parameters instead of just two. The first two parameters, {{para|Option}} and {{para|Option name}} are mandatory if you wish to use this portion of the template. The standard color is a medium gray (see the ''Customised link parameter table'' below); however, the example on the right employs the color selection parameter, {{para|Option color}} converting the color to "turquoise". The {{para|Option link}} parameter is optional, and when unused, it uses the same information from {{para|Option name}}. However, with long titles, it may not be preferable to use the full title (as in the example, it is "Side projects", but links to "Side projects and collaborations"). You may add up to six (6) optional fields. It is advised to use these only in sequence. The basic option only requires the input as shown below. To use a second option simply add "1" in front of ALL of the parameters for the second time, "2" in front of the third, and so on.
As not all musical artists are the same, some will have the need to have different sections linked in their discography, such as a collaboration section, unreleased songs or others. In order to list these options, there are four parameters instead of just two. The first two parameters, {{para|Option}} and {{para|Option name}} are mandatory if you wish to use this portion of the template. The standard color is a medium gray (see the ''Customised link parameter table'' below); however, the example on the right employs the color selection parameter, {{para|Option color}} converting the color to "turquoise". The {{para|Option link}} parameter is optional, and when unused, it uses the same information from {{para|Option name}}. However, with long titles, it may not be preferable to use the full title (as in the example, it is "Side projects", but links to "Side projects and collaborations"). You may add up to six (6) optional fields. It is advised to use these only in sequence. The basic option only requires the input as shown below. To use a second option simply add "1" in front of ALL of the parameters for the second time, "2" in front of the third, and so on.
Line 296: Line 297:
!scope="row"|<code><nowiki>&nbsp;|Option &nbsp; &nbsp; &nbsp; =&nbsp;</nowiki></code>
!scope="row"|<code><nowiki>&nbsp;|Option &nbsp; &nbsp; &nbsp; =&nbsp;</nowiki></code>
| The number of instances of the option shown in the discography
| The number of instances of the option shown in the discography
| <font color=red>Mandatory</font>
| <span style="color:red">Mandatory</span>
|-
|-
!scope="row"|<code><nowiki>&nbsp;|Option name &nbsp;=&nbsp;</nowiki></code>
!scope="row"|<code><nowiki>&nbsp;|Option name &nbsp;=&nbsp;</nowiki></code>
| The name or type of the Option, such as "Collaborations"
| The name or type of the Option, such as "Collaborations"
| <font color=red>Mandatory</font>
| <span style="color:red">Mandatory</span>
|-
|-
!scope="row"|<code><nowiki>&nbsp;|Option link &nbsp;=&nbsp;</nowiki></code>
!scope="row"|<code><nowiki>&nbsp;|Option link &nbsp;=&nbsp;</nowiki></code>
| The link to the list of instances (must match a heading on page)
| The link to the list of instances (must match a heading on page)
| <font color=green>Optional</font>
| <span style="color:green">Optional</span>
|-
|-
!scope="row"|<code><nowiki>&nbsp;|Option color =&nbsp;</nowiki></code>
!scope="row"|<code><nowiki>&nbsp;|Option color =&nbsp;</nowiki></code>
| The color you wish to use for the background of the section in the infobox
| The color you wish to use for the background of the section in the infobox
| <font color=green>Optional</font>
| <span style="color:green">Optional</span>
|}
|}


Line 373: Line 374:


<div style="width:55%;">
<div style="width:55%;">
;Example<nowiki>:</nowiki> <span style="font-weight:normal;">(see result on right)</span>
'''Example''':(see result on right)
<pre>
<pre>
{{Infobox artist discography
{{Infobox artist discography

Revision as of 23:31, 24 October 2012

Powderfinger discography
A spiral made up of a compass, clock and the Earth, with the word Wikipedia below.
Powderfinger performing live
Studio albums6
EPs4
Soundtrack albums5
Live albums2
Compilation albums1
Tribute albums2
Singles22
B-sides15
Video albums3
Music videos18

{{Infobox artist discography}} is the standard infobox for discography articles, and is within the purview of WikiProject Albums. Please discuss major changes on the talk page before making them.

This template is designed for use in discography articles within Category:Discographies. It displays the number of studio albums, live albums, compilation albums, singles, video releases, EPs, etc., by an artist or group.

Placement

This template should be placed in an article at the top of the page, before the introduction.

Basic usage

{{Infobox artist discography
| Artist       = [[Powderfinger]]
| Image        = Example.png
| Caption      = Powderfinger performing live
| Alt          = A spiral made up of a compass,
 clock and the Earth, with the word Wikipedia below.
| Studio       = 6
| Live         = 2
| Compilation  = 1
| Video        = 3
| Music videos = 18
| Tribute      = 2
| EP           = 4
| Singles      = 22
| B-sides      = 15
| Soundtrack   = 5
}}

Example:(see result on right)

If you find that some of the arrows don't link to the intended sections, see Modifying section links below.

Code

Simple

{{Infobox artist discography
| Artist       =
| Image        =
| Caption      =
| Alt          =
| Studio       =
| Live         =
| Compilation  =
| Video        =
| Music videos =
| Tribute      =
| EP           =
| Singles      =
| B-sides      =
| Soundtrack   =
}}

Full

{{Infobox artist discography
| Artist          =
| Image           =
| Image size      =
| Caption         =
| Alt             =

| Studio          =
| Studio link     =

| Live            =
| Live link       =

| Compilation     =
| Comp link       =

| Internet        =
| Internet link   =

| Video           =
| Video link      =

| Music videos    =
| MV link         =

| EP              =
| EPs link        =

| Singles         =
| Singles link    =

| B-sides         =
| B link          =

| Soundtrack      =
| Soundtrack link =

| Tribute         =
| Trib link       =

| Option          =
| Option name     =
| Option link     =
| Option color    =

| 1Option         =
| 1Option name    =
| 1Option link    =
| 1Option color   =

| 2Option         =
| 2Option name    =
| 2Option link    =
| 2Option color   =

| 3Option         =
| 3Option name    =
| 3Option link    =
| 3Option color   =

| 4Option         =
| 4Option name    =
| 4Option link    =
| 4Option color   =

| 5Option         =
| 5Option name    =
| 5Option link    =
| 5Option color   = 
}}

Fields

When using the template, it is not necessary to delete any fields that are not being used. Most fields are optional; if no data is supplied, the row will simply not appear once the page is saved.

Artist

The name of the group or artist ("the act") in plain text only. Logos and other graphics are to be avoided in this field in accordance with WP:ACCESS and WP:FAIR. Use an internal link or piped internal link to the main article about the artist. For help with internal links, see the Editing FAQ. This field is mandatory.

Image

An image of the act, sufficiently clear for display at 200 pixels' width. Set to only the image name, e.g. Example.png, not Image:Example.png or [[Image:Example.png|200px|abc]]. Images used should ideally be free images; that is, not subject to copyright restrictions. If no free image is available it may be possible to use a non-free image under a claim of fair use, provided the image meets Wikipedia's non-free content criteria (for more information see WP:NFCC and WP:NFC).

Alt

Alt text for the image, as per WP:ALT. This is for describing the image to people who cannot see the image, and typically should not be the same as the caption.

Caption

Caption for the image to be displayed. Do not link years in the caption e.g. do not link [[2007]].

Types of releases

There are individual fields for the various types of releases (studio, live, compilation, video, music videos, tribute, EP, singles, b-sides, and soundtrack). In each field place the number of each type that the artist has released. Use only numeric values in these fields. For other types of releases, see "Advanced usage" below.

Advanced usage

Image size

The image is set to be 250px wide by default. If this needs to be adjusted, use the |Image size= parameter, which should be less than 250px. To set the image to its automatic size, set it to auto.

If the discography doesn't use the titles as used in this template, you may modify the destination links (which appear as the diagonal arrow in the template) by using the following parameters to link from the infobox to the appropriate section. Unless your section is named exactly as used in this infobox, it will not map to the correct part of the page or will only link to the top of the discography page.

List of infobox parameters, with captions displayed and link names used by default
Parameter Caption displayed Default section link Parameter to alter link Caption background color
Studio Studio albums Studio albums Studio link LightSteelBlue (#B0C4DE)
Live Live albums Live albums Live link BurlyWood (#DEB887)
Compilation Compilation albums Compilation albums Comp link DarkSeaGreen (#8FBC8F)
Internet Internet albums Internet albums Internet link Beige (#F5F5DC)
Video Video albums Video albums Video link #99CCFF
Music videos Music videos Music videos MV link #FFCCFF
EP EPs EPs EPs link LightSalmon (#FFA07A)
Singles Singles Singles Singles link Khaki (#F0E68C)
B-sides B-sides B-sides B link #DADCED
Soundtrack Soundtracks Soundtracks Soundtrack link Gainsboro (#DCDCDC)
Tribute Tribute and cover albums Tributes Trib link Thistle (#D8BFD8)
Option defined in Option name defined in Option link Option link #CCCCCC, or defined in Option color
1Option defined in 1Option name defined in 1Option link 1Option link #BBBBBB, or defined in 1Option color
2Option defined in 2Option name defined in 2Option link 2Option link #CCCCCC, or defined in 2Option color
3Option defined in 3Option name defined in 3Option link 3Option link #BBBBBB, or defined in 3Option color
4Option defined in 4Option name defined in 4Option link 4Option link #CCCCCC, or defined in 4Option color
5Option defined in 5Option name defined in 5Option link 5Option link #BBBBBB, or defined in 5Option color

Optional sections

Please use these functions sparingly.

As not all musical artists are the same, some will have the need to have different sections linked in their discography, such as a collaboration section, unreleased songs or others. In order to list these options, there are four parameters instead of just two. The first two parameters, |Option= and |Option name= are mandatory if you wish to use this portion of the template. The standard color is a medium gray (see the Customised link parameter table below); however, the example on the right employs the color selection parameter, |Option color= converting the color to "turquoise". The |Option link= parameter is optional, and when unused, it uses the same information from |Option name=. However, with long titles, it may not be preferable to use the full title (as in the example, it is "Side projects", but links to "Side projects and collaborations"). You may add up to six (6) optional fields. It is advised to use these only in sequence. The basic option only requires the input as shown below. To use a second option simply add "1" in front of ALL of the parameters for the second time, "2" in front of the third, and so on.

Customised link parameter table
Infobox option parameter Parameter purpose Required?
 |Option       =  The number of instances of the option shown in the discography Mandatory
 |Option name  =  The name or type of the Option, such as "Collaborations" Mandatory
 |Option link  =  The link to the list of instances (must match a heading on page) Optional
 |Option color =  The color you wish to use for the background of the section in the infobox Optional
Fall Out Boy discography
A spiral made up of a compass, clock and the Earth, with the word Wikipedia below.
Fall Out Boy, 2007
Studio albums5
EPs5
Soundtrack albums1
Live albums2
Compilation albums2
Tribute albums1
Singles27
B-sides15
Video albums7
Music videos12
Side projects5
Demos3
Mash-ups2
Sample contributions11

Example:(see result on right)

{{Infobox artist discography
| Artist          = [[Fall Out Boy]]
| Image           = Example.png
| Image size      = 150px
| Caption         = Fall Out Boy, 2007
| Alt             = A spiral made up of a compass,
 clock and the Earth, with the word Wikipedia below,

| Studio          = 5
| Studio link     = Albums
| Live            = 2
| Live link       = Albums
| Compilation     = 2
| Comp link       = Albums
| Internet        = 7
| Internet link   = Internet releases
| Video           = 7
| Video link      = Music videos
| Music videos    = 12
| MV link         = Videography
| EP              = 5
| EPs link        =
| Singles         = 27
| Singles link    =
| B-sides         = 15
| B link          = B-sides and other releases
| Soundtrack      = 1
| Soundtrack link =
| Tribute         = 1
| Trib link       = Other appearances

| Option          = 5
| Option name     = Side projects
| Option link     = Side projects and collaborations
| Option color    = turquoise

| 1Option         = 3
| 1Option name    = Demos
| 1Option link    = Demos
| 1Option color   =

| 2Option         = 2
| 2Option name    = Mash-ups
| 2Option link    = Mash-ups
| 2Option color   = limegreen

| 3Option         = 11
| 3Option name    = Sample contributions
| 3Option link    = Samples
| 3Option color   = orange
}}