Difference between revisions of "Template:Infobox music"

119 bytes added ,  18:28, 7 October 2020
Add type selection
(Automatically add some categories.)
(Add type selection)
Line 3: Line 3:
 
|image=  {{{cover|}}}
 
|image=  {{{cover|}}}
 
|image_caption={{{cover_caption|}}}
 
|image_caption={{{cover_caption|}}}
|heading1={{#if: {{{artist|}}} | An album by {{{artist}}} }}
+
|heading1={{#ifeq: {{{type|}}} == "soundtrack" | Soundtrack album | {{#ifeq: {{{type|}}} == "live" | Live 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}}} }} }}