Template:Infobox song: Difference between revisions

From The Goon Show Depository

No edit summary
en>Jonesey95
(Fix Linter errors.)
Line 16: Line 16:
| header1    = {{Infobox song/link|{{{type|}}} }} {{#if:{{{artist|}}}|by {{{artist}}}}}
| header1    = {{Infobox song/link|{{{type|}}} }} {{#if:{{{artist|}}}|by {{{artist}}}}}
| rowclass2  = description
| rowclass2  = description
| header2    = {{#if:{{{album|}}}{{{from_album|}}}|from the album ''{{If empty|{{{album|}}}|{{{from_album|}}}|}}''|{{#if:{{{EP|}}}|from the EP ''{{{EP|}}}''}}}}
| header2    = {{#if:{{{album|}}}{{{from_album|}}}|from the album '' {{If empty|{{{album|}}}|{{{from_album|}}}|}} ''|{{#if:{{{EP|}}}|from the EP '' {{{EP|}}} ''}}}}


| label3      = Language
| label3      = Language
Line 24: Line 24:
| data4      = {{{English_title|{{{english_title|}}}}}}
| data4      = {{{English_title|{{{english_title|}}}}}}


| label5      = <span class="nowrap">[[w:A-side and B-side|A-side]]</span>
| label5      = <span class="nowrap">[[A-side and B-side|A-side]]</span>
| 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}}}"}}}}
| 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">[[w:A-side and B-side|B-side]]</span>
| label6      = <span class="nowrap">[[A-side and B-side|B-side]]</span>
| 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}}}"}}}}
| 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
Line 46: Line 46:
| class12    = plainlist
| class12    = plainlist


| label13    = [[w:Recording studio|Studio]]  
| label13    = [[Recording studio|Studio]]  
| data13      = {{{studio|}}}
| data13      = {{{studio|}}}
| class13    = plainlist
| class13    = plainlist
Line 53: Line 53:
| data14      = {{{venue|}}}
| data14      = {{{venue|}}}


| label15    = [[w:Music genre|Genre]]
| label15    = [[Music genre|Genre]]
| data15      = {{{genre|}}}
| data15      = {{{genre|}}}
| class15    = category hlist
| class15    = category hlist
Line 61: Line 61:
| class16    = plainlist
| class16    = plainlist


| label17    = [[w:Record label|Label]]
| label17    = [[Record label|Label]]
| data17      = {{{label|}}}
| data17      = {{{label|}}}
| class17    = hlist
| class17    = hlist


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


| label41    = <span class="nowrap">[[w:Composer|Composer(s)]]</span>
| label41    = <span class="nowrap">[[Composer|Composer(s)]]</span>
| data41      = {{{composer|}}}
| data41      = {{{composer|}}}
| class41    = hlist
| class41    = hlist


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


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


| 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|[[w:single (music)|single]]|singles|[[w:single (music)|singles]]=&#32;singles}}|singles&#32;singles|singles}}|{{#ifeq: {{str letter|{{delink| {{{artist|}}} }}}}|0|{{{artist|}}}|{{#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;}}
| rowcellstyle45 = {{#if:{{{__µ|}}}|display: none;}}
| data45      = {{#if:{{{tracks|}}}||{{#if:{{{prev_title|}}}{{{next_title|}}}|
| data45      = {{#if:{{{tracks|}}}||{{#if:{{{prev_title|}}}{{{next_title|}}}|

Revision as of 23:16, 23 January 2023

"Infobox song"
Song