Template:MusicInfobox: Difference between revisions

m
no edit summary
(hope this works-)
mNo edit summary
Line 12: Line 12:
  |labelstyle  = background:#ddf; white-space: nowrap; padding-right: 15px;
  |labelstyle  = background:#ddf; white-space: nowrap; padding-right: 15px;
  |datastyle    =  
  |datastyle    =  
  |header1 = Information  
  |header1 = Information
  | label1 =  
  | label1 =  
  |  data1 =  
  |  data1 =  
  |header2 =
  |header2 =
  | label2 = Artist  
  | label2 = Artist  
  |  data2 = {{#switch: {{{Artist}}}|Various Artists=[[:Category:Releases by Various Artists|{{{Artist}}}]]{{#if:{{{SortName|}}}|[[Category:Releases by Various Artists|{{{SortName}}}]]|[[Category:Releases by Various Artists]]}}|{{{Artist}}}}}
  |  data2 = {{#switch: {{{Artist}}}|Various Artists=[[:Category:Releases by Various Artists|{{{Artist}}}]]{{#if:{{{SortName|}}}|[[Category:Releases by Various Artists|{{{SortName}}}]]|[[Category:Releases by Various Artists]]}}|{{{Artist}}}}}{{#if:{{{SortName|}}}|[[Category:Releases|{{{SortName}}}]]|[[Category:Releases]]}}
  |header3 =
  |header3 =
  | label3 = Additional Credits  
  | label3 = Additional Credits  
Line 24: Line 24:
  | label4 = Release Type  
  | label4 = Release Type  
  |  data4 = {{#switch: {{{ReleaseType}}}
  |  data4 = {{#switch: {{{ReleaseType}}}
               |Album=[[:Category:Albums|Album]]{{#if:{{{SortName|}}|[[Category:Albums|{{{SortName}}}]]|[[Category:Albums]]}}
               |Album=[[:Category:Albums|Album]]{{#if:{{{SortName|}}}|[[Category:Albums|{{{SortName}}}]]|[[Category:Albums]]}}
               |EP =[[:Category:EPs|EP]]{{#if:{{{SortName|}}|[[Category:EPs|{{{SortName}}}]]|[[Category:EPs]]}}
               |EP =[[:Category:EPs|EP]]{{#if:{{{SortName|}}}|[[Category:EPs|{{{SortName}}}]]|[[Category:EPs]]}}
               |Single=[[:Category:Singles|Single]]{{#if:{{{SortName|}}|[[Category:Singles|{{{SortName}}}]]|[[Category:Singles]]}}
               |Single=[[:Category:Singles|Single]]{{#if:{{{SortName|}}}|[[Category:Singles|{{{SortName}}}]]|[[Category:Singles]]}}
               |Mix= [[:Category:Mixes|Mix]]{{#if:{{{SortName|}}|[[Category:Mixes|{{{SortName}}}]]|[[Category:Mixes]]}}
               |Mix= [[:Category:Mixes|Mix]]{{#if:{{{SortName|}}}|[[Category:Mixes|{{{SortName}}}]]|[[Category:Mixes]]}}
               |Compilation=[[:Category:Albums|Album]] ([[:Category:Compilations|Compilation]]){{#if:{{{SortName|}}|[[Category:Albums|{{{SortName}}}]]|[[Category:Albums]]}}{{#if:{{{SortName|}}|[[Category:Compilations|{{{SortName}}}]]|[[Category:Compilations]]}}
               |Compilation=[[:Category:Albums|Album]] ([[:Category:Compilations|Compilation]]){{#if:{{{SortName|}}}|[[Category:Albums|{{{SortName}}}]]|[[Category:Albums]]}}{{#if:{{{SortName|}}}|[[Category:Compilations|{{{SortName}}}]]|[[Category:Compilations]]}}
               |Album (Collaboration)=[[:Category:Albums|Album]] ([[:Category:Collaborations|Collaboration]]){{#if:{{{SortName|}}|[[Category:Albums|{{{SortName}}}]]|[[Category:Albums]]}}{{#if:{{{SortName|}}|[[Category:Collaborations|{{{SortName}}}]]|[[Category:Collaborations]]}}
               |Album (Collaboration)=[[:Category:Albums|Album]] ([[:Category:Collaborations|Collaboration]]){{#if:{{{SortName|}}}|[[Category:Albums|{{{SortName}}}]]|[[Category:Albums]]}}{{#if:{{{SortName|}}}|[[Category:Collaborations|{{{SortName}}}]]|[[Category:Collaborations]]}}
               |EP (Collaboration)=[[:Category:EPs|EP]] ([[:Category:Collaborations|Collaboration]]){{#if:{{{SortName|}}|[[Category:EPs|{{{SortName}}}]]|[[Category:EPs]]}}{{#if:{{{SortName|}}|[[Category:Collaborations|{{{SortName}}}]]|[[Category:Collaborations]]}}
               |EP (Collaboration)=[[:Category:EPs|EP]] ([[:Category:Collaborations|Collaboration]]){{#if:{{{SortName|}}}|[[Category:EPs|{{{SortName}}}]]|[[Category:EPs]]}}{{#if:{{{SortName|}}}|[[Category:Collaborations|{{{SortName}}}]]|[[Category:Collaborations]]}}
               |Single (Collaboration)=[[:Category:Singles|Single]] ([[:Category:Collaborations|Collaboration]]){{#if:{{{SortName|}}|[[Category:Singles|{{{SortName}}}]]|[[Category:Singles]]}}{{#if:{{{SortName|}}|[[Category:Collaborations|{{{SortName}}}]]|[[Category:Collaborations]]}}
               |Single (Collaboration)=[[:Category:Singles|Single]] ([[:Category:Collaborations|Collaboration]]){{#if:{{{SortName|}}}|[[Category:Singles|{{{SortName}}}]]|[[Category:Singles]]}}{{#if:{{{SortName|}}}|[[Category:Collaborations|{{{SortName}}}]]|[[Category:Collaborations]]}}
               |Album (Split)=[[:Category:Albums|Album]] ([[:Category:Splits|Split]]){{#if:{{{SortName|}}|[[Category:Albums|{{{SortName}}}]]|[[Category:Albums]]}}{{#if:{{{SortName|}}|[[Category:Splits|{{{SortName}}}]]|[[Category:Splits]]}}
               |Album (Split)=[[:Category:Albums|Album]] ([[:Category:Splits|Split]]){{#if:{{{SortName|}}}|[[Category:Albums|{{{SortName}}}]]|[[Category:Albums]]}}{{#if:{{{SortName|}}}|[[Category:Splits|{{{SortName}}}]]|[[Category:Splits]]}}
               |EP (Split)=[[:Category:EPs|EP]] ([[:Category:Splits|Split]]){{#if:{{{SortName|}}|[[Category:EPs|{{{SortName}}}]]|[[Category:EPs]]}}{{#if:{{{SortName|}}|[[Category:Splits|{{{SortName}}}]]|[[Category:Splits]]}}
               |EP (Split)=[[:Category:EPs|EP]] ([[:Category:Splits|Split]]){{#if:{{{SortName|}}}|[[Category:EPs|{{{SortName}}}]]|[[Category:EPs]]}}{{#if:{{{SortName|}}}|[[Category:Splits|{{{SortName}}}]]|[[Category:Splits]]}}
               |{{{ReleaseType}}}}}
               |{{{ReleaseType}}}}}
  | label5 = Label  
  | label5 = Label  
  |  data5 = {{#switch:{{{Label}}}|Self-published=[[:Category:Self-Published Releases|Self-published]]{{#if:{{{SortName|}}|[[Category:Self-Published Releases|{{{SortName}}}]]|[[Category:Self-Published Releases]]}}|{{{Label}}}}}
  |  data5 = {{#switch:{{{Label}}}|Self-published=[[:Category:Self-Published Releases|Self-published]]{{#if:{{{SortName|}}}|[[Category:Self-Published Releases|{{{SortName}}}]]|[[Category:Self-Published Releases]]}}|{{{Label}}}}}
  |header6 =
  |header6 =
  | label6 = Catalog Number  
  | label6 = Catalog Number  
Line 45: Line 45:
  |header8 =
  |header8 =
  | label8 = Release Date  
  | label8 = Release Date  
  |  data8 = {{#switch:{{{Date}}}|Unknown=[[:Category:Released at an Unknown Date|Unknown]]|{{{Date}}}}}{{#if:{{{SortName|}}|[[Category:Released at an Unknown Date|{{{SortName}}}]]|[[Category:Released at an Unknown Date]]}}
  |  data8 = {{#switch:{{{Date}}}|Unknown=[[:Category:Released at an Unknown Date|Unknown]]{{#if:{{{SortName|}}}|[[Category:Released at an Unknown Date|{{{SortName}}}]]|[[Category:Released at an Unknown Date]]}}|{{{Date}}}}}
  |header9 =
  |header9 =
  | label9 = Tracks  
  | label9 = Tracks