Template:Infobox song: Difference between revisions

From SPCodex, The Smashing Pumpkins wiki
No edit summary
No edit summary
 
(149 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{ {{{|safesubst:}}}#invoke:Unsubst-infobox||$params=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,misc|$set1={{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}lc:{{{type|{{{Type|}}}}}}}}|single|[[single (music)|single]]|singles|[[single (music)|singles]]=name,cover,cover_size,alt,border,caption,type,artist,{{{{{|safesubst:}}}#if:{{{EP|}}}|EP,|album,}}language,English_title,A-side,B-side,released,format,recorded,studio,venue,genre,length,label,{{{{{|safesubst:}}}#if:{{{writer|{{{Writer|}}}}}}|writer,|composer,lyricist,}}producer,chronology,prev_title,prev_title2,prev_year,{{{{{|safesubst:}}}#if:{{{title2|}}}|title,}}title2,year,next_title,next_title2,next_year,misc|name,cover,cover_size,alt,border,caption,type,artist,{{{{{|safesubst:}}}#if:{{{EP|}}}|EP,|album,}}language,English_title,released,format,recorded,studio,venue,genre,length,label,{{{{{|safesubst:}}}#if:{{{writer|{{{Writer|}}}}}}|writer,|composer,lyricist,}}producer,chronology,{{{{{|safesubst:}}}#if:{{{tracks|{{{Tracks|}}}}}}|tracks,}}misc}}|$set3=name,cover,cover_size,alt,border,caption,type,language,English_title,written,published,{{{{{|safesubst:}}}#if:{{{recorded|{{{Recorded|}}}}}}{{{length|{{{Length|}}}}}}|recorded,length,}}writer,composer,lyricist,misc|$extra=cover_size,border,caption,language,English_title,A-side,B-side,chronology,prev_title2,title2,year,next_title2,prev_no,next_no,prev,next,tracks,misc|$aliases={{{{{|safesubst:}}}#if:{{{title2|}}}||title>name,}}Name>name,image>cover,Cover>cover,cover size>cover_size,Cover size>cover_size,Alt>alt,Border>border,Caption>caption,Type>type,Artist>artist,original_artist>artist,Album>album,from_album>album,from Album>album,Language>language,english_title>English_title,Writer>writer,Composer>composer,Lyricist>lyricist,Written>written,Published>published,Genre>genre,Recorded>recorded,Studio>studio,Venue>venue,Length>length,Producer>producer,Released>released,Label>label,Format>format,a-side>A-side,b-side>B-side,Chronology>chronology,Tracks>tracks,Misc>misc|prev_track={{{{{|safesubst:}}}#if:{{{prev_track|}}}|{{{prev_track}}}|{{{{{|safesubst:}}}#if:{{{prev|}}}|{{{{{|safesubst:}}}#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{prev|}}}|2=^["“‘'](.+)["”’']$|nomatch=}}}}}}|prev={{{{{|safesubst:}}}#if:{{{prev|}}}|{{{{{|safesubst:}}}#if:{{{{{|safesubst:}}}#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{prev|}}}|2=^["“‘'](.+)["”’']$|nomatch=}}||{{{prev}}}}}}}|next_track={{{{{|safesubst:}}}#if:{{{next_track|}}}|{{{next_track}}}|{{{{{|safesubst:}}}#if:{{{next|}}}|{{{{{|safesubst:}}}#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{next|}}}|2=^["“‘'](.+)["”’']$|nomatch=}}}}}}|next={{{{{|safesubst:}}}#if:{{{next|}}}|{{{{{|safesubst:}}}#if:{{{{{|safesubst:}}}#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{next|}}}|2=^["“‘'](.+)["”’']$|nomatch=}}||{{{next}}}}}}}|prev_no={{{{{|safesubst:}}}#if:{{{prev_no|}}}|{{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}#expr:{{{track_no|0}}}-1}}|{{{prev_no}}}||{{{prev_no}}}}}}}|next_no={{{{{|safesubst:}}}#if:{{{next_no|}}}|{{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}#expr:{{{track_no|0}}}+1}}|{{{next_no}}}||{{{next_no}}}}}}}|chronology={{{{{|safesubst:}}}#if:{{{chronology|{{{Chronology|}}}}}}|{{{{{|safesubst:}}}#switch:{{{{{|safesubst:}}}lc:{{{type|{{{Type|}}}}}}}}|single|[[single (music)|single]]|singles|[[single (music)|singles]]={{{{{|safesubst:}}}#invoke:String|replace|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{chronology|{{{Chronology}}}}}}|2=%s*singles$|5=false}}|{{{chronology|{{{Chronology|}}}}}}}}}}|recorded={{{{{|safesubst:}}}#if:{{{recorded|{{{Recorded|}}}}}}|{{{{{|safesubst:}}}#invoke:String|replace|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{recorded|{{{Recorded}}}}}}|2=[ ]–[ ]|3={{snd}}|plain=false}}}}|$flags=override|$B={{Infobox
<templatestyles src="Template:Infobox song/styles.css" /><templatestyles src="Template:Infobox/styles.css" /><noinclude>{{#cargo_declare:_table=songs
|name = String(mandatory=1)
|type = List (,) of String (mandatory=1;allowed values=song,single,promo,cover,instrumental)
|artist = Page (mandatory=1;allowed values=The Smashing Pumpkins,Billy Corgan,James Iha,Jimmy Chamberlin Complex,Zwan,Various artists)
|original_artist = String
|main_album = Page
|song_release_date = Date
|writer = List (,) of Page
|video = Boolean
|spotify = String(size=40)
|discogs = Integer
|musicbrainz = String
|cover = File
}}</noinclude>{{#invoke:Infobox song|infobox|
| bodyclass  = vevent
| bodyclass  = vevent
| aboveclass  = summary
| aboveclass  = summary
| abovestyle  = background-color: {{Infobox song/color|{{{type|{{{Type|}}}}}} }};
| abovestyle  = background-color: {{Infobox song/color|{{{type|{{{Type|}}}}}} }};
| above      = "{{if empty|{{{name|}}}|{{{Name|}}}|{{#if:{{{title2|}}}||{{{title|}}}}}|{{PAGENAMEBASE}}}}"


| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{cover|{{{Cover|}}}}}}}}}|size={{{cover_size|{{{cover size|{{{Cover size|}}}}}}}}}|upright={{{cover_upright|}}}|sizedefault=frameless|alt={{{alt|{{{Alt|}}}}}}|border={{{border|{{{Border|}}}}}}}}
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{cover|{{{Cover|}}}}}}}}}|size={{{cover_size|{{{cover size|{{{Cover size|}}}}}}}}}|upright={{{cover_upright|}}}|sizedefault=frameless|alt={{{alt|{{{Alt|}}}}}}|border={{{border|{{{Border|}}}}}}}}
Line 12: Line 24:


