Changes
updated artist guidance for new code
{{documentation subpage}}
{{Music infobox header}}
{{Lua|Module:Infobox|Module:InfoboxImage|Module:String|Module:Check for unknown parameters}}
{{Infobox song
| name = The Single
| cover = Nocover.svg
| alt =
| caption = Single picture sleeve
| type = single
| artist = the Artist
| album =
| B-side = Other Side
| released = {{Start date|{{#expr:{{#time:Y}}-1}}|04|01}}
| format = [[CD single]]
| recorded = January 1–10, {{#expr:{{#time:Y}}-1}}
| studio = [[Record Plant]], New York City
| venue =
| genre = [[Contemporary R&B]]
| length = 3:01
| label = [[Columbia Records|Columbia]]
| writer = The Artist
| producer = The Producer
| prev_title = Last Single
| prev_year = {{#expr:{{#time:Y}}-2}}
| next_title = Next Single
| next_year = {{#time:Y}}
}}
{{Infobox song
| name = The Song
| cover = Nocover.svg
| alt =
| caption = Sheet music cover
| type = [[Song]]
| artist = the Artist
| album = That Album
| released = {{Start date|{{#expr:{{#time:Y}}-1}}|04|01}}
| format = [[CD]]
| recorded = January 1–10, {{#expr:{{#time:Y}}-1}}
| studio =
| venue = [[Madison Square Garden]]
| genre = [[Contemporary R&B]]
| length = 3:01
| label = [[Columbia Records|Columbia]]
| composer = Another Artist
| lyricist = The Artist
| producer = The Producer
}}
Articles about [[song]]s often include an [[infobox]] that provides an overview or summary of the song. Generally, Infobox song is oriented more towards recorded music that has been commercially released. Other infoboxes, such as {{tl|Infobox musical composition}} and {{tl|Infobox anthem}} may be better suited to traditional or historical songs. The examples to the right are the infobox filled in with the most commonly used parameters.
An infobox provides [[WP:INFOBOXPURPOSE|key facts]] as discussed in the article—it should not be too detailed or take up too much of the article space. It should only contain items, such as genres or songwriters, that are discussed in the article (or have [[WP:CITE|citation]]s to [[WP:RS|reliable source]]s).
The code below can be copied and completed with information pertaining to particular song articles. The Parameters section provides guidance on using the fields.
__TOC__
== Code ==
The first template code below includes the most commonly used infobox parameters. If there is no information in the article to support the field, leave it blank. Remove the <code><nowiki><!--</nowiki></code> and <code><nowiki>--></nowiki></code> to use the {{tl|Start date}} and {{tl|Duration}} subtemplates.
The second includes the full set of parameters; most articles will not need many of the fields and they may be left blank or removed. Please note that adding fields other than those listed, such as {{para|arranger}} or {{para|recording engineer}}, will not be displayed.
If this template is substituted, it will return a cleaned-up copy of itself with unnecessary parameters removed and deprecated parameters replaced. Parameter indentation will also automatically be fixed.
===Most commonly used parameters===
<pre style="overflow:auto;">
{{subst:Infobox song
| name =
| cover = <!--just the file name-->
| type =
| artist =
| album =
| B-side =
| released = <!--{{Start date|YYYY|MM|DD}}-->
| format =
| recorded =
| studio =
| genre = <!--do not add unsourced genres-->
| length = <!--{{Duration|m=|s=}}-->
| label =
| writer = <!--for both music and lyrics-->
| producer =
| prev_title = <!--for a singles chronology-->
| prev_year =
| next_title =
| next_year =
}}
</pre>
===Full set of parameters===
<pre style="overflow:auto;">
{{subst:Infobox song
| name =
| cover = <!--just the file name-->
| cover_size =
| alt =
| border =
| caption =
| type =
| artist =
| album =
| EP =
| language = <!--only if not in English-->
| English_title =
| A-side =
| B-side =
| written =
| published =
| released = <!--{{Start date|YYYY|MM|DD}}-->
| format =
| recorded =
| studio =
| venue =
| genre = <!--do not add unsourced genres-->
| length = <!--{{Duration|m=|s=}}-->
| label =
| writer = <!--for both music and lyrics-->
| composer =
| lyricist =
| producer =
| chronology =
| prev_title = <!--for a singles chronology-->
| prev_year =
| next_title =
| next_year =
| tracks = <!--see "Track listing examples" section for album track listing options-->
| misc = <!--for use of {{Extra chronology}}, {{Extra track listing}}, {{Extra album cover}}, {{Audio sample}}, {{External music video}}-->
}}
</pre>
== Parameters ==
===name===
The title of the song. If not provided, the template uses the {{tl|PAGENAMEBASE}} of the page. Since it is not linked, [[WP:DAB|disambiguation]] terms, such as {{nowrap|"(song)"}}, {{nowrap|"(Beyoncé song)"}}, etc., are not needed.
===cover===
Add an image of a sheet music cover, picture sleeve, or other image appropriate for the song. First, one must be uploaded (see [[Wikipedia:Uploading images]] for details). Then, enter the file name (without File:) into the field, such as <code>[Image Name].jpg</code>.
===alt===
Use this field to provide alternative text or a description of the cover image for visually impaired readers. See [[WP:ALT]].
===caption===
If there is an image, a suitable caption may be added that follows [[MOS:CAPTION]] (begins with a capital letter, no period at end if it is a sentence fragment, etc.) Please note that if the image is ''unambiguously'' a picture sleeve or record label for the release that is described in the infobox, then it is "self-captioning", and no caption needs to be entered in this parameter.
===type===
Specify "single", "instrumental", "composition", "promo", etc., as shown in the code table below. The entry will be automatically linked to the corresponding article, so only the unlinked code is needed (the default is "song"). If an album track was later released as a single, '''use the most notable or best known'''. For example, "[[Stairway to Heaven]]" was released as a promo single in several markets and as a digital single in 2007, but became best known as a song from Led Zeppelin's fourth album. This field is used to generate the header and color; please note that it is not used for genre or format, which are described in the {{para|genre}} and {{para|format}} fields.
{{left|{{Infobox song/doc/type|color=Color|link=Link}}}}
{{clear}}
===artist===
If the article associates the original or primary rendition of the song with one artist, enter the name of the artist and link if they have a WP article. For band names that begin with "The", enter the lower case "the" ({{para|artist|the Beatles}}, rather than {{para|artist|The Beatles}}), consistent with [[:MOS:THEMUSIC]]. For traditional or historical songs, when the focus is not on a particular rendition, this should be left blank (alternatively, consider using [[Template:Infobox musical composition]]).
===album===
If the song was first released on an album, enter the name of the album and link. The template will italicize the album name and produce "from the album <var>Name</var>" in the header. If the song was originally released as a single '''well in advance''' of the album, {{para|album}} should not be used, since it is not ''from the album'', but later added to one. For example, "[[Beck's Bolero]]" and "[[Back on the Chain Gang]]" were released as singles about 16 months before they were added to albums and became well-known before the albums.
===EP===
If the song was first released on an EP or [[Extended play]], add the EP name in this field. The name will be italicized, etc., and should be used as described in the album subsection above. Please note: only album ''or'' EP should be used and depends on which one was issued first.
===language===
If the song is '''not''' in English, indicate the language (common languages should not be linked).
===English_title===
An English translation of the title may be included in this field.
===A-side===
If the article is about a song that was released as a [[A-side and B-side|B-side]] of a single, enter the name of the [[A-side and B-side|A-side]] and link as appropriate (do not use B-side). Quote marks will be added automatically.{{r|quotes}} For multiple entries, see Notes{{r|plainlist}} for details. For [[double A-side]]d singles, refer to the [[#Chronology for double-A-side singles|Chronology for double-A-side singles]] section below.
===B-side===
If the article is about the song that was issued as the A-side of a single, enter the name of the B-side in this field (do not add A-side). Add a link if it has an article; quote marks will be automatically added.{{r|quotes}} For multiple entries, see Notes{{r|plainlist}} for details. Generally, later releases or in secondary markets, reissues, etc., should only be included in the body of the article.
===written===
The year the song was written or composed may be added, if discussed in the article. This is usually used for historical songs, written before the advent of sheet music publishing or music recording.
===published===
The year the song was [[Music publisher (popular music)|published]] also may be included, if discussed in the article. This usually refers to [[Music publisher (sheet music)|sheet music published]] before the rise of music recording.
===released===
Indicate the commercial release date, whether it is a single, album, or other. Enter the date using {{tl|Start date}}. For example, use <code><nowiki>{{Start date|YYYY|MM|DD}}</nowiki></code> for the complete date, <code><nowiki>{{Start date|YYYY|MM}}</nowiki></code> if only year and month are known, or <code><nowiki>{{Start date|YYYY}}</nowiki></code> for just a year. For multiple entries, see Notes{{r|plainlist}} for details. Generally, later releases or in secondary markets, reissues, on compilations, etc., should only be included in the body of the article.
===format===
Indicate the way that the song was released, for example: [[7-inch single]], [[12-inch single]], [[CD single]], [[cassette single]], [[Music download|digital download]] (note the piped download link), etc. Generally, later releases or in secondary markets, reissues, on compilations, etc., should only be included in the body of the article. Do not use <code>{{!xt|"}}</code> or <code>{{!xt|″}}</code> (double quote) for inches, instead use <code>7-inch</code> rather than <code>7"</code> (if it is necessary to abbreviate, use <code>7 in</code>; see [[WP:Units]]). Numbers should be expressed in figures rather than spelled out (<code>10-inch</code> instead of <code>ten-inch</code>) and should not be used alone; an additional descriptor, such as 45{{nbsp}}rpm, single, record, etc., should follow. For multiple entries, see Notes{{r|flatlist}} for details.
===recorded===
Enter the date(s) the song was recorded. When there are many dates, it is best to summarize, using the month or range of months (e.g., January–March {{#expr:{{#time:Y}}-2}}). For multiple entries, see Notes{{r|plainlist}} for details. Add the location of the recording in the {{para|studio}} or {{para|venue}} field.
===studio===
If the song was recorded in a '''recording studio''', enter the name and location. Link the studio, but not well-known cities, states, or countries (see [[WP:OVERLINK]]). Remove "Studios" if it appears in the name – use <nowiki>[[Sound City Studios|Sound City]]</nowiki> rather than <nowiki>[[Sound City Studios]]</nowiki>. For multiple entries, see Notes{{r|flatlist}} for details. For "United States" and "United Kingdom", it is preferred that they be abbreviated "U.S." and "UK", but political subdivisions should never be (never "MA" for "Massachusetts", "ON" for "Ontario", etc.). See Notes{{r|location}} for details.
===venue===
For '''live recordings''', include the name of the venue (concert hall, stadium, etc.) and location. Link as appropriate. For "United States" and "United Kingdom", it is preferred that they be abbreviated "U.S." and "UK", but political subdivisions should never be (never "MA" for "Massachusetts", "ON" for "Ontario", etc.). See Notes{{r|location}} for details.
===genre===
The field should include the music genre(s) that best describes the song. It should come from a [[WP:RS|reliable source]] and also '''be stated and referenced''' in the body of the article; personal opinions or [[WP:original research|original research]] must be not be included. Note that most genres are not proper nouns and should not be capitalized. However, the first word in a list of multiple genres should be capitalized. For multiple entries, see Notes{{r|flatlist}} for details.
===length===
{{tl|Duration}} is used to enter the length of the song. The timing should be taken from the original album or single release, instead of reissues, downloads, etc. An hAudio [[microformat]] is added automatically for the first duration detected. The duration must contain a seconds value, or it will be incorrectly interpreted. For multiple entries, see Notes{{r|plainlist}} for details. If there is more than one length specified in the parameter, or the page appears in {{clc|Duration without hAudio microformat}}, use {{tl|Duration}}.
===label===
The name of the '''record company''' that issued the release may be included here. Generally, add later releases, those from different countries, reissues, etc., in the body of article instead of the infobox. Remove "Records" if it appears in the name – use <nowiki>[[Universal Records|Universal]]</nowiki> instead of <nowiki>[[Universal Records]]</nowiki>. For multiple entries, see Notes{{r|flatlist}} for details.
===writer===
Use this field if the '''music''' ''and'' '''lyrics''' were written by one person or, in the case of multiple writers, where a separate lyricist and composer have not been clearly identified by a [[WP:RS|reliable source]]. Do not use this field if the {{para|composer}} and {{para|lyricist}} fields are used. For multiple entries, see Notes{{r|flatlist}} for details.
===composer===
The person(s) who composed the song's '''music''', if different than the lyricist. If not differentiated in the article, use the {{para|writer}} field instead. For instrumentals, use this field only (in WP song articles, "song" (music with words) is not usually used to describe an "instrumental"). For multiple entries, see Notes{{r|flatlist}} for details.
===lyricist===
The person(s) who wrote the '''lyrics''', if different than the song's composer. If not differentiated in the article, use the {{para|writer}} field instead. For multiple entries, see Notes{{r|flatlist}} for details.
===producer===
Enter the name of the person(s) credited with the '''[[record producer|record production]]'''. This is someone who oversees the recording process and is usually different than the artist or songwriter. For multiple entries, see Notes{{r|flatlist}} for details.
===chronology===
This field and the following {{para|prev_title}} and {{para|next_title}} display the artist's immediate singles chronology. By leaving it blank, "The Artist singles chronology" is automatically displayed if any of the following fields are used. An '''alternative header''' may be displayed before the automatically produced "chronology", for example, <code>The Artist American</code>, <code>The Artist UK singles</code>, etc., produces "The Artist American chronology", "The Artist UK singles chronology", etc. Please note: if this field is used and a track listing is also wanted, it must be added using {{tl|Extra track listing}}.
If {{para|chronology}} is blank, the first letter of the artist name given in {{para|artist}} is automatically capitalized in the chronology header, so that band names starting with "The" appear as recommended in the [[MOS:THEMUSIC|Manual of Style]]. If the first letter of the artist's name is stylized in lower case, enter the artist's name in {{para|chronology}} as you wish it to appear. For example, {{para|artist|[[:letlive.]]}} should use {{para|chronology|[[:letlive.]]}} for it to also appear there in lower case.
===prev_title===
Enter the name of the artist's previous single. Quote marks will be added automatically;{{r|quotes}} link it if there is a WP article. Leave this blank if the artist has no previous single. For [[double A-side]]d singles, refer to the [[#Chronology for double-A-side singles|Chronology for double-A-side singles]] section below.
===prev_year===
Enter only the year the previous single was released. Following the WP [[Wikipedia:Manual of Style (dates and numbers)#Date formatting|date style guidelines]], years should not be linked within the chronology section. Leave this field blank if there is no previous single.
===next_title===
Enter the name of the artist's next single, if applicable. Quote marks will be added automatically;{{r|quotes}} link it if there is a WP article.
===next_year===
Enter only the year the next single was issued, if applicable.
===tracks===
Several track listing options are available. See the [[#Track listing examples|Track listing examples]] section below for explanations and codes.
===misc===
This is '''not a space for miscellaneous information or comments'''. It allows for the use of subtemplates, including {{tl|Extra chronology}}, {{tl|Extra track listing}}, {{tl|Extra album cover}}, {{tl|Audio sample}}, and {{tl|External music video}}. Please refer to the template pages for explanations on their use.
==Track listing examples==
Not all infoboxes should include album track listings. Articles about traditional or historical songs might not focus on a particular recording, so details about a later rendition, including album releases, are inappropriate for an infobox. Additionally, there may already be an album track listing with links to other songs in a [[WP:NAV|navigation template]] or [[WP:NAVBOX|navbox]] at the end of the article. These include an album navbox (for example, {{tl|Thriller (album)}}), an artist song navbox ({{tl|Rihanna songs}}), or an artist navbox that includes songs ({{tl|Robert Johnson}}).
An album track listing may be added to infobox song as long as the following criteria are met: 1) <strong>the article does not have a navbox in which the song appears</strong>; and 2) a majority of the album's songs are linked to WP articles. Currently, three different approaches to listing album tracks are found in infobox song.
===Track listing using a separate sub-template===
{{Infobox song
| name = The Song
| cover =
| alt =
| type =
| artist = the Artist
| album = That Album
| released = {{Start date|{{#expr:{{#time:Y}}-1}}|04|01}}
| format =
| recorded = January 1–10, {{#expr:{{#time:Y}}-1}}
| studio = [[Record Plant]], New York City
| venue =
| genre = [[Contemporary R&B]]
| length = 3:01
| label = [[Columbia Records|Columbia]]
| writer = The Artist
| producer = The Producer
| tracks = {{Rumours tracks}}
}}
If a separate album track listing sub-template has been created, it may be added to the {{para|tracks}} of the infobox. Using such a template may be more convenient for multi-disc albums or those with many tracks. A header with the album name will be automatically generated, along with the number of tracks. The song title will not be linked, but will appear in <strong>bold</strong>.
The example to the right uses {{tl|Rumours tracks}} to demonstrate. To see its use in actual song infobox, click on the song links. Please note, if a singles chronology is also used in the infobox ({{para|prev_title}}, etc.), {{tl|Extra track listing}} must be used in the {{para|misc}} field (refer to that [[Template:Extra track listing#Usage]] for the code and explanation).
{{clear}}
===Track listing using the hidden template===
{{Infobox song
| name = The Song
| cover =
| alt =
| type =
| artist = the Artist
| album = That Album
| released = {{Start date|{{#expr:{{#time:Y}}-1}}|04|01}}
| format =
| recorded = January 1–10, {{#expr:{{#time:Y}}-1}}
| studio = [[Record Plant]], New York City
| venue =
| genre = [[Contemporary R&B]]
| length = 3:01
| label = [[Columbia Records|Columbia]]
| writer = The Artist
| producer = The Producer
| tracks = {{Hidden
| title = 5 tracks
| text =
;Side one
# "[[21st Century Schizoid Man]]"
# "[[I Talk to the Wind]]"
# "[[Epitaph (King Crimson song)|Epitaph]]"
;Side two
# "[[Moonchild (King Crimson song)|Moonchild]]"
# "[[The Court of the Crimson King]]"
}}
}}
A second option does not require a separate album track listing sub-template to be created. Instead, the {{tl|Hidden}} template is placed directly into the infobox in the {{para|tracks}} field, then the tracks are listed. This may be copied and added to other songs infoboxes from the same album.
The example to the right uses this approach. To see its use in actual infoboxes, click on the song titles. Also, please note that if a singles chronology is also used in the infobox ({{para|prev_title}}, etc.), {{tl|Extra track listing}} must be used in the {{para|misc}} field (refer to that [[Template:Extra track listing#Usage]] for the code and explanation).
;Code
<pre>{{Infobox song
...
| tracks = {{Hidden
| title =
| text =
#
#
# etc.
}}
</pre>
;title
Enter the number of tracks, such as "10 tracks". A header will be generated automatically, for example "''That Album'' track listing".
;text
In this field, add the album tracks, using <code>#</code> to generate a sequential numbering. The song titles should be in "quotes", with the article track also in <strong>bold</strong>. Link any track that has its own WP article, except for when the song is the subject of the article.
For multi-disc [[Compact Disc Digital Audio|CD]]s, subheadings for "Disc one", "Disc two", etc. may be included. Similarly, subheadings such as "Side one" or "Side A" may be added for [[LP record]]s and [[Extended play|EPs]]. To ensure that the track numbering continues sequentially after a subheading (rather than starting again at "1"), use <code><nowiki><li value="x"></nowiki></code> where "x"=the next track number.
;Code
<pre>{{Infobox song
...
| tracks = {{Hidden
| title =
| text =
;Disc one
#
#
# etc.
;Disc two
#<li value=>
#
#
# etc.
}}
</pre>
{{Clear}}
==Chronology for double-A-side singles==
{{Infobox song
| name = The Single
| cover =
| alt =
| type = single
| artist = the Artist
| album = That Album
| A-side = "Other Side" ([[double A-side]])
| released = {{Start date|{{#expr:{{#time:Y}}-1}}|04|01}}
| format = [[CD single]]
| recorded = January 1–10, {{#expr:{{#time:Y}}-1}}
| studio = [[Record Plant]], New York City
| venue =
| genre = [[Contemporary R&B]]
| length = 3:01
| label = [[Columbia Records|Columbia]]
| writer = The Artist
| producer = The Producer
| chronology = The Artist double A-side
| prev_title = Last Single
| prev_title2 = Last Other
| prev_year = {{#expr:{{#time:Y}}-2}}
| title =
| title2 = Other Side
| next_title = Next Single
| next_title2 = Next Other
| next_year = {{#time:Y}}
}}
;Code :
<pre>{{Infobox song
...
| A-side =
| chronology =
| prev_title =
| prev_title2 =
| prev_year =
| title2 =
| next_title =
| next_title2 =
| next_year =
}}
</pre>
;A-side
Enter the name of the second- or flip-side of the current or article title.
;chronology
Use this field to provide an '''alternative header''' to the automatically generated "The Artist singles chronology". Enter <code>The Artist double A-side singles</code> to display "The Artist double A-side singles chronology", etc.
;prev_title
Enter the name of the previous single. If it has a WP article, add a link.
;prev_title2
If the previous is a double A-side single, enter the name of the previous single second- or flip-side and link as appropriate.
;prev_year
Enter only the year the previous single was released.
;title2
If it is a double A-side single, enter the name of the second- or flip-side of current or article title. (The current or article title with be automatically generated with quotes and in bold and will appear as the first of the two; the year is also generated from the {{para|released}} year date.)
;next_title
Enter the name of the next single. If it has a article, add a link.
;next_title2
Enter the name of the second-or flip side of next-single, if it is a double-A. Link as appropriate.
;next_year
Enter only the year the next single was released.
== Notes ==
{{reflist |refs=
<ref name="quotes">If any details besides the actual song title (country, etc.) are added, quote marks need to be added manually to the song title. Additionally, for {{para|A-side}} and {{para|B-side}}, quote marks need to be added for each title if there is more than one.
</ref>
<ref name="plainlist"> For multiple entries, this parameter uses <code>class=plainlist</code>. Format the items as a normal bulleted list; don't use other list templates or <nowiki><br/></nowiki>. For example:<pre>
| studio =
*First item
*Second item
*Third item</pre>
will be displayed as a vertical unbulleted list:
{|style="border:1px solid #ccc"
|style="vertical-align:top"|'''Studio'''{{space|3}}||{{ublist|First item|Second item|Third item}}
|}
</ref>
<ref name="flatlist">For short horizontal lists of two or three items, comma separators are acceptable, but for longer lists the use of the <code>class=hlist</code> is preferred as it offers a benefit to users of screen readers (see [[Wikipedia:Accessibility]] for more information on [[Web Content Accessibility Guidelines]]). To use it, format the items as a normal bulleted list; don't use other list templates or <nowiki><br/></nowiki>. For example:<pre>
| genre =
*Item one
*Item two
*Item three</pre>
will be displayed as a horizontal list separated by middots:
{|style="border:1px solid #ccc"
|'''Genre'''{{space|3}}
|class="hlist"|
*Item one
*Item two
*Item three
|}
</ref>
<ref name="location">As per RfC "Naming countries in infoboxes": When identifying a location, city or region in the United States or United Kingdom, the preferred approach is to use the country abbreviations allowed by [[MOS:ACRO]], such as "Portsmouth, New Hampshire, U.S." and "Cardiff, Wales, UK", rather than spelling out the full country name. Avoid using abbreviations for states or provinces in all nations. {{xt|New Hampshire}} rather than {{!xt|NH}}, {{xt|New South Wales}} rather than {{!xt|NSW}}, or {{xt|British Columbia}} rather than {{!xt|BC}} (see [[MOS:POSTABBR]]). Cities such as New York City and London may be rendered as "New York City, U.S." and "London, UK" or simply "New York City" and "London". Also, these should not be linked when the context makes it clear (see [[MOS:OVERLINK]]). If only the country name is included, it may be written out in full.
</ref>
|}
}}
{{basepage subpage|
[[Category:Music infobox templates|Song]]
[[Category:WikiProject Songs templates]]
[[Category:Templates that add a tracking category]]
}}
==TemplateData==
{{Collapse top|title=[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
{{TemplateData header|noheader=1}}
<templatedata>
{
"params": {
"name": {
"aliases": [
"Name",
"title"
],
"label": "Name",
"description": "The name or title of the song.",
"type": "string",
"default": "(PAGENAME)",
"required": true
},
"cover": {
"aliases": [
"Cover",
"image"
],
"label": "Cover",
"description": "An appropriate image, such as a sheet music or single picture sleeve cover.",
"example": "A file name, without the File: <NAME.jpg>",
"type": "string"
},
"cover_size": {
"aliases": [
"Cover size",
"cover size"
],
"label": "Cover_size",
"type": "string"
},
"alt": {
"aliases": [
"Alt"
],
"label": "Alt",
"description": "Alternative text for the cover image, to describe it to visually impaired readers.",
"type": "string"
},
"border": {
"aliases": [
"Border"
],
"label": "Border",
"description": "Set to yes to put a 1 pixel border around the image.",
"type": "string"
},
"caption": {
"aliases": [
"Caption"
],
"label": "Caption",
"description": "Caption for the image; this will overwrite automatically generated <\"Song\" cover> when a file is added to the \"caption\" field",
"example": "Sheet music cover, 1920.",
"type": "string"
},
"comment": {
"aliases": [
"Comment"
],
"label": "Comment",
"type": "string",
"deprecated": "This parameter is no longer used."
},
"type": {
"aliases": [
"Type"
],
"label": "Type",
"description": "Specify \"song\", \"single\", \"Instrumental\", \"Composition\", etc. This generates the header and color.",
"type": "string",
"suggested": true
},
"artist": {
"aliases": [
"Artist",
"original_artist"
],
"label": "Artist",
"description": "The name of the artist.",
"type": "string",
"suggested": true
},
"album": {
"aliases": [
"Album",
"from_album",
"from Album"
],
"label": "Album",
"description": "The name of the album on which the song originally appeared.",
"type": "string"
},
"EP": {
"label": "EP",
"description": "The name of the EP on which the song originally appeared. Only use album or EP; both will not be displayed.",
"type": "string"
},
"English_title": {
"aliases": [
"english_title"
],
"label": "English title",
"description": "The English translation of the name of the song, if it is in another language.",
"type": "string"
},
"written": {
"aliases": [
"Written"
],
"label": "Written",
"description": "The date the song was written; this is usually used for songs created before music publishing or recording",
"type": "string"
},
"published": {
"aliases": [
"Published"
],
"label": "Published",
"description": "The date the song was published; this is usually used for songs created before the rise of music recording",
"type": "string"
},
"released": {
"aliases": [
"Released"
],
"label": "Released",
"description": "For recorded music: The earliest known date of commercial release, using a single occurrence, using {{Start date}}. For April 1, 2015, enter {{Start date|2015|04|01}}.",
"type": "string"
},
"format": {
"aliases": [
"Format"
],
"label": "Format",
"description": "For recorded music: the way that the song was released, e.g., 7-inch single, LP record, EP, CD, cassette, digital download (note the piped download link), etc.",
"type": "string"
},
"A-side": {
"aliases": [
"a-side"
],
"label": "A-side",
"description": "For singles: the name of A-side of the current or title single.",
"type": "string"
},
"B-side": {
"aliases": [
"b-side"
],
"label": "B-side",
"description": "For singles: the name of the B-side of the current or title single. Only one of the fields 'A-side' or 'B-side' should be used.",
"type": "string"
},
"recorded": {
"aliases": [
"Recorded"
],
"label": "Recorded",
"description": "The date(s) the song was recorded.",
"type": "string"
},
"venue": {
"aliases": [
"Venue"
],
"label": "Venue",
"description": "For live recordings, include the name of the venue (concert hall, stadium, etc.) and location.",
"type": "string"
},
"studio": {
"aliases": [
"Studio"
],
"label": "Studio",
"description": "If the song was recorded in a recording studio, enter the name and location.",
"type": "string"
},
"genre": {
"aliases": [
"Genre"
],
"label": "Genre",
"description": "The genre(s) that best describes the song. This must not be original research, and should be stated and referenced in the article.",
"type": "string",
"suggested": true
},
"length": {
"aliases": [
"Length"
],
"label": "Length",
"description": "The length of the song, using {{Duration}}. To display 3 minutes 45 seconds as 3:45, enter {{Duration|m=3|s=45}}.",
"type": "number"
},
"label": {
"aliases": [
"Label"
],
"label": "Label",
"description": "The record company label which originally released the recording. Releases in other territories, different formats, reissues, etc., should be included in the body of the article, not in this field.",
"type": "string"
},
"writer": {
"aliases": [
"Writer",
"songwriter",
"Songwriter"
],
"label": "Songwriter/Writer",
"description": "The name of the person(s) credited with writing both the music and lyrics for the song. Where a separate lyricist and composer have been clearly identified by a reliable source, use the \"composer\" and \"lyricist\" fields instead.",
"type": "string",
"suggested": true
},
"composer": {
"aliases": [
"Composer"
],
"label": "Composer",
"description": "The name of the person(s) who composed the song's music, if different than the lyricist. If not differentiated in the article, use the \"songwriter/writer\" field instead.",
"type": "string"
},
"lyricist": {
"aliases": [
"Lyricist"
],
"label": "Lyricist",
"description": "The person(s) who wrote the lyrics, if different than the song's composer. If not differentiated in the article, use the \"songwiter/writer\" field instead.",
"type": "string"
},
"language": {
"aliases": [
"Language"
],
"label": "Language",
"description": "Only if the song is not in English, indicate the language.",
"type": "string"
},
"producer": {
"aliases": [
"Producer"
],
"label": "Producer",
"description": "The person(s) who is credited with the record production.",
"type": "string"
},
"chronology": {
"aliases": [
"Chronology"
],
"label": "Chronology",
"description": "For singles: Header for the chronology section.",
"type": "string",
"default": "(Artist name) singles chronology"
},
"prev_title": {
"label": "Prev_title",
"description": "The name of the previous single in the artist's chronolgy.",
"type": "string"
},
"prev_title2": {
"label": "Prev_title2",
"description": "The name of the previous single in the artist's chronolgy.",
"type": "string"
},
"prev_year": {
"label": "Prev_year",
"description": "The year of the previous single in the artist's chronology.",
"type": "number"
},
"title": {
"label": "Title",
"description": "The name of the current or subject single.",
"type": "string"
},
"title2": {
"label": "Title2",
"description": "For a double A-side single: the name of the second or flip-side of the current single in the artist's chronology.",
"type": "string"
},
"year": {
"label": "Year",
"description": "To change the automatically generated year: the year of the single in the artist's chronology.",
"type": "number"
},
"next_title": {
"label": "Next_title",
"description": "The name of the next single in the artist's chronology.",
"type": "string"
},
"next_title2": {
"label": "Next_title2",
"description": "For a double A-side single: the name of the second- or flip-side of the next single.",
"type": "string"
},
"next_year": {
"label": "Next_year",
"description": "The year of the next single in the artist's chronology.",
"type": "number"
},
"tracks": {
"aliases": [
"Tracks"
],
"label": "Tracks",
"description": "To add a full-album track listing.",
"type": "string"
},
"prev_track": {
"label": "Prev_track",
"type": "string",
"deprecated": "No longer used."
},
"track_no": {
"label": "Track_no",
"type": "number",
"deprecated": "No longer used."
},
"next_track": {
"label": "Next_track",
"type": "string",
"deprecated": "No longer used."
},
"ISWC": {
"label": "ISWC",
"type": "string",
"deprecated": "No longer used."
},
"prev": {
"label": "Prev",
"type": "string",
"deprecated": "No longer used."
},
"prev_no": {
"label": "Prev_no",
"type": "number",
"deprecated": "No longer used."
},
"next": {
"label": "Next",
"type": "string",
"deprecated": "No longer used."
},
"next_no": {
"label": "Next_no",
"type": "number",
"deprecated": "No longer used."
},
"misc": {
"aliases": [
"Misc"
],
"label": "Misc",
"description": "To add extra subtemplates, such as {{Extra chronology}}, {{Extra track listing}}, {{Extra album cover}}, {{Audio sample}}, etc.",
"type": "string"
}
},
"description": "An infobox for songs",
"paramOrder": [
"name",
"cover",
"cover_size",
"alt",
"border",
"caption",
"type",
"artist",
"album",
"EP",
"language",
"English_title",
"A-side",
"B-side",
"written",
"published",
"released",
"format",
"recorded",
"studio",
"venue",
"genre",
"length",
"label",
"writer",
"composer",
"lyricist",
"producer",
"chronology",
"prev_title",
"prev_title2",
"prev_year",
"title",
"title2",
"year",
"next_title",
"next_title2",
"next_year",
"tracks",
"prev_track",
"track_no",
"next_track",
"misc",
"ISWC",
"comment",
"prev",
"prev_no",
"next",
"next_no"
]
}
</templatedata>
{{Collapse bottom}}
== Tracking categories ==
* {{clc|Pages using infobox song with deprecated parameters}}
* {{clc|Pages using infobox song with unknown parameters}}
* {{clc|Infobox song with A-side or B-side quote formatting fix needed}}
* {{clc|Song articles with missing songwriters}}
* {{clc|Song articles with both composer and songwriter}}
* {{clc|Song articles with both lyricist and songwriter}}
* {{clc|Song articles with lyricist but not composer}}
* {{clc|Music infoboxes with unknown value for type}}
* {{clc|Music infoboxes with malformed table placement}}
* {{clc|Music infoboxes with Module:String errors}}
== See also ==
* [[Wikipedia:WikiProject Songs]]
* {{tl|Infobox album}}
{{Music infobox header}}
{{Lua|Module:Infobox|Module:InfoboxImage|Module:String|Module:Check for unknown parameters}}
{{Infobox song
| name = The Single
| cover = Nocover.svg
| alt =
| caption = Single picture sleeve
| type = single
| artist = the Artist
| album =
| B-side = Other Side
| released = {{Start date|{{#expr:{{#time:Y}}-1}}|04|01}}
| format = [[CD single]]
| recorded = January 1–10, {{#expr:{{#time:Y}}-1}}
| studio = [[Record Plant]], New York City
| venue =
| genre = [[Contemporary R&B]]
| length = 3:01
| label = [[Columbia Records|Columbia]]
| writer = The Artist
| producer = The Producer
| prev_title = Last Single
| prev_year = {{#expr:{{#time:Y}}-2}}
| next_title = Next Single
| next_year = {{#time:Y}}
}}
{{Infobox song
| name = The Song
| cover = Nocover.svg
| alt =
| caption = Sheet music cover
| type = [[Song]]
| artist = the Artist
| album = That Album
| released = {{Start date|{{#expr:{{#time:Y}}-1}}|04|01}}
| format = [[CD]]
| recorded = January 1–10, {{#expr:{{#time:Y}}-1}}
| studio =
| venue = [[Madison Square Garden]]
| genre = [[Contemporary R&B]]
| length = 3:01
| label = [[Columbia Records|Columbia]]
| composer = Another Artist
| lyricist = The Artist
| producer = The Producer
}}
Articles about [[song]]s often include an [[infobox]] that provides an overview or summary of the song. Generally, Infobox song is oriented more towards recorded music that has been commercially released. Other infoboxes, such as {{tl|Infobox musical composition}} and {{tl|Infobox anthem}} may be better suited to traditional or historical songs. The examples to the right are the infobox filled in with the most commonly used parameters.
An infobox provides [[WP:INFOBOXPURPOSE|key facts]] as discussed in the article—it should not be too detailed or take up too much of the article space. It should only contain items, such as genres or songwriters, that are discussed in the article (or have [[WP:CITE|citation]]s to [[WP:RS|reliable source]]s).
The code below can be copied and completed with information pertaining to particular song articles. The Parameters section provides guidance on using the fields.
__TOC__
== Code ==
The first template code below includes the most commonly used infobox parameters. If there is no information in the article to support the field, leave it blank. Remove the <code><nowiki><!--</nowiki></code> and <code><nowiki>--></nowiki></code> to use the {{tl|Start date}} and {{tl|Duration}} subtemplates.
The second includes the full set of parameters; most articles will not need many of the fields and they may be left blank or removed. Please note that adding fields other than those listed, such as {{para|arranger}} or {{para|recording engineer}}, will not be displayed.
If this template is substituted, it will return a cleaned-up copy of itself with unnecessary parameters removed and deprecated parameters replaced. Parameter indentation will also automatically be fixed.
===Most commonly used parameters===
<pre style="overflow:auto;">
{{subst:Infobox song
| name =
| cover = <!--just the file name-->
| type =
| artist =
| album =
| B-side =
| released = <!--{{Start date|YYYY|MM|DD}}-->
| format =
| recorded =
| studio =
| genre = <!--do not add unsourced genres-->
| length = <!--{{Duration|m=|s=}}-->
| label =
| writer = <!--for both music and lyrics-->
| producer =
| prev_title = <!--for a singles chronology-->
| prev_year =
| next_title =
| next_year =
}}
</pre>
===Full set of parameters===
<pre style="overflow:auto;">
{{subst:Infobox song
| name =
| cover = <!--just the file name-->
| cover_size =
| alt =
| border =
| caption =
| type =
| artist =
| album =
| EP =
| language = <!--only if not in English-->
| English_title =
| A-side =
| B-side =
| written =
| published =
| released = <!--{{Start date|YYYY|MM|DD}}-->
| format =
| recorded =
| studio =
| venue =
| genre = <!--do not add unsourced genres-->
| length = <!--{{Duration|m=|s=}}-->
| label =
| writer = <!--for both music and lyrics-->
| composer =
| lyricist =
| producer =
| chronology =
| prev_title = <!--for a singles chronology-->
| prev_year =
| next_title =
| next_year =
| tracks = <!--see "Track listing examples" section for album track listing options-->
| misc = <!--for use of {{Extra chronology}}, {{Extra track listing}}, {{Extra album cover}}, {{Audio sample}}, {{External music video}}-->
}}
</pre>
== Parameters ==
===name===
The title of the song. If not provided, the template uses the {{tl|PAGENAMEBASE}} of the page. Since it is not linked, [[WP:DAB|disambiguation]] terms, such as {{nowrap|"(song)"}}, {{nowrap|"(Beyoncé song)"}}, etc., are not needed.
===cover===
Add an image of a sheet music cover, picture sleeve, or other image appropriate for the song. First, one must be uploaded (see [[Wikipedia:Uploading images]] for details). Then, enter the file name (without File:) into the field, such as <code>[Image Name].jpg</code>.
===alt===
Use this field to provide alternative text or a description of the cover image for visually impaired readers. See [[WP:ALT]].
===caption===
If there is an image, a suitable caption may be added that follows [[MOS:CAPTION]] (begins with a capital letter, no period at end if it is a sentence fragment, etc.) Please note that if the image is ''unambiguously'' a picture sleeve or record label for the release that is described in the infobox, then it is "self-captioning", and no caption needs to be entered in this parameter.
===type===
Specify "single", "instrumental", "composition", "promo", etc., as shown in the code table below. The entry will be automatically linked to the corresponding article, so only the unlinked code is needed (the default is "song"). If an album track was later released as a single, '''use the most notable or best known'''. For example, "[[Stairway to Heaven]]" was released as a promo single in several markets and as a digital single in 2007, but became best known as a song from Led Zeppelin's fourth album. This field is used to generate the header and color; please note that it is not used for genre or format, which are described in the {{para|genre}} and {{para|format}} fields.
{{left|{{Infobox song/doc/type|color=Color|link=Link}}}}
{{clear}}
===artist===
If the article associates the original or primary rendition of the song with one artist, enter the name of the artist and link if they have a WP article. For band names that begin with "The", enter the lower case "the" ({{para|artist|the Beatles}}, rather than {{para|artist|The Beatles}}), consistent with [[:MOS:THEMUSIC]]. For traditional or historical songs, when the focus is not on a particular rendition, this should be left blank (alternatively, consider using [[Template:Infobox musical composition]]).
===album===
If the song was first released on an album, enter the name of the album and link. The template will italicize the album name and produce "from the album <var>Name</var>" in the header. If the song was originally released as a single '''well in advance''' of the album, {{para|album}} should not be used, since it is not ''from the album'', but later added to one. For example, "[[Beck's Bolero]]" and "[[Back on the Chain Gang]]" were released as singles about 16 months before they were added to albums and became well-known before the albums.
===EP===
If the song was first released on an EP or [[Extended play]], add the EP name in this field. The name will be italicized, etc., and should be used as described in the album subsection above. Please note: only album ''or'' EP should be used and depends on which one was issued first.
===language===
If the song is '''not''' in English, indicate the language (common languages should not be linked).
===English_title===
An English translation of the title may be included in this field.
===A-side===
If the article is about a song that was released as a [[A-side and B-side|B-side]] of a single, enter the name of the [[A-side and B-side|A-side]] and link as appropriate (do not use B-side). Quote marks will be added automatically.{{r|quotes}} For multiple entries, see Notes{{r|plainlist}} for details. For [[double A-side]]d singles, refer to the [[#Chronology for double-A-side singles|Chronology for double-A-side singles]] section below.
===B-side===
If the article is about the song that was issued as the A-side of a single, enter the name of the B-side in this field (do not add A-side). Add a link if it has an article; quote marks will be automatically added.{{r|quotes}} For multiple entries, see Notes{{r|plainlist}} for details. Generally, later releases or in secondary markets, reissues, etc., should only be included in the body of the article.
===written===
The year the song was written or composed may be added, if discussed in the article. This is usually used for historical songs, written before the advent of sheet music publishing or music recording.
===published===
The year the song was [[Music publisher (popular music)|published]] also may be included, if discussed in the article. This usually refers to [[Music publisher (sheet music)|sheet music published]] before the rise of music recording.
===released===
Indicate the commercial release date, whether it is a single, album, or other. Enter the date using {{tl|Start date}}. For example, use <code><nowiki>{{Start date|YYYY|MM|DD}}</nowiki></code> for the complete date, <code><nowiki>{{Start date|YYYY|MM}}</nowiki></code> if only year and month are known, or <code><nowiki>{{Start date|YYYY}}</nowiki></code> for just a year. For multiple entries, see Notes{{r|plainlist}} for details. Generally, later releases or in secondary markets, reissues, on compilations, etc., should only be included in the body of the article.
===format===
Indicate the way that the song was released, for example: [[7-inch single]], [[12-inch single]], [[CD single]], [[cassette single]], [[Music download|digital download]] (note the piped download link), etc. Generally, later releases or in secondary markets, reissues, on compilations, etc., should only be included in the body of the article. Do not use <code>{{!xt|"}}</code> or <code>{{!xt|″}}</code> (double quote) for inches, instead use <code>7-inch</code> rather than <code>7"</code> (if it is necessary to abbreviate, use <code>7 in</code>; see [[WP:Units]]). Numbers should be expressed in figures rather than spelled out (<code>10-inch</code> instead of <code>ten-inch</code>) and should not be used alone; an additional descriptor, such as 45{{nbsp}}rpm, single, record, etc., should follow. For multiple entries, see Notes{{r|flatlist}} for details.
===recorded===
Enter the date(s) the song was recorded. When there are many dates, it is best to summarize, using the month or range of months (e.g., January–March {{#expr:{{#time:Y}}-2}}). For multiple entries, see Notes{{r|plainlist}} for details. Add the location of the recording in the {{para|studio}} or {{para|venue}} field.
===studio===
If the song was recorded in a '''recording studio''', enter the name and location. Link the studio, but not well-known cities, states, or countries (see [[WP:OVERLINK]]). Remove "Studios" if it appears in the name – use <nowiki>[[Sound City Studios|Sound City]]</nowiki> rather than <nowiki>[[Sound City Studios]]</nowiki>. For multiple entries, see Notes{{r|flatlist}} for details. For "United States" and "United Kingdom", it is preferred that they be abbreviated "U.S." and "UK", but political subdivisions should never be (never "MA" for "Massachusetts", "ON" for "Ontario", etc.). See Notes{{r|location}} for details.
===venue===
For '''live recordings''', include the name of the venue (concert hall, stadium, etc.) and location. Link as appropriate. For "United States" and "United Kingdom", it is preferred that they be abbreviated "U.S." and "UK", but political subdivisions should never be (never "MA" for "Massachusetts", "ON" for "Ontario", etc.). See Notes{{r|location}} for details.
===genre===
The field should include the music genre(s) that best describes the song. It should come from a [[WP:RS|reliable source]] and also '''be stated and referenced''' in the body of the article; personal opinions or [[WP:original research|original research]] must be not be included. Note that most genres are not proper nouns and should not be capitalized. However, the first word in a list of multiple genres should be capitalized. For multiple entries, see Notes{{r|flatlist}} for details.
===length===
{{tl|Duration}} is used to enter the length of the song. The timing should be taken from the original album or single release, instead of reissues, downloads, etc. An hAudio [[microformat]] is added automatically for the first duration detected. The duration must contain a seconds value, or it will be incorrectly interpreted. For multiple entries, see Notes{{r|plainlist}} for details. If there is more than one length specified in the parameter, or the page appears in {{clc|Duration without hAudio microformat}}, use {{tl|Duration}}.
===label===
The name of the '''record company''' that issued the release may be included here. Generally, add later releases, those from different countries, reissues, etc., in the body of article instead of the infobox. Remove "Records" if it appears in the name – use <nowiki>[[Universal Records|Universal]]</nowiki> instead of <nowiki>[[Universal Records]]</nowiki>. For multiple entries, see Notes{{r|flatlist}} for details.
===writer===
Use this field if the '''music''' ''and'' '''lyrics''' were written by one person or, in the case of multiple writers, where a separate lyricist and composer have not been clearly identified by a [[WP:RS|reliable source]]. Do not use this field if the {{para|composer}} and {{para|lyricist}} fields are used. For multiple entries, see Notes{{r|flatlist}} for details.
===composer===
The person(s) who composed the song's '''music''', if different than the lyricist. If not differentiated in the article, use the {{para|writer}} field instead. For instrumentals, use this field only (in WP song articles, "song" (music with words) is not usually used to describe an "instrumental"). For multiple entries, see Notes{{r|flatlist}} for details.
===lyricist===
The person(s) who wrote the '''lyrics''', if different than the song's composer. If not differentiated in the article, use the {{para|writer}} field instead. For multiple entries, see Notes{{r|flatlist}} for details.
===producer===
Enter the name of the person(s) credited with the '''[[record producer|record production]]'''. This is someone who oversees the recording process and is usually different than the artist or songwriter. For multiple entries, see Notes{{r|flatlist}} for details.
===chronology===
This field and the following {{para|prev_title}} and {{para|next_title}} display the artist's immediate singles chronology. By leaving it blank, "The Artist singles chronology" is automatically displayed if any of the following fields are used. An '''alternative header''' may be displayed before the automatically produced "chronology", for example, <code>The Artist American</code>, <code>The Artist UK singles</code>, etc., produces "The Artist American chronology", "The Artist UK singles chronology", etc. Please note: if this field is used and a track listing is also wanted, it must be added using {{tl|Extra track listing}}.
If {{para|chronology}} is blank, the first letter of the artist name given in {{para|artist}} is automatically capitalized in the chronology header, so that band names starting with "The" appear as recommended in the [[MOS:THEMUSIC|Manual of Style]]. If the first letter of the artist's name is stylized in lower case, enter the artist's name in {{para|chronology}} as you wish it to appear. For example, {{para|artist|[[:letlive.]]}} should use {{para|chronology|[[:letlive.]]}} for it to also appear there in lower case.
===prev_title===
Enter the name of the artist's previous single. Quote marks will be added automatically;{{r|quotes}} link it if there is a WP article. Leave this blank if the artist has no previous single. For [[double A-side]]d singles, refer to the [[#Chronology for double-A-side singles|Chronology for double-A-side singles]] section below.
===prev_year===
Enter only the year the previous single was released. Following the WP [[Wikipedia:Manual of Style (dates and numbers)#Date formatting|date style guidelines]], years should not be linked within the chronology section. Leave this field blank if there is no previous single.
===next_title===
Enter the name of the artist's next single, if applicable. Quote marks will be added automatically;{{r|quotes}} link it if there is a WP article.
===next_year===
Enter only the year the next single was issued, if applicable.
===tracks===
Several track listing options are available. See the [[#Track listing examples|Track listing examples]] section below for explanations and codes.
===misc===
This is '''not a space for miscellaneous information or comments'''. It allows for the use of subtemplates, including {{tl|Extra chronology}}, {{tl|Extra track listing}}, {{tl|Extra album cover}}, {{tl|Audio sample}}, and {{tl|External music video}}. Please refer to the template pages for explanations on their use.
==Track listing examples==
Not all infoboxes should include album track listings. Articles about traditional or historical songs might not focus on a particular recording, so details about a later rendition, including album releases, are inappropriate for an infobox. Additionally, there may already be an album track listing with links to other songs in a [[WP:NAV|navigation template]] or [[WP:NAVBOX|navbox]] at the end of the article. These include an album navbox (for example, {{tl|Thriller (album)}}), an artist song navbox ({{tl|Rihanna songs}}), or an artist navbox that includes songs ({{tl|Robert Johnson}}).
An album track listing may be added to infobox song as long as the following criteria are met: 1) <strong>the article does not have a navbox in which the song appears</strong>; and 2) a majority of the album's songs are linked to WP articles. Currently, three different approaches to listing album tracks are found in infobox song.
===Track listing using a separate sub-template===
{{Infobox song
| name = The Song
| cover =
| alt =
| type =
| artist = the Artist
| album = That Album
| released = {{Start date|{{#expr:{{#time:Y}}-1}}|04|01}}
| format =
| recorded = January 1–10, {{#expr:{{#time:Y}}-1}}
| studio = [[Record Plant]], New York City
| venue =
| genre = [[Contemporary R&B]]
| length = 3:01
| label = [[Columbia Records|Columbia]]
| writer = The Artist
| producer = The Producer
| tracks = {{Rumours tracks}}
}}
If a separate album track listing sub-template has been created, it may be added to the {{para|tracks}} of the infobox. Using such a template may be more convenient for multi-disc albums or those with many tracks. A header with the album name will be automatically generated, along with the number of tracks. The song title will not be linked, but will appear in <strong>bold</strong>.
The example to the right uses {{tl|Rumours tracks}} to demonstrate. To see its use in actual song infobox, click on the song links. Please note, if a singles chronology is also used in the infobox ({{para|prev_title}}, etc.), {{tl|Extra track listing}} must be used in the {{para|misc}} field (refer to that [[Template:Extra track listing#Usage]] for the code and explanation).
{{clear}}
===Track listing using the hidden template===
{{Infobox song
| name = The Song
| cover =
| alt =
| type =
| artist = the Artist
| album = That Album
| released = {{Start date|{{#expr:{{#time:Y}}-1}}|04|01}}
| format =
| recorded = January 1–10, {{#expr:{{#time:Y}}-1}}
| studio = [[Record Plant]], New York City
| venue =
| genre = [[Contemporary R&B]]
| length = 3:01
| label = [[Columbia Records|Columbia]]
| writer = The Artist
| producer = The Producer
| tracks = {{Hidden
| title = 5 tracks
| text =
;Side one
# "[[21st Century Schizoid Man]]"
# "[[I Talk to the Wind]]"
# "[[Epitaph (King Crimson song)|Epitaph]]"
;Side two
# "[[Moonchild (King Crimson song)|Moonchild]]"
# "[[The Court of the Crimson King]]"
}}
}}
A second option does not require a separate album track listing sub-template to be created. Instead, the {{tl|Hidden}} template is placed directly into the infobox in the {{para|tracks}} field, then the tracks are listed. This may be copied and added to other songs infoboxes from the same album.
The example to the right uses this approach. To see its use in actual infoboxes, click on the song titles. Also, please note that if a singles chronology is also used in the infobox ({{para|prev_title}}, etc.), {{tl|Extra track listing}} must be used in the {{para|misc}} field (refer to that [[Template:Extra track listing#Usage]] for the code and explanation).
;Code
<pre>{{Infobox song
...
| tracks = {{Hidden
| title =
| text =
#
#
# etc.
}}
</pre>
;title
Enter the number of tracks, such as "10 tracks". A header will be generated automatically, for example "''That Album'' track listing".
;text
In this field, add the album tracks, using <code>#</code> to generate a sequential numbering. The song titles should be in "quotes", with the article track also in <strong>bold</strong>. Link any track that has its own WP article, except for when the song is the subject of the article.
For multi-disc [[Compact Disc Digital Audio|CD]]s, subheadings for "Disc one", "Disc two", etc. may be included. Similarly, subheadings such as "Side one" or "Side A" may be added for [[LP record]]s and [[Extended play|EPs]]. To ensure that the track numbering continues sequentially after a subheading (rather than starting again at "1"), use <code><nowiki><li value="x"></nowiki></code> where "x"=the next track number.
;Code
<pre>{{Infobox song
...
| tracks = {{Hidden
| title =
| text =
;Disc one
#
#
# etc.
;Disc two
#<li value=>
#
#
# etc.
}}
</pre>
{{Clear}}
==Chronology for double-A-side singles==
{{Infobox song
| name = The Single
| cover =
| alt =
| type = single
| artist = the Artist
| album = That Album
| A-side = "Other Side" ([[double A-side]])
| released = {{Start date|{{#expr:{{#time:Y}}-1}}|04|01}}
| format = [[CD single]]
| recorded = January 1–10, {{#expr:{{#time:Y}}-1}}
| studio = [[Record Plant]], New York City
| venue =
| genre = [[Contemporary R&B]]
| length = 3:01
| label = [[Columbia Records|Columbia]]
| writer = The Artist
| producer = The Producer
| chronology = The Artist double A-side
| prev_title = Last Single
| prev_title2 = Last Other
| prev_year = {{#expr:{{#time:Y}}-2}}
| title =
| title2 = Other Side
| next_title = Next Single
| next_title2 = Next Other
| next_year = {{#time:Y}}
}}
;Code :
<pre>{{Infobox song
...
| A-side =
| chronology =
| prev_title =
| prev_title2 =
| prev_year =
| title2 =
| next_title =
| next_title2 =
| next_year =
}}
</pre>
;A-side
Enter the name of the second- or flip-side of the current or article title.
;chronology
Use this field to provide an '''alternative header''' to the automatically generated "The Artist singles chronology". Enter <code>The Artist double A-side singles</code> to display "The Artist double A-side singles chronology", etc.
;prev_title
Enter the name of the previous single. If it has a WP article, add a link.
;prev_title2
If the previous is a double A-side single, enter the name of the previous single second- or flip-side and link as appropriate.
;prev_year
Enter only the year the previous single was released.
;title2
If it is a double A-side single, enter the name of the second- or flip-side of current or article title. (The current or article title with be automatically generated with quotes and in bold and will appear as the first of the two; the year is also generated from the {{para|released}} year date.)
;next_title
Enter the name of the next single. If it has a article, add a link.
;next_title2
Enter the name of the second-or flip side of next-single, if it is a double-A. Link as appropriate.
;next_year
Enter only the year the next single was released.
== Notes ==
{{reflist |refs=
<ref name="quotes">If any details besides the actual song title (country, etc.) are added, quote marks need to be added manually to the song title. Additionally, for {{para|A-side}} and {{para|B-side}}, quote marks need to be added for each title if there is more than one.
</ref>
<ref name="plainlist"> For multiple entries, this parameter uses <code>class=plainlist</code>. Format the items as a normal bulleted list; don't use other list templates or <nowiki><br/></nowiki>. For example:<pre>
| studio =
*First item
*Second item
*Third item</pre>
will be displayed as a vertical unbulleted list:
{|style="border:1px solid #ccc"
|style="vertical-align:top"|'''Studio'''{{space|3}}||{{ublist|First item|Second item|Third item}}
|}
</ref>
<ref name="flatlist">For short horizontal lists of two or three items, comma separators are acceptable, but for longer lists the use of the <code>class=hlist</code> is preferred as it offers a benefit to users of screen readers (see [[Wikipedia:Accessibility]] for more information on [[Web Content Accessibility Guidelines]]). To use it, format the items as a normal bulleted list; don't use other list templates or <nowiki><br/></nowiki>. For example:<pre>
| genre =
*Item one
*Item two
*Item three</pre>
will be displayed as a horizontal list separated by middots:
{|style="border:1px solid #ccc"
|'''Genre'''{{space|3}}
|class="hlist"|
*Item one
*Item two
*Item three
|}
</ref>
<ref name="location">As per RfC "Naming countries in infoboxes": When identifying a location, city or region in the United States or United Kingdom, the preferred approach is to use the country abbreviations allowed by [[MOS:ACRO]], such as "Portsmouth, New Hampshire, U.S." and "Cardiff, Wales, UK", rather than spelling out the full country name. Avoid using abbreviations for states or provinces in all nations. {{xt|New Hampshire}} rather than {{!xt|NH}}, {{xt|New South Wales}} rather than {{!xt|NSW}}, or {{xt|British Columbia}} rather than {{!xt|BC}} (see [[MOS:POSTABBR]]). Cities such as New York City and London may be rendered as "New York City, U.S." and "London, UK" or simply "New York City" and "London". Also, these should not be linked when the context makes it clear (see [[MOS:OVERLINK]]). If only the country name is included, it may be written out in full.
</ref>
|}
}}
{{basepage subpage|
[[Category:Music infobox templates|Song]]
[[Category:WikiProject Songs templates]]
[[Category:Templates that add a tracking category]]
}}
==TemplateData==
{{Collapse top|title=[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
{{TemplateData header|noheader=1}}
<templatedata>
{
"params": {
"name": {
"aliases": [
"Name",
"title"
],
"label": "Name",
"description": "The name or title of the song.",
"type": "string",
"default": "(PAGENAME)",
"required": true
},
"cover": {
"aliases": [
"Cover",
"image"
],
"label": "Cover",
"description": "An appropriate image, such as a sheet music or single picture sleeve cover.",
"example": "A file name, without the File: <NAME.jpg>",
"type": "string"
},
"cover_size": {
"aliases": [
"Cover size",
"cover size"
],
"label": "Cover_size",
"type": "string"
},
"alt": {
"aliases": [
"Alt"
],
"label": "Alt",
"description": "Alternative text for the cover image, to describe it to visually impaired readers.",
"type": "string"
},
"border": {
"aliases": [
"Border"
],
"label": "Border",
"description": "Set to yes to put a 1 pixel border around the image.",
"type": "string"
},
"caption": {
"aliases": [
"Caption"
],
"label": "Caption",
"description": "Caption for the image; this will overwrite automatically generated <\"Song\" cover> when a file is added to the \"caption\" field",
"example": "Sheet music cover, 1920.",
"type": "string"
},
"comment": {
"aliases": [
"Comment"
],
"label": "Comment",
"type": "string",
"deprecated": "This parameter is no longer used."
},
"type": {
"aliases": [
"Type"
],
"label": "Type",
"description": "Specify \"song\", \"single\", \"Instrumental\", \"Composition\", etc. This generates the header and color.",
"type": "string",
"suggested": true
},
"artist": {
"aliases": [
"Artist",
"original_artist"
],
"label": "Artist",
"description": "The name of the artist.",
"type": "string",
"suggested": true
},
"album": {
"aliases": [
"Album",
"from_album",
"from Album"
],
"label": "Album",
"description": "The name of the album on which the song originally appeared.",
"type": "string"
},
"EP": {
"label": "EP",
"description": "The name of the EP on which the song originally appeared. Only use album or EP; both will not be displayed.",
"type": "string"
},
"English_title": {
"aliases": [
"english_title"
],
"label": "English title",
"description": "The English translation of the name of the song, if it is in another language.",
"type": "string"
},
"written": {
"aliases": [
"Written"
],
"label": "Written",
"description": "The date the song was written; this is usually used for songs created before music publishing or recording",
"type": "string"
},
"published": {
"aliases": [
"Published"
],
"label": "Published",
"description": "The date the song was published; this is usually used for songs created before the rise of music recording",
"type": "string"
},
"released": {
"aliases": [
"Released"
],
"label": "Released",
"description": "For recorded music: The earliest known date of commercial release, using a single occurrence, using {{Start date}}. For April 1, 2015, enter {{Start date|2015|04|01}}.",
"type": "string"
},
"format": {
"aliases": [
"Format"
],
"label": "Format",
"description": "For recorded music: the way that the song was released, e.g., 7-inch single, LP record, EP, CD, cassette, digital download (note the piped download link), etc.",
"type": "string"
},
"A-side": {
"aliases": [
"a-side"
],
"label": "A-side",
"description": "For singles: the name of A-side of the current or title single.",
"type": "string"
},
"B-side": {
"aliases": [
"b-side"
],
"label": "B-side",
"description": "For singles: the name of the B-side of the current or title single. Only one of the fields 'A-side' or 'B-side' should be used.",
"type": "string"
},
"recorded": {
"aliases": [
"Recorded"
],
"label": "Recorded",
"description": "The date(s) the song was recorded.",
"type": "string"
},
"venue": {
"aliases": [
"Venue"
],
"label": "Venue",
"description": "For live recordings, include the name of the venue (concert hall, stadium, etc.) and location.",
"type": "string"
},
"studio": {
"aliases": [
"Studio"
],
"label": "Studio",
"description": "If the song was recorded in a recording studio, enter the name and location.",
"type": "string"
},
"genre": {
"aliases": [
"Genre"
],
"label": "Genre",
"description": "The genre(s) that best describes the song. This must not be original research, and should be stated and referenced in the article.",
"type": "string",
"suggested": true
},
"length": {
"aliases": [
"Length"
],
"label": "Length",
"description": "The length of the song, using {{Duration}}. To display 3 minutes 45 seconds as 3:45, enter {{Duration|m=3|s=45}}.",
"type": "number"
},
"label": {
"aliases": [
"Label"
],
"label": "Label",
"description": "The record company label which originally released the recording. Releases in other territories, different formats, reissues, etc., should be included in the body of the article, not in this field.",
"type": "string"
},
"writer": {
"aliases": [
"Writer",
"songwriter",
"Songwriter"
],
"label": "Songwriter/Writer",
"description": "The name of the person(s) credited with writing both the music and lyrics for the song. Where a separate lyricist and composer have been clearly identified by a reliable source, use the \"composer\" and \"lyricist\" fields instead.",
"type": "string",
"suggested": true
},
"composer": {
"aliases": [
"Composer"
],
"label": "Composer",
"description": "The name of the person(s) who composed the song's music, if different than the lyricist. If not differentiated in the article, use the \"songwriter/writer\" field instead.",
"type": "string"
},
"lyricist": {
"aliases": [
"Lyricist"
],
"label": "Lyricist",
"description": "The person(s) who wrote the lyrics, if different than the song's composer. If not differentiated in the article, use the \"songwiter/writer\" field instead.",
"type": "string"
},
"language": {
"aliases": [
"Language"
],
"label": "Language",
"description": "Only if the song is not in English, indicate the language.",
"type": "string"
},
"producer": {
"aliases": [
"Producer"
],
"label": "Producer",
"description": "The person(s) who is credited with the record production.",
"type": "string"
},
"chronology": {
"aliases": [
"Chronology"
],
"label": "Chronology",
"description": "For singles: Header for the chronology section.",
"type": "string",
"default": "(Artist name) singles chronology"
},
"prev_title": {
"label": "Prev_title",
"description": "The name of the previous single in the artist's chronolgy.",
"type": "string"
},
"prev_title2": {
"label": "Prev_title2",
"description": "The name of the previous single in the artist's chronolgy.",
"type": "string"
},
"prev_year": {
"label": "Prev_year",
"description": "The year of the previous single in the artist's chronology.",
"type": "number"
},
"title": {
"label": "Title",
"description": "The name of the current or subject single.",
"type": "string"
},
"title2": {
"label": "Title2",
"description": "For a double A-side single: the name of the second or flip-side of the current single in the artist's chronology.",
"type": "string"
},
"year": {
"label": "Year",
"description": "To change the automatically generated year: the year of the single in the artist's chronology.",
"type": "number"
},
"next_title": {
"label": "Next_title",
"description": "The name of the next single in the artist's chronology.",
"type": "string"
},
"next_title2": {
"label": "Next_title2",
"description": "For a double A-side single: the name of the second- or flip-side of the next single.",
"type": "string"
},
"next_year": {
"label": "Next_year",
"description": "The year of the next single in the artist's chronology.",
"type": "number"
},
"tracks": {
"aliases": [
"Tracks"
],
"label": "Tracks",
"description": "To add a full-album track listing.",
"type": "string"
},
"prev_track": {
"label": "Prev_track",
"type": "string",
"deprecated": "No longer used."
},
"track_no": {
"label": "Track_no",
"type": "number",
"deprecated": "No longer used."
},
"next_track": {
"label": "Next_track",
"type": "string",
"deprecated": "No longer used."
},
"ISWC": {
"label": "ISWC",
"type": "string",
"deprecated": "No longer used."
},
"prev": {
"label": "Prev",
"type": "string",
"deprecated": "No longer used."
},
"prev_no": {
"label": "Prev_no",
"type": "number",
"deprecated": "No longer used."
},
"next": {
"label": "Next",
"type": "string",
"deprecated": "No longer used."
},
"next_no": {
"label": "Next_no",
"type": "number",
"deprecated": "No longer used."
},
"misc": {
"aliases": [
"Misc"
],
"label": "Misc",
"description": "To add extra subtemplates, such as {{Extra chronology}}, {{Extra track listing}}, {{Extra album cover}}, {{Audio sample}}, etc.",
"type": "string"
}
},
"description": "An infobox for songs",
"paramOrder": [
"name",
"cover",
"cover_size",
"alt",
"border",
"caption",
"type",
"artist",
"album",
"EP",
"language",
"English_title",
"A-side",
"B-side",
"written",
"published",
"released",
"format",
"recorded",
"studio",
"venue",
"genre",
"length",
"label",
"writer",
"composer",
"lyricist",
"producer",
"chronology",
"prev_title",
"prev_title2",
"prev_year",
"title",
"title2",
"year",
"next_title",
"next_title2",
"next_year",
"tracks",
"prev_track",
"track_no",
"next_track",
"misc",
"ISWC",
"comment",
"prev",
"prev_no",
"next",
"next_no"
]
}
</templatedata>
{{Collapse bottom}}
== Tracking categories ==
* {{clc|Pages using infobox song with deprecated parameters}}
* {{clc|Pages using infobox song with unknown parameters}}
* {{clc|Infobox song with A-side or B-side quote formatting fix needed}}
* {{clc|Song articles with missing songwriters}}
* {{clc|Song articles with both composer and songwriter}}
* {{clc|Song articles with both lyricist and songwriter}}
* {{clc|Song articles with lyricist but not composer}}
* {{clc|Music infoboxes with unknown value for type}}
* {{clc|Music infoboxes with malformed table placement}}
* {{clc|Music infoboxes with Module:String errors}}
== See also ==
* [[Wikipedia:WikiProject Songs]]
* {{tl|Infobox album}}