Difference between revisions of "Template:Infobox music"

From Bronies.wiki
Jump to navigation Jump to search
m (Add chronology class.)
m (KimPegasus moved page Template:Infobox album to Template:Infobox music: Same template's also good for singles, music videos, etc. )
 
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
|image=  {{{cover|}}}
 
|image=  {{{cover|}}}
 
|image_caption={{{cover_caption|}}}
 
|image_caption={{{cover_caption|}}}
|heading1={{#if: {{{artist|}}} | An album by {{{artist}}} }}
+
|heading1={{#switch: {{{type|}}}
 +
  | single = Single
 +
  | 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}}} }} }}
Line 20: Line 26:
 
   | <table class="chronology"><tr>{{#if: {{{prev_title|}}}
 
   | <table class="chronology"><tr>{{#if: {{{prev_title|}}}
 
     | <td>''{{{prev_title}}}''{{#if: {{{prev_year|}}} | <br>({{{prev_year}}}) }}</td>
 
     | <td>''{{{prev_title}}}''{{#if: {{{prev_year|}}} | <br>({{{prev_year}}}) }}</td>
   }}<td>'''''{{{name|{{ROOTPAGENAME}}}}}'''''<br>({{#time: Y | 2012-01-07 }})</td>{{#if: {{{next_title|}}}
+
   }}<td>'''''{{{name|{{ROOTPAGENAME}}}}}'''''<br>({{#time: Y | {{{released}}} }})</td>{{#if: {{{next_title|}}}
 
     | <td>''{{{next_title}}}''{{#if: {{{next_year|}}} | <br>({{{next_year}}}) }}</td>
 
     | <td>''{{{next_title}}}''{{#if: {{{next_year|}}} | <br>({{{next_year}}}) }}</td>
 
   }}</tr></table>  
 
   }}</tr></table>  
 
}}
 
}}
}}</includeonly><noinclude>
+
}}[[Category:Albums]]{{#if: {{{released|}}} | [[Category:{{#time: Y | {{{released}}} }} releases]] }}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
[[Category:Infobox templates|Album]]
 
[[Category:Infobox templates|Album]]
 
</noinclude>
 
</noinclude>

Latest revision as of 11:11, 11 October 2020

This documentation is transcluded from Template:Infobox music/doc and needs to be edited separately.

Template:Infobox music/doc