| rowclass1  = description
| rowclass1  = description
| header1    = {{Infobox song/link|{{{type|{{{Type|}}}}}} }} {{#if:{{{artist|}}}{{{Artist|}}}{{{original_artist|}}}|by {{If empty|{{{artist|}}}|{{{Artist|}}}|{{{original_artist|}}}}}}}
| header1    = {{Infobox song/link|{{{type|{{{Type|}}}}}} }} {{#if:{{{artist|}}}{{{Artist|}}}|by {{#ifexist:{{delink|{{{artist|{{{Artist|}}}}}}}}|[[{{delink|{{{artist|{{{Artist|}}}}}}}}]]|{{{artist|{{{Artist|}}}}}}}}
{{#if:{{{original_artist|}}}|<br/><small>''Original by {{{original_artist}}}''</small>}}|{{#ifeq:{{{type|}}}|cover|[[Category:Cover songs missing original_artist field in infobox]]}}}}{{#if:{{{side_project|}}}|<br/><small>''[[:Category:Side projects|Side project]] of [[{{delink|{{{side_project}}}}}]]''</small>}}
| rowclass2  = description
| rowclass2  = description
| header2    = {{#if:{{{album|}}}{{{Album|}}}{{{from_album|}}}{{{from Album|}}}|from the album ''{{If empty|{{{album|}}}|{{{Album|}}}|{{{from_album|}}}|{{{from Album|}}}}}''|{{#if:{{{EP|}}}|from the EP ''{{{EP|}}}''}}}}
| header2    = <div class="song-links"><!--
 
-->{{#if:{{album image|{{{album|}}}}}|<span><div>[[File:{{#if:{{{album_photo|}}}|{{{album_photo|Smashing Pumpkins - Mellon Collie And The Infinite Sadness.jpg}}}|{{album image|{{{album}}}}}}}|40px|link={{delink|{{{album}}}}}]]</div>[[{{delink|{{{album}}}}}|Album]]</span>}}<!--
-->{{#ifeq:{{yesno-yes|{{{lyrics|}}}}}|yes|<span><div class="mw-no-invert">[[File:Breezeicons-actions-22-view-media-lyrics.svg|40px|link=#Lyrics|alt=Lyrics]]</div>[[#Lyrics|Lyrics]]</span>|[[Category:Instrumental songs]]}}<!--
-->{{#if:{{{notabs|}}}||{{#ifexist:Tab:{{PAGENAME}}|<span><div class="mw-no-invert">[[File:Guitar (23727) - The Noun Project.svg|40px|link=Tab:{{PAGENAME}}]]</div>[[Tab:{{PAGENAME}}|Tabs]]</span>|<span class="plainlinks"><div>[[File:Guitar (23727) - The Noun Project.svg|40px|link=https://www.ultimate-guitar.com/search.php?search_type=title&value={{urlencode:{{delink|{{{artist|The Smashing Pumpkins}}}}}|QUERY}}%20{{urlencode:{{{name|{{PAGENAME}}}}}|QUERY}}]]</div>[https://www.ultimate-guitar.com/search.php?search_type=title&value={{urlencode:{{delink|{{{artist|The Smashing Pumpkins}}}}}|QUERY}}%20{{urlencode:{{{name|{{PAGENAME}}}}}|QUERY}} Tabs]</span>}}}}<!--
-->{{#if:{{{video|}}}|<span><div>[[File:Video Camera - The Noun Project.svg|40x40px|link=#Music video]]</div>[[#Music video|Video]]</span>}}<!--
-->{{#if:{{{spotify|}}}|<span class="plainlinks"><div>[[File:Spotify logo without text.svg|40px|link=https://open.spotify.com/track/{{{spotify}}}]]</div>[https://open.spotify.com/track/{{{spotify}}} Spotify]</span>}}
</div>
| label3      = Language
| label3      = Language
| data3      = {{{language|{{{Language|}}}}}}
| data3      = {{{language|{{{Language|}}}}}}
Line 22: Line 40:
| data4      = {{{English_title|{{{english_title|}}}}}}
| data4      = {{{English_title|{{{english_title|}}}}}}


| label5      = <span class="nowrap">[[A-side and B-side|A-side]]</span>
| label5      = <span class="nowrap">A-side</span>
| data5      = {{#if:{{{A-side|{{{a-side|}}}}}}|{{#if:{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{A-side|{{{a-side}}}}}}|2="|nomatch=}}|{{{A-side|{{{a-side}}}}}}|"{{{A-side|{{{a-side}}}}}}"}}}}
| data5      = {{#if:{{{A-side|{{{a-side|}}}}}}|{{#if:{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{A-side|{{{a-side}}}}}}|2="|nomatch=}}|{{{A-side|{{{a-side}}}}}}|"{{{A-side|{{{a-side}}}}}}"}}}}
| class5      = plainlist
| class5      = plainlist


| label6      = <span class="nowrap">[[A-side and B-side|B-side]]</span>
| label6      = <span class="nowrap">B-side</span>
| data6      = {{#if:{{{B-side|{{{b-side|}}}}}}|{{#if:{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{B-side|{{{b-side}}}}}}|2="|nomatch=}}|{{{B-side|{{{b-side}}}}}}|"{{{B-side|{{{b-side}}}}}}"}}}}
| data6      = {{#if:{{{B-side|{{{b-side|}}}}}}|{{#if:{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{B-side|{{{b-side}}}}}}|2="|nomatch=}}|{{{B-side|{{{b-side}}}}}}|"{{{B-side|{{{b-side}}}}}}"}}}}
| class6      = plainlist
| class6      = plainlist
Line 37: Line 55:


| label10    = Released
| label10    = Released
| data10      = {{{released|{{{Released|}}}}}}
| class10    = plainlist
| class10    = plainlist
| data10      = {{{released|{{#invoke:Infobox song|validateOrFetchReleaseDate|{{{artist|}}}|{{{name|{{PAGENAME}}}}}}}}}}


| label11    = Format
| label11    = Format
Line 44: Line 62:
| class11    = hlist
| class11    = hlist


| label12    = Recorded
| label12    = {{#if:{{{recorded|}}}|Recorded<includeonly>[[Category:Infobox song using recorded parameter]]</includeonly>|[[Studio sessions]]}}
| data12      = {{{recorded|{{{Recorded|}}}}}}
| class12    = plainlist
| class12    = plainlist


| label13    = Studio
| label13    = Studio
| data13      = {{{studio|{{{Studio|}}}}}}
| class13    = plainlist
| class13    = plainlist


Line 68: Line 84:


| label40    = <span class="nowrap">Songwriter(s)</span>
| label40    = <span class="nowrap">Songwriter(s)</span>
| data40      = {{{writer|{{{Writer|}}}}}}
| class40    = hlist
| class40    = hlist


Line 80: Line 95:


| label43    = <span class="nowrap">Producer(s)</span>
| label43    = <span class="nowrap">Producer(s)</span>
| data43      = {{{producer|{{{Producer|}}}}}}
| class43    = hlist
| class43    = hlist


| header44    = {{#if:{{{tracks|{{{Tracks|}}}}}}||{{#if:{{{prev_title|}}}{{{next_title|}}}{{{prev_single|}}}{{{next_single|}}}|{{#if:{{{chronology|}}}|{{#invoke:String|replace|error_category=Music infoboxes with Module:String errors{{!}}C|{{{chronology}}}{{#switch:{{lc:{{{type|{{{Type|}}}}}}}}|single|[[single (music)|single]]|singles|[[single (music)|singles]]=&#32;singles}}|singles&#32;singles|singles}}|{{#invoke:String2 | ucfirst |{{{artist|}}}}} singles}} chronology}}}}
| header44    = {{#if:{{{tracks|{{{Tracks|}}}}}}||{{#if:{{{prev_title|}}}{{{next_title|}}}{{{prev_single|}}}{{{next_single|}}}|{{#if:{{{chronology|}}}|{{#invoke:String|replace|error_category=Music infoboxes with Module:String errors{{!}}C|{{{chronology}}}{{#switch:{{lc:{{{type|{{{Type|}}}}}}}}|single|[[:Category:Singles|single]]|singles|[[:Category:Singles|singles]]=&#32;singles}}|singles&#32;singles|singles}}|{{#invoke:String2 | ucfirst |{{{artist|}}}}} singles}} chronology}}}}
| rowcellstyle45 = {{#if:{{{__µ|}}}|display: none;}}
| rowcellstyle45 = {{#if:{{{__µ|}}}|display: none;}}
| data45      = {{#if:{{{tracks|{{{Tracks|}}}}}}||{{#if:{{{prev_title|}}}{{{next_title|}}}{{{prev_single|}}}{{{next_single|}}}|
| data45      = {{#if:{{{tracks|{{{Tracks|}}}}}}||{{#if:{{{prev_title|}}}{{{next_title|}}}{{{prev_single|}}}{{{next_single|}}}|
Line 99: Line 113:
| data63        = {{{tracks|{{{Tracks|}}}}}}
| data63        = {{{tracks|{{{Tracks|}}}}}}


| below = {{{misc|{{{Misc|}}}}}}
| belowclass = nomobile
}}{{main other|{{#if:{{{Type|}}}{{{Writer|}}}{{{Tracks|}}}{{{Recorded|}}}{{{Length|}}}{{{prev|}}}{{{next|}}}{{{prev_no|}}}{{{track_no|}}}{{{next_no|}}}{{{Chronology|}}}{{{Name|}}}{{{Cover|}}}{{{cover size|}}}{{{Cover size|}}}{{{Alt|}}}{{{Border|}}}{{{Caption|}}}{{{Artist|}}}{{{original_artist|}}}{{{Album|}}}{{{from Album|}}}{{{Language|}}}{{{a-side|}}}{{{b-side|}}}{{{Written|}}}{{{Published|}}}{{{Released|}}}{{{Format|}}}{{{Studio|}}}{{{Venue|}}}{{{Genre|}}}{{{Label|}}}{{{Composer|}}}{{{Lyricist|}}}{{{Producer|}}}{{{prev_single|}}}{{{next_single|}}}{{{Misc|}}}{{{Last single|}}}{{{last_single|}}}{{{This single|}}}{{{this_single|}}}{{{Next single|}}}|[[Category:Pages using infobox song with deprecated parameters]]}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using infobox song with unknown parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Infobox song]] with unknown parameter "_VALUE_"|ignoreblank=y|type|Type|EP|writer|Writer|title2|tracks|Tracks|recorded|Recorded|length|Length|prev_track|prev|next_track|next|prev_no|track_no|next_no|chronology|Chronology|name|Name|title|image|cover|Cover|cover_size|cover size|Cover size|cover_upright|alt|Alt|border|Border|caption|Caption|artist|Artist|original_artist|album|Album|from_album|from Album|language|Language|English_title|english_title|A-side|a-side|B-side|b-side|written|Written|published|Published|released|Released|format|Format|studio|Studio|venue|Venue|genre|Genre|label|Label|composer|Composer|lyricist|Lyricist|producer|Producer|prev_title|next_title|prev_single|next_single|__µ|prev_title2|prev_year|next_year|year|next_title2|misc|Misc}}{{#if:{{{length|{{{Length|}}}}}}|{{#if:{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{#invoke:hms|main|duration={{{length|{{{Length|}}}}}}}}|2=class="duration"|plain=true|nomatch=}}|[[Category:Articles with hAudio microformats]]}}{{#if:{{{writer|}}}{{{Writer|}}}{{{composer|}}}{{{Composer|}}}{{{lyricist|}}}{{{Lyricist|}}}||[[Category:Song articles with missing songwriters]]}}{{#if:{{both|{{{writer|}}}{{{Writer|}}}|{{{composer|}}}{{{Composer|}}}}}|[[Category:Song articles with both composer and songwriter]]}}{{#if:{{both|{{{writer|}}}{{{Writer|}}}|{{{lyricist|}}}{{{Lyricist|}}}}}|[[Category:Song articles with both lyricist and songwriter]]}}{{#if:{{{lyricist|}}}{{{Lyricist|}}}|{{#if:{{{composer|}}}{{{Composer|}}}||[[Category:Song articles with lyricist but not composer]]}}}}}}{{#if:{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{name|}}}{{{cover|}}}{{{cover_size|}}}{{{alt|}}}{{{border|}}}{{{caption|}}}{{{type|}}}{{{artist|}}}{{{album|}}}{{{EP|}}}{{{language|}}}{{{English_title|}}}{{{writer|}}}{{{composer|}}}{{{lyricist|}}}{{{written|}}}{{{published|}}}{{{genre|}}}{{{recorded|}}}{{{studio|}}}{{{venue|}}}{{{length|}}}{{{producer|}}}{{{released|}}}{{{label|}}}{{{format|}}}{{{A-side|}}}{{{B-side|}}}{{{chronology|}}}{{{prev_title|}}}{{{prev_title2|}}}{{{prev_year|}}}{{{title|}}}{{{title2|}}}{{{year|}}}{{{next_title|}}}{{{next_title2|}}}{{{next_year|}}}{{{prev|}}}{{{prev_no|}}}{{{next|}}}{{{next_no|}}}{{{tracks|}}}{{{Name|}}}{{{image|}}}{{{Cover|}}}{{{cover size|}}}{{{Cover size|}}}{{{Alt|}}}{{{Border|}}}{{{Caption|}}}{{{Type|}}}{{{Artist|}}}{{{original_artist|}}}{{{Album|}}}{{{from_album|}}}{{{from Album|}}}{{{Language|}}}{{{english_title|}}}{{{Writer|}}}{{{Composer|}}}{{{Lyricist|}}}{{{Written|}}}{{{Published|}}}{{{Genre|}}}{{{Recorded|}}}{{{Studio|}}}{{{Venue|}}}{{{Length|}}}{{{Producer|}}}{{{Released|}}}{{{Last single|}}}{{{last_single|}}}{{{This single|}}}{{{this_single|}}}{{{Next single|}}}{{{next_single|}}}{{{Label|}}}{{{Format|}}}{{{a-side|}}}{{{b-side|}}}{{{Chronology|}}}{{{Tracks|}}}x|2=</?t[drh][ >]|nomatch=}}|[[Category:Music infoboxes with malformed table placement|S]]}}}}
}}{{main other|{{#if:{{{Type|}}}{{{Writer|}}}{{{Tracks|}}}{{{Recorded|}}}{{{Length|}}}{{{prev|}}}{{{next|}}}{{{prev_no|}}}{{{track_no|}}}{{{next_no|}}}{{{Chronology|}}}{{{Name|}}}{{{Cover|}}}{{{cover size|}}}{{{Cover size|}}}{{{Alt|}}}{{{Border|}}}{{{Caption|}}}{{{Artist|}}}{{{side_project|}}}{{{Album|}}}{{{from Album|}}}{{{Language|}}}{{{a-side|}}}{{{b-side|}}}{{{Written|}}}{{{Published|}}}{{{Released|}}}{{{Format|}}}{{{Studio|}}}{{{Venue|}}}{{{Genre|}}}{{{Label|}}}{{{Composer|}}}{{{Lyricist|}}}{{{Producer|}}}{{{prev_single|}}}{{{next_single|}}}{{{Misc|}}}{{{Last single|}}}{{{last_single|}}}{{{This single|}}}{{{this_single|}}}{{{Next single|}}}|[[Category:Pages using infobox song with deprecated parameters]]}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using infobox song with unknown parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Infobox song]] with unknown parameter "_VALUE_"|ignoreblank=y|type|Type|EP|writer|Writer|title2|tracks|Tracks|recorded|Recorded|length|Length|prev_track|prev|next_track|next|prev_no|track_no|next_no|chronology|Chronology|name|Name|title|image|cover|Cover|cover_size|cover size|Cover size|cover_upright|alt|Alt|border|Border|caption|Caption|artist|Artist|nonstandard_artist|side_project|original_artist|album|Album|from_album|from Album|album_photo|notabs|spotify|video|language|Language|English_title|english_title|A-side|a-side|B-side|b-side|written|Written|published|Published|released|Released|format|Format|studio|Studio|venue|Venue|genre|Genre|label|Label|composer|Composer|lyricist|Lyricist|producer|Producer|prev_title|next_title|prev_single|next_single|__µ|prev_title2|prev_year|next_year|year|next_title2|misc|lyrics|Misc|discogs|musicbrainz|is_ep|released_cargo}}
}}<noinclude>
}}<noinclude>
<!-- please place language and category links on the /doc page and not here -->
<!-- please place language and category links on the /doc page and not here -->
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 02:51, 10 August 2024

This template defines the table "songs". View table.

"Template:Infobox song"
Song
Template documentation[view] [edit] [history] [purge]

Articles about songs should include an infobox that provides an overview or summary of the song.

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 <!-- and --> to use the {{Start date}} and {{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 |arranger= or |recording engineer=, will not be displayed.

Most commonly used parameters

{{subst:Infobox song
| name          = 
| cover         = <!--just the file name-->
| type          = 
| artist        = 
| album         = 
| B-side        = 
| released      = <!--{{Start date|YYYY|MM|DD}}-->
| format        = 
| recorded      = 
| studio        = 
| genre         = 
| length        = 
| label         = 
| writer        = <!--for both music and lyrics-->
| producer      = 
| prev_title    = <!--for a singles chronology-->
| prev_year     = 
| next_title    = 
| next_year     = 
}}

TemplateData

An infobox for songs

[Edit template data]

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Namename Name title

The name or title of the song.

Default
(PAGENAME)
Stringrequired
Covercover Cover image

An appropriate image, such as a sheet music or single picture sleeve cover.

Example
A file name, without the File: <NAME.jpg>
Stringsuggested
Cover_sizecover_size Cover size cover size

no description

Stringoptional
Altalt Alt

Alternative text for the cover image, to describe it to visually impaired readers.

Stringoptional
Borderborder Border

Set to yes to put a 1 pixel border around the image.

Stringoptional
Captioncaption Caption

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.
Stringoptional
Type ("song", "single", "promo", "cover", "composition")type Type

Specify "song", "single", "promo", "Instrumental", "Composition", etc. This generates the header and color.

Stringsuggested
Artistartist Artist

The name of the artist.

Stringsuggested
Albumalbum Album from_album from Album

The name of the album on which the song originally appeared.

Stringsuggested
EPEP

The name of the EP on which the song originally appeared. Only use album or EP; both will not be displayed.

Stringoptional
A-sideA-side a-side

For singles: the name of A-side of the current or title single.

Stringoptional
B-sideB-side b-side

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.

Stringoptional
Writtenwritten Written

The date the song was written; this is usually used for songs created before music publishing or recording

Dateoptional
Publishedpublished Published

The date the song was published; this is usually used for songs created before the rise of music recording

Dateoptional
Releasedreleased Released

Date or year of earliest commercial release.

Stringsuggested
Formatformat Format

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.

Stringoptional
Recordedrecorded Recorded

The date(s) the song was recorded.

Stringsuggested
Studiostudio Studio

If the song was recorded in a recording studio, enter the name and location.

Stringsuggested
Venuevenue Venue

For live recordings, include the name of the venue (concert hall, stadium, etc.) and location.

Stringoptional
Genregenre Genre

The genre(s) that best describes the song. This must not be original research, and should be stated and referenced in the article.

Stringoptional
Lengthlength Length

The length of the song in minutes and seconds, such as 3:45

Numbersuggested
Labellabel Label

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.

Stringoptional
Songwriter(s)writer Writer songwriter Songwriter

Comma-separated list of persons credited with writing the song

Example
Billy Corgan, James Iha
Stringrequired
Composercomposer Composer

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.

Stringoptional
Lyricistlyricist Lyricist

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.

Stringoptional
Producer(s)producer Producer

Comma-separated list of persons credited with the production

Example
Flood, Billy Corgan, Alan Moulder
Stringsuggested
Chronologychronology Chronology

For singles: Header for the chronology section.

Default
(Artist name) singles chronology
Stringoptional
Titletitle

The name of the current or subject single.

Stringoptional
Title2title2

For a double A-side single: the name of the second or flip-side of the current single in the artist's chronology.

Stringoptional
Yearyear

To change the automatically generated year: the year of the single in the artist's chronology.

Numberoptional
Trackstracks Tracks

To add a full-album track listing.

Stringoptional
Miscmisc Misc

To add extra subtemplates, such as {{Extra chronology}}, {{Extra track listing}}, {{Extra album cover}}, {{Audio sample}}, etc.

Stringoptional
ISWCISWC

no description

Stringdeprecated
Commentcomment Comment

no description

Stringdeprecated
Lyricslyrics

Set to "yes" if there are lyrics. There should be a section on the page called "Lyrics"

Auto value
yes
Booleanrequired
notabsnotabs

no description

Unknownoptional
Has video?video

Enter "yes" if there's an associated video in a section on the page called "Music video". Leave blank or enter "no" if there is no video.

Booleansuggested
Spotify IDspotify

Enter the song ID on Spotify, and this will generate a link to it

Stringsuggested
Discogs master IDdiscogs

no description

Numberoptional
MusicBrainz release-group IDmusicbrainz

no description

Stringoptional
Side project ofside_project

The name of the band member, etc.

Example
Billy Corgan
Page nameoptional
Original artistoriginal_artist

The artist who originally wrote or takes credit for this song

Stringoptional
Nonstandard artistnonstandard_artist

Set this for songs we want to document on the wiki, but aren't necessarily in scope. Setting this will not categorize the song by the artist, among other things.

Default
0
Booleanoptional
Is EPis_ep

Set this to 1 if the song release charted on an albums chart, or is otherwise treated as an EP and not just a single.

Booleanoptional

Tracking categories

See also