Template:MusicInfobox: Difference between revisions

hope this works-
m (getting ready to test some things)
(hope this works-)
Line 17: Line 17:
  |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]]}}
  |  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}}}}}
| {{{Artist}}} }}
  |header3 =
  |header3 =
  | label3 = Additional Credits  
  | label3 = Additional Credits  
Line 24: Line 23:
  |header4 =
  |header4 =
  | label4 = Release Type  
  | label4 = Release Type  
  |  data4 = {{#switch: {{{ReleaseType}}}|Album=[[:Category:Albums|Album]]|EP =[[:Category:EPs|EP]]|Single=[[:Category:Singles|Single]]|Mix= [[:Category:Mixes|Mix]]|Compilation=[[:Category:Albums|Album]] ([[:Category:Compilations|Compilation]])|{{{ReleaseType}}}}}
  |  data4 = {{#switch: {{{ReleaseType}}}
              |Album=[[:Category:Albums|Album]]{{#if:{{{SortName|}}|[[Category:Albums|{{{SortName}}}]]|[[Category:Albums]]}}
              |EP =[[:Category:EPs|EP]]{{#if:{{{SortName|}}|[[Category:EPs|{{{SortName}}}]]|[[Category:EPs]]}}
              |Single=[[:Category:Singles|Single]]{{#if:{{{SortName|}}|[[Category:Singles|{{{SortName}}}]]|[[Category:Singles]]}}
              |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]]}}
              |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]]}}
              |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]]}}
              |EP (Split)=[[:Category:EPs|EP]] ([[:Category:Splits|Split]]){{#if:{{{SortName|}}|[[Category:EPs|{{{SortName}}}]]|[[Category:EPs]]}}{{#if:{{{SortName|}}|[[Category:Splits|{{{SortName}}}]]|[[Category:Splits]]}}
              |{{{ReleaseType}}}}}
  | label5 = Label  
  | label5 = Label  
  |  data5 = {{#switch: {{{Label}}} | Self-published = [[:Category:Self-Published Releases | Self-published ]] | {{{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 35: Line 45:
  |header8 =
  |header8 =
  | label8 = Release Date  
  | label8 = Release Date  
  |  data8 = {{#switch: {{{Date}}} | Unknown = [[:Category:Released at an Unknown Date | Unknown ]] | {{{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]]}}
  |header9 =
  |header9 =
  | label9 = Tracks  
  | label9 = Tracks  
Line 50: Line 60:
  |header14 =
  |header14 =
  | label14 = Previous Release  
  | label14 = Previous Release  
  |  data14 = {{#switch: {{{PrevRelease|}}} | N/A = N/A  | {{{PrevRelease|}}} }}
  |  data14 = {{{PrevRelease|}}}
  |header15 =
  |header15 =
  | label15 = Next Release  
  | label15 = Next Release  
Line 90: Line 100:
|ReleaseType = release type
|ReleaseType = release type
|Label = {{Label|label}}
|Label = {{Label|label}}
|SortName = use this for when releases need to be specially alphabetized!
|CatalogNumber = cat #
|CatalogNumber = cat #
|Formats = places online and offline
|Formats = places online and offline