Jump to content

Template:Infobox album: Difference between revisions

From wiki58
Replace Fandom component markup with native Wikipedia classes; retain source parameters, content, and archived history
m Remove generated paragraph spacing inside infobox cells; retain Wikipedia CSS
 
Line 2: Line 2:
{{#if:{{{title|}}}|<caption class="infobox-title">{{{title|}}}</caption>|}}
{{#if:{{{title|}}}|<caption class="infobox-title">{{{title|}}}</caption>|}}
{{#if:{{{image|}}}|<tr>
{{#if:{{{image|}}}|<tr>
<td class="infobox-image" colspan="2">
<td class="infobox-image" colspan="2">{{#ifeq:{{#sub:{{{image|}}}|0|1}}|[|{{{image|}}}|[[{{#ifeq:{{lc:{{#sub:{{{image|}}}|0|5}}}}|file:||{{#ifeq:{{lc:{{#sub:{{{image|}}}|0|6}}}}|image:||File:}}}}{{{image|}}}|frameless|220px]]}}{{#if:{{{imagecaption|}}}|<div class="infobox-caption">{{{imagecaption|}}}</div>|}}</td>
{{#ifeq:{{#sub:{{{image|}}}|0|1}}|[|{{{image|}}}|[[{{#ifeq:{{lc:{{#sub:{{{image|}}}|0|5}}}}|file:||{{#ifeq:{{lc:{{#sub:{{{image|}}}|0|6}}}}|image:||File:}}}}{{{image|}}}|frameless|220px]]}}{{#if:{{{imagecaption|}}}|
<div class="infobox-caption">
{{{imagecaption|}}}
</div>|}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{artist|}}}|<tr>
{{#if:{{{artist|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Artist</th>
Artist
<td class="infobox-data">{{{artist|}}}</td>
</th>
<td class="infobox-data">
{{{artist|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{released|}}}|<tr>
{{#if:{{{released|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Released</th>
Released
<td class="infobox-data">{{{released|}}}</td>
</th>
<td class="infobox-data">
{{{released|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{recorded|}}}|<tr>
{{#if:{{{recorded|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Recorded</th>
Recorded
<td class="infobox-data">{{{recorded|}}}</td>
</th>
<td class="infobox-data">
{{{recorded|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{length|}}}|<tr>
{{#if:{{{length|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Length</th>
Length
<td class="infobox-data">{{{length|}}}</td>
</th>
<td class="infobox-data">
{{{length|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{label|}}}|<tr>
{{#if:{{{label|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Label</th>
Label
<td class="infobox-data">{{{label|}}}</td>
</th>
<td class="infobox-data">
{{{label|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{producer|}}}|<tr>
{{#if:{{{producer|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Producer</th>
Producer
<td class="infobox-data">{{{producer|}}}</td>
</th>
<td class="infobox-data">
{{{producer|}}}
</td>
</tr>|}}
</tr>|}}
</table>|}}<includeonly>[[Category:Albums]]</includeonly><noinclude>
</table>|}}<includeonly>[[Category:Albums]]</includeonly><noinclude>

Latest revision as of 18:52, 11 November 2026

Native MediaWiki infobox using locally mirrored Wikipedia styles. Image fields accept a bare filename, a File:-prefixed name, or complete [[File:…]] markup. Fields, defaults, and categories retain the imported template API.