Difference between revisions of "Template:Infobox music"

36 bytes added ,  18:33, 7 October 2020
Actually, let's switch that up
(Add type selection)
(Actually, let's switch that up)
Line 3: Line 3:
 
|image=  {{{cover|}}}
 
|image=  {{{cover|}}}
 
|image_caption={{{cover_caption|}}}
 
|image_caption={{{cover_caption|}}}
|heading1={{#ifeq: {{{type|}}} == "soundtrack" | Soundtrack album | {{#ifeq: {{{type|}}} == "live" | Live album | Studio album }} }} {{#if: {{{artist|}}} |  by {{{artist}}} }}
+
|heading1={{#switch: {{{type|}}}
 +
  | compilation = Compilation album
 +
  | live = Live album
 +
  | remix = Remix album
 +
  | soundtrack = Soundtrack album
 +
  | Studio album }} {{#if: {{{artist|}}} |  by {{{artist}}} }}
 
|key2=  Released
 
|key2=  Released
 
|value2= {{#if: {{{released| }}} | {{#time: F j, Y | {{{released}}} }} }}
 
|value2= {{#if: {{{released| }}} | {{#time: F j, Y | {{{released}}} }} }}