Jump to content

Template:Infobox album: Difference between revisions

No edit summary
No edit summary
Tag: Manual revert
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="infobox" style="width:22em; border:1px solid #aaa; background:#f9f9f9; padding:1em; float:right; clear:right; margin:0 0 1em 1em; font-size:88%;">
<includeonly>{| class="wikitable" style="float:right; width:22em; margin:0 0 1em 1em; font-size:88%;"
<div style="background:{{#switch:{{{type|}}}
|-
|studio=lightblue
! colspan="2" style="background:{{Infobox album/color|{{{type|}}}}}; text-align:center; font-size:110%;" | {{{name|{{PAGENAME}}}}}
|live=burlywood
|-
|compilation=darkseagreen
{{#if:{{{cover|}}}
|ep=khaki
|{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{cover}}}|220px|center]]
|mixtape=lightcoral
{{!}}-
|soundtrack=gainsboro
}}
|#default=lightblue}}; text-align:center; font-size:110%; font-weight:bold; padding:0.5em; margin:-0.5em -0.5em 0.5em -0.5em;">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</div>
{{#if:{{{artist|}}}
 
|! colspan="2" style="background:{{Infobox album/color|{{{type|}}}}}; text-align:center;" {{!}} {{Infobox album/link|{{{type|}}}}}{{#if:{{{longtype|}}}|&nbsp;{{{longtype}}}}} by {{{artist}}}
{{#if:{{{cover|}}}|<div style="text-align:center; margin:0.5em 0;">[[File:{{{cover}}}|220px|{{{alt|}}}]]</div>}}
{{!}}-
 
}}
<table style="width:100%; border-collapse:collapse;">
{{#if:{{{released|}}}
{{#if:{{{artist|}}}|<tr><th style="text-align:left; background:#eee; padding:0.2em 0.5em; width:35%;">Artist</th><td style="padding:0.2em 0.5em;">{{{artist}}}</td></tr>}}
|! Released
{{#if:{{{released|}}}|<tr><th style="text-align:left; background:#eee; padding:0.2em 0.5em;">Released</th><td style="padding:0.2em 0.5em;">{{{released}}}</td></tr>}}
{{!}} {{{released}}}
{{#if:{{{recorded|}}}|<tr><th style="text-align:left; background:#eee; padding:0.2em 0.5em;">Recorded</th><td style="padding:0.2em 0.5em;">{{{recorded}}}</td></tr>}}
{{!}}-
{{#if:{{{studio|}}}|<tr><th style="text-align:left; background:#eee; padding:0.2em 0.5em;">Studio</th><td style="padding:0.2em 0.5em;">{{{studio}}}</td></tr>}}
}}
{{#if:{{{genre|}}}|<tr><th style="text-align:left; background:#eee; padding:0.2em 0.5em;">Genre</th><td style="padding:0.2em 0.5em;">{{{genre}}}</td></tr>}}
{{#if:{{{recorded|}}}
{{#if:{{{length|}}}|<tr><th style="text-align:left; background:#eee; padding:0.2em 0.5em;">Length</th><td style="padding:0.2em 0.5em;">{{{length}}}</td></tr>}}
|! Recorded
{{#if:{{{label|}}}|<tr><th style="text-align:left; background:#eee; padding:0.2em 0.5em;">Label</th><td style="padding:0.2em 0.5em;">{{{label}}}</td></tr>}}
{{!}} {{{recorded}}}
{{#if:{{{producer|}}}|<tr><th style="text-align:left; background:#eee; padding:0.2em 0.5em;">Producer(s)</th><td style="padding:0.2em 0.5em;">{{{producer}}}</td></tr>}}
{{!}}-
</table>
}}
 
{{#if:{{{studio|}}}
{{#if:{{{prev_title|}}}{{{next_title|}}}|<div style="text-align:center; margin-top:0.5em;">
|! Studio
<table style="width:100%; border-collapse:collapse; background:#eee;">
{{!}} {{{studio}}}
<tr>
{{!}}-
<td style="width:45%; text-align:left; padding:0.2em 0.5em;">{{#if:{{{prev_title|}}}|← {{{prev_title}}}{{#if:{{{prev_year|}}}|<br/><small>{{{prev_year}}}</small>}}}}</td>
}}
<td style="width:10%; text-align:center; padding:0.2em; font-weight:bold;">{{#if:{{{artist|}}}|{{{artist}}} chronology}}</td>
{{#if:{{{genre|}}}
<td style="width:45%; text-align:right; padding:0.2em 0.5em;">{{#if:{{{next_title|}}}|{{{next_title}}}{{#if:{{{next_year|}}}|<br/><small>{{{next_year}}}</small>}} →}}</td>
|! Genre
</tr>
{{!}} {{{genre}}}
</table></div>}}
{{!}}-
 
}}
{{#if:{{{misc|}}}|<div style="text-align:center; margin-top:0.5em;">{{{misc}}}</div>}}
{{#if:{{{length|}}}
</div></includeonly><noinclude>
|! Length
{{!}} {{{length}}}
{{!}}-
}}
{{#if:{{{label|}}}
|! Label
{{!}} {{{label}}}
{{!}}-
}}
{{#if:{{{producer|}}}
|! Producer(s)
{{!}} {{{producer}}}
{{!}}-
}}
{{#if:{{{writer|}}}
|! Writer(s)
{{!}} {{{writer}}}
{{!}}-
}}
{{#if:{{{prev_title|}}}{{{next_title|}}}
|! colspan="2" style="background:{{Infobox album/color|{{{type|}}}}}; text-align:center;" {{!}} {{{artist}}} chronology
{{!}}-
{{!}} colspan="2" style="text-align:center;" {{!}}
{{#if:{{{prev_title|}}}|← {{{prev_title}}}{{#if:{{{prev_year|}}}| ({{{prev_year}}})}}}}
{{#if:{{{next_title|}}}|{{{next_title}}}{{#if:{{{next_year|}}}| ({{{next_year}}})}} →}}
{{!}}-
}}
{{#if:{{{misc|}}}
|{{!}} colspan="2" style="text-align:center; padding:0;" {{!}} {{{misc}}}
{{!}}-
}}
|}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 17:11, 15 May 2026

   📄 Template documentation
   
   This is a documentation subpage for Template:Infobox album.
It contains usage information, categories, and other content that is not part of the original template page.

Usage

{{Infobox album
| name       = 
| type       = 
| cover      = 
| alt        = 
| artist     = 
| released   = 
| recorded   = 
| studio     = 
| genre      = 
| length     = 
| label      = 
| producer   = 
| prev_title = 
| prev_year  = 
| next_title = 
| next_year  = 
| misc       = 
}}

Parameters

  • type – studio, live, compilation, ep, mixtape, soundtrack
  • misc – Use
    Singles from Infobox album
    template for single list