Template:Infobox song: Difference between revisions

From The Kristen Barry Archive
No edit summary
Tag: Reverted
Undo revision 2490 by Kap (talk)
Tag: Undo
Line 1: Line 1:
<templatestyles src="Template:Infobox song/styles.css" /><templatestyles src="Template:Infobox/styles.css" /><noinclude>{{#cargo_declare:_table=songs
<!--begin short description-->{{#ifeq:{{#invoke:Is infobox in lead|main|[Ii]nfobox [Ss]ong}}|true|{{#if:{{Has short description}} |<!--Do nothing--> |{{short description|{{#invoke:Plain text|main|{{#if:{{#invoke:string|match|{{{released|}}}|%d%d%d%d|ignore_errors = true}}|{{#invoke:string|match|{{{released|}}}|%d%d%d%d|ignore_errors = true}} {{lc:{{Infobox song/link|{{{type|}}} }}}}|{{Infobox song/link|{{{type|}}} }}}} {{#if:{{{artist|}}}|by {{{artist}}} }}|noreplace}}}}}}}}<!-- end short description
|name = String(mandatory=1)
-->{{Infobox
|type = List (,) of String (mandatory=1;allowed values=song,single,promo,cover,instrumental)
|artist = Page (mandatory=1;allowed values=Kristen Barry,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  = color: #202122;background-color: {{Infobox song/color|{{{type|}}} }}; font-size: 125%;
| above      = "{{if empty|{{{name|}}}|{{#if:{{{title2|}}}||{{{title|}}}}}|{{PAGENAMEBASE}}}}"{{#if:{{{version|}}}|&nbsp;({{{version}}})}}


| 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|}}}}}}|size={{{cover_size|}}}|upright={{{cover_upright|}}}|sizedefault=frameless|alt={{{alt|}}}|title={{{alt|}}}|border={{{border|}}}}}
| caption    = {{{caption|{{{Caption|}}}}}}
| caption    = {{{caption|}}}


| headerstyle = background-color: {{Infobox song/color|{{{type|{{{Type|}}}}}} }};
| headerstyle = color: #202122;background-color: {{Infobox song/color|{{{type|}}} }};
| headerclass = description
| headerclass = description


| rowclass1  = description
| rowclass1  = description
| header1    = {{Infobox song/link|{{{type|{{{Type|}}}}}} }} {{#if:{{{artist|}}}{{{Artist|}}}|by {{#ifexist:{{delink|{{{artist|{{{Artist|}}}}}}}}|[[{{delink|{{{artist|{{{Artist|}}}}}}}}]]|{{{artist|{{{Artist|}}}}}}}}
| header1    = {{Infobox song/link|{{{type|}}} }} {{#if:{{{artist|}}}|by {{{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    = <div class="song-links"><!--
| header2    = {{#if:{{{album|}}}|from the album '' {{If empty|{{{album|}}}}} ''|{{#if:{{{EP|}}}|from the EP '' {{{EP|}}} ''}}}}
-->{{#if:{{album image|{{{album|}}}}}|<span><div>[[File:{{#if:{{{album_photo|}}}|{{{album_photo|Kristen Barry - The Beginning The Middle The End.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|Kristen Barry}}}}}|QUERY}}%20{{urlencode:{{{name|{{PAGENAME}}}}}|QUERY}}]]</div>[https://www.ultimate-guitar.com/search.php?search_type=title&value={{urlencode:{{delink|{{{artist|Kristen Barry}}}}}|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|}}}


| label4      = English title
| label4      = English title
| data4      = {{{English_title|{{{english_title|}}}}}}
| data4      = {{{English_title|{{{english_title|}}}}}}


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


| label6      = <span class="nowrap">B-side</span>
| label6      = <span class="nowrap">[[A-side and B-side|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|}}}|{{#if:{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{{B-side}}}|2="|nomatch=}}|{{{B-side}}}|"{{{B-side}}}"}}}}
| class6      = plainlist
| class6      = plainlist


| label7      = Written
| label7      = Written
| data7      = {{{written|{{{Written|}}}}}}
| data7      = {{{written|}}}


| label8      = Published
| label8      = Published
| data8      = {{{published|{{{Published|}}}}}}
| data8      = {{{published|}}}


| label10    = Released
| label10    = Released
| data10      = {{{released|}}}
| class10    = plainlist
| class10    = plainlist
| data10      = {{{released|{{#invoke:Infobox song|validateOrFetchReleaseDate|{{{artist|}}}|{{{name|{{PAGENAME}}}}}}}}}}
| label11    = Format
| data11      = {{{format|{{{Format|}}}}}}
| class11    = hlist


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


| label13    = Studio
| label13    = Studio<!--this link is here deliberately; see the talk page-->
| data13      = {{{studio|}}}
| class13    = plainlist
| class13    = plainlist


| label14    = Venue
| label14    = Venue  
| data14      = {{{venue|{{{Venue|}}}}}}
| data14      = {{{venue|}}}


| label15    = Genre
| label15    = Genre
| data15      = {{{genre|{{{Genre|}}}}}}
| data15      = {{{genre|}}}
| class15    = category hlist
| class15    = category hlist


| label16    = Length
| label16    = Length
| data16      = {{#invoke:hms|main|duration={{{length|{{{Length|}}}}}}}}
| data16      = {{#invoke:hms|main|duration={{{length|}}}}}
| class16    = plainlist
| class16    = plainlist


| label17    = Label
| label17    = Label
| data17      = {{{label|{{{Label|}}}}}}
| data17      = {{{label|}}}
| class17    = hlist
| class17    = hlist


| label40    = <span class="nowrap">Songwriter(s)</span>
| label40    = <span class="nowrap">Songwriter(s)</span><!--this link is here deliberately; see the talk page-->
| data40      = {{{writer|}}}
| class40    = hlist
| class40    = hlist


| label41    = <span class="nowrap">Composer(s)</span>
| label41    = <span class="nowrap">Composer(s)</span><!--this link is here deliberately; see the talk page-->
| data41      = {{{composer|{{{Composer|}}}}}}
| data41      = {{{composer|}}}
| class41    = hlist
| class41    = hlist


| label42    = <span class="nowrap">Lyricist(s)</span>
| label42    = <span class="nowrap">Lyricist(s)</span>
| data42      = {{{lyricist|{{{Lyricist|}}}}}}
| data42      = {{{lyricist|}}}
| class42    = hlist
| class42    = hlist


| label43    = <span class="nowrap">Producer(s)</span>
| label43    = <span class="nowrap">Producer(s)</span><!--this link is here deliberately; see the talk page-->
| data43      = {{{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|[[:Category:Singles|single]]|singles|[[:Category:Singles|singles]]=&#32;singles}}|singles&#32;singles|singles}}|{{#invoke:String2 | ucfirst |{{{artist|}}}}} singles}} chronology}}}}
| header44    = {{#if:{{{tracks|}}}||{{#if:{{{prev_title|}}}{{{next_title|}}}|{{#if:{{{chronology|}}}|{{#invoke:String|replace|error_category=Music infoboxes with Module:String errors{{!}}C|{{{chronology}}}{{#switch:{{lc:{{{type|}}}}}|single|[[single (music)|single]]|singles|[[single (music)|singles]]=&#32;singles}}|singles&#32;singles|singles}}|{{#ifeq: {{str letter|{{delink| {{{artist|}}} }}}}|0|{{{artist|}}}|{{#invoke:String2 | ucfirst |{{{artist|}}}}}}} singles}} chronology}}}}
| rowcellstyle45 = {{#if:{{{__µ|}}}|display: none;}}
 
| data45      = {{#if:{{{tracks|{{{Tracks|}}}}}}||{{#if:{{{prev_title|}}}{{{next_title|}}}{{{prev_single|}}}{{{next_single|}}}|
| data45      = {{#if:{{{tracks|}}}||{{#if:{{{prev_title|}}}{{{next_title|}}}|
{{(!}} style="background: transparent; width: 100%; min-width: 100%; border-collapse: collapse;"
{{(!}} style="background: transparent; color: inherit; width: 100%; min-width: 100%; border-collapse: collapse; display: inline-table;"
{{!}}- style="line-height: 1.4em;"
{{!}}- style="line-height: 1.4em;"
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0;" {{!}} {{#if:{{{prev_title|}}}|"{{{prev_title|}}}" {{#if:{{{prev_title2|}}}| / "{{{prev_title2|}}}"}}{{#if:{{{prev_year|}}}|<br />({{{prev_year|}}})}} }}
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0;" {{!}} {{#if:{{{prev_title|}}}|"{{{prev_title|}}}" {{#if:{{{prev_version|}}}|({{{prev_version}}}) }}{{#if:{{{prev_concurrent|}}}|{{sp}}and "{{{prev_concurrent|}}}"}}{{#if:{{{prev_title2|}}}| / "{{{prev_title2|}}}"}}{{#if:{{{prev_year|}}}|<br />({{{prev_year|}}})}} }}
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding:.2em .1em;" {{!}} {{#if:{{{title2|}}}|"{{if empty|{{#switch:{{{title|}}}|{{BASEPAGENAME}}|{{PAGENAMEBASE}}='''{{{title}}}'''|{{{title|}}}}}|'''{{if empty|{{{name|}}}|{{{Name|}}}|{{PAGENAMEBASE}}}}'''}}" / "{{#switch:{{{title2}}}|{{BASEPAGENAME}}|{{PAGENAMEBASE}}='''{{{title2}}}'''|{{{title2}}}}}"|"'''{{if empty|{{{name|}}}|{{{Name|}}}|{{{title|}}}|{{PAGENAMEBASE}}}}'''"}} {{#if:{{{prev_year|}}}{{{next_year|}}}|<br />({{{year|{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|{{{released|{{{Released|}}}}}}|%d%d%d+}}}}})}}
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding:.2em .1em;" {{!}} {{#if:{{{title2|}}}|{{#if:{{{concurrent_title|}}}|"{{{concurrent_title|}}}" and{{sp}}|}}"{{if empty|{{#switch:{{{title|}}}|{{BASEPAGENAME}}|{{PAGENAMEBASE}}='''{{{title}}}'''|{{{title|}}}}}|'''{{if empty|{{{name|}}}|{{PAGENAMEBASE}}}}'''}}"{{#if:{{{version|}}}|&nbsp;({{{version}}})}} / "{{#switch:{{{title2}}}|{{BASEPAGENAME}}|{{PAGENAMEBASE}}='''{{{title2}}}'''|{{{title2}}}}}"|"'''{{if empty|{{{name|}}}|{{{title|}}}|{{PAGENAMEBASE}}}}'''"{{#if:{{{concurrent_title|}}}|{{sp}}and "{{{concurrent_title|}}}"|}}{{#if:{{{version|}}}|&nbsp;({{{version}}})}}}} {{#if:{{{prev_year|}}}{{{next_year|}}}|<br />({{{year|{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|{{{released|}}}|%d%d%d+}}}}})}}
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em 0 .2em .1em;" {{!}} {{#if:{{{next_title|}}}|"{{{next_title|}}}" {{#if:{{{next_title2|}}}| / "{{{next_title2|}}}"}}{{#if:{{{next_year|}}}|<br />({{{next_year|}}})}} }}
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em 0 .2em .1em;" {{!}} {{#if:{{{next_title|}}}|"{{{next_title|}}}" {{#if:{{{next_version|}}}|({{{next_version}}}) }}{{#if:{{{next_concurrent|}}}|{{sp}}and "{{{next_concurrent|}}}"}}{{#if:{{{next_title2|}}}| / "{{{next_title2|}}}"}}{{#if:{{{next_year|}}}|<br />({{{next_year|}}})}} }}
{{!)}}
{{!)}}
}}}}
}}}}
| data46      = {{{__µ|}}}


| header62      = {{#if:{{{tracks|{{{Tracks|}}}}}}| {{#if: {{{chronology|{{{Chronology|}}}}}}|{{{chronology|{{{Chronology|}}}}}}|{{#if:{{{album|{{{Album|}}}}}}{{{EP|}}}|''{{{album|{{{Album|}}}}}}{{{EP|}}}'' {{nowrap|track listing}}|Track listing}} }} }}
| header62      = {{#if:{{{tracks|}}}| {{#if: {{{chronology|}}}|{{{chronology}}}|{{#if:{{{album|}}}{{{EP|}}}|''{{{album|}}}{{{EP|}}}'' {{nowrap|track listing}}|Track listing}} }} }}
| rowcellstyle63 = {{#if:{{{tracks|{{{Tracks|}}}}}}|text-align:left}}
| rowcellstyle63 = {{#if:{{{tracks|}}}|text-align:left}}
| data63        = {{{tracks|{{{Tracks|}}}}}}
| data63        = {{{tracks|}}}


| belowclass = nomobile
| below = {{{misc|}}}
}}{{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}}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox song with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox song]] with unknown parameter "_VALUE_"|ignoreblank=y | type | EP | writer | title2 | tracks | recorded | length | prev_track | next_track | chronology | name | title | image | cover | cover_size | cover_upright | alt | border | caption | artist | album | language | English_title | english_title | A-side | B-side | written | published | released | studio | venue | genre | label | composer | lyricist | producer | prev_title | next_title | prev_title2 | prev_year | next_year | year | next_title2 | misc | version | prev_version | next_version | prev_concurrent | concurrent_title | next_concurrent }}{{main other|{{#if:{{{length|}}}|{{#if:{{#invoke:String|match|error_category=Music infoboxes with Module:String errors{{!}}C|1={{#invoke:hms|main|duration={{{length|}}}}}|2=class="duration"|plain=true|nomatch=}}|[[Category:Articles with hAudio microformats]]}}{{#if:{{{writer|}}}{{{composer|}}}{{{lyricist|}}}||[[Category:Song articles with missing songwriters]]}}{{#if:{{both|{{{writer|}}}|{{{composer|}}}}}|[[Category:Song articles with both composer and songwriter]]}}{{#if:{{both|{{{writer|}}}|{{{lyricist|}}}}}|[[Category:Song articles with both lyricist and songwriter]]}}{{#if:{{{lyricist|}}}|{{#if:{{{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|}}}{{{A-side|}}}{{{B-side|}}}{{{chronology|}}}{{{prev_title|}}}{{{prev_title2|}}}{{{prev_year|}}}{{{title|}}}{{{title2|}}}{{{year|}}}{{{next_title|}}}{{{next_title2|}}}{{{next_year|}}}{{{tracks|}}}{{{image|}}}{{{english_title|}}}x|2=</?t[drh][ >]|nomatch=}}|[[Category:Music infoboxes with malformed table placement|S]]}}}}<noinclude>
}}<noinclude>
<!-- please place category links on the /doc page; interwiki links to Wikidata, thank you! -->
<!-- please place language and category links on the /doc page and not here -->
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 16:35, 10 June 2025

"Infobox song"
Song