Template:Infobox song: Difference between revisions

removed "A-Side" and "B-Side" as both are better handled by "Single" and "Tracks" parameters respectively.
m (Donny moved page Template:Infobox song 2 to Template:Infobox song: replaces old html-based template)
(removed "A-Side" and "B-Side" as both are better handled by "Single" and "Tracks" parameters respectively.)
Line 27: Line 27:
| data4      = {{{English_title|{{{english_title|}}}}}}
| data4      = {{{English_title|{{{english_title|}}}}}}


| label5      = <span class="nowrap">A-side</span>
| label5      = Written
| 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      = {{{written|}}}
| class5      = plainlist


| label6      = <span class="nowrap">B-side</span>
| label6      = Published
| 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      = {{{published|}}}
| class6      = plainlist


| label7     = Written
| label7     = Released
| data7       = {{{written|}}}
| data7     = {{{released|}}}
| label8      = Published
| class7    = plainlist
| data8      = {{{published|}}}
 
| label10    = Released
| label8     = Format
| data10     = {{{released|}}}
| data8     = {{{format|}}}
 
| label9    = Recorded
| data9      = {{{recorded|}}}
| class9    = plainlist
 
| label10    = Studio
| data10     = {{{studio|}}}
| class10    = plainlist
| class10    = plainlist
| label11    = Format
 
| data11      = {{{format|}}}
| label11    = Venue
| label12    = Recorded
| data11      = {{{venue|}}}
| data12      = {{{recorded|}}}
 
| class12    = plainlist
| label12    = Genre
| label13    = Studio
| data12      = {{{genre|}}}
| data13      = {{{studio|}}}
| class12    = category hlist
 
| label13    = Length
| data13      = {{{length|}}}
| class13    = plainlist
| class13    = plainlist
| label14    = Venue
 
| data14      = {{{venue|}}}
| label14    = Label
| label15    = Genre
| data14      = {{{label|}}}
| data15      = {{{genre|}}}
| class14    = hlist
| class15    = category hlist
 
| label16    = Length
| label15    = <span class="nowrap">Songwriter(s)
| data16      = {{{length|}}}
| data15      = {{{writer|}}}
| class15    = plainlist
 
| label16    = <span class="nowrap">Composer(s)
| data16      = {{{composer|}}}
| class16    = plainlist
| class16    = plainlist
| label17     = Label
 
| data17      = {{{label|}}}
| label17    = <span class="nowrap">Lyricist(s)</span>
| class17    = hlist
| data17     = {{{lyricist|}}}
| label18    = <span class="nowrap">Songwriter(s)
| class17     = plainlist
| data18      = {{{writer|}}}
 
| class18    = plainlist
| label18     = [[Draft:Rivers_Cuomo_song_chronology|RC]]#
| label19    = <span class="nowrap">Composer(s)
| data18     = {{{rc#|}}}
| data19      = {{{composer|}}}
 
| class19    = plainlist
| label19     = [[COR]]#
| label20     = <span class="nowrap">Lyricist(s)</span>
| data19     = {{{cor#|}}}
| data20     = {{{lyricist|}}}
 
| class20     = plainlist
| label20     = <span class="nowrap">Producer(s)</span>
| label21     = RC#
| data20     = {{{producer|}}}
| data21     = {{{rc#|}}}
| class20     = hlist
| label22     = [[COR]]#
 
| data22     = {{{cor#|}}}
| label21     = Status
| label23     = <span class="nowrap">Producer(s)</span>
| data21     = {{{status|}}}
| data23     = {{{producer|}}}
 
| class23     = hlist
| label22     = <span class="nowrap">Live debut</span>
| label24     = Status
| data22     = {{{live_debut|}}}
| data24     = {{{status|}}}
 
| label25     = <span class="nowrap">Live debut</span>
| label23     = Last played
| data25     = {{{live_debut|}}}
| data23     = {{{last_played|}}}
| label26     = Last played
 
| data26     = {{{last_played|}}}
| label24     = Stream
| label27     = Stream
| data24     = {{#if:{{{spotify|}}}|
| data27     = {{#if:{{{spotify|}}}|
   [[File:Play on spotify.png]] [https://open.spotify.com/track/{{{spotify}}} Spotify]{{#if:{{{apple_music|}}}|<br>}}}}
   [[File:Play on spotify.png]] [https://open.spotify.com/track/{{{spotify}}} Spotify]{{#if:{{{apple_music|}}}|<br>}}}}
   {{#if:{{{apple_music|}}}|[[File:Play on Apple Music.png]] [https://geo.music.apple.com/album/{{{1=apple_music}}} Apple Music]}}
   {{#if:{{{apple_music|}}}|[[File:Play on Apple Music.png]] [https://geo.music.apple.com/album/{{{1=apple_music}}} Apple Music]}}


| header28   = {{#if:{{{riaa|}}}|<nowiki />}}
| header25   = {{#if:{{{riaa|}}}|<nowiki />}}


| label29     = Certification
| label26     = Certification
| data29     = {{{riaa|}}}
| data26     = {{{riaa|}}}


| header30   = {{#if:{{{reviews|}}}|Professional reviews|}}
| header27   = {{#if:{{{reviews|}}}|Professional reviews|}}
| data31     = {{#if:{{{reviews|}}}|<div style="text-align:left">{{#if:{{{reviews|}}}|{{{reviews|}}}}}</div>|}}
| data28     = {{#if:{{{reviews|}}}|<div style="text-align:left">{{#if:{{{reviews|}}}|{{{reviews|}}}}}</div>|}}


| header32   = {{#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|}}}|{{{artist|}}}}}}} singles chronology}}
| header29   = {{#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|}}}|{{{artist|}}}}}}} singles chronology}}
| data33     = {{#if:{{{prev_title|}}}{{{next_title|}}}|
| data30     = {{#if:{{{prev_title|}}}{{{next_title|}}}|
{{(!}} style="background: transparent; color: inherit; width: 100%; min-width: 100%; border-collapse: collapse; display: inline-table;"
{{(!}} 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;"
Line 106: Line 117:
}}
}}


| header34 = {{#if:{{{prev_rc_title|}}}{{{next_rc_title|}}}|Rivers Cuomo song chronology}}
| header31 = {{#if:{{{prev_rc_title|}}}{{{next_rc_title|}}}|Rivers Cuomo song chronology}}
| data35 = {{#invoke:RCChronology|makeRcRow
| data32 = {{#invoke:RCChronology|makeRcRow
   | prev_rc_title = {{{prev_rc_title|}}}
   | prev_rc_title = {{{prev_rc_title|}}}
   | this_rc_title = {{{this_rc_title|}}}
   | this_rc_title = {{{this_rc_title|}}}
Line 117: Line 128:
}}
}}


| header36       = {{#if:{{{tracks|}}}| {{#if: {{{chronology|}}}|{{{chronology}}}|{{#if:{{{album|}}}{{{EP|}}}{{{single|}}}|''{{{album|}}}{{{EP|}}}{{{single|}}}'' {{nowrap|track listing}}|Track listing}} }} }}
| header33       = {{#if:{{{tracks|}}}| {{#if: {{{chronology|}}}|{{{chronology}}}|{{#if:{{{album|}}}{{{EP|}}}{{{single|}}}|''{{{album|}}}{{{EP|}}}{{{single|}}}'' {{nowrap|track listing}}|Track listing}} }} }}
| rowcellstyle37 = {{#if:{{{tracks|}}}|text-align:left}}
| rowcellstyle37 = {{#if:{{{tracks|}}}|text-align:left}}
| data37         = {{{tracks|}}}
| data34         = {{{tracks|}}}
| below = {{{misc|}}}
| below = {{{misc|}}}
}}{{#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 | EP | single | language | English_title | english_title | A-side | B-side | written | published | released | format | studio | venue | genre | label | composer | lyricist | producer | reviews | status | rc# | cor# | live_debut | last_played | spotify | apple_music | riaa | prev_rc_title | this_rc_title | next_rc_title | use_cor# | 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 }}</div>
}}{{#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 | EP | single | language | English_title | english_title | A-side | B-side | written | published | released | format | studio | venue | genre | label | composer | lyricist | producer | reviews | status | rc# | cor# | live_debut | last_played | spotify | apple_music | riaa | prev_rc_title | this_rc_title | next_rc_title | use_cor# | 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 }}</div>