Jump to content

Template:Infobox album: Difference between revisions

From wiki58
m 1 revision: Updates made for portability
 
Replace Fandom component markup with native Wikipedia classes; retain source parameters, content, and archived history
Line 1: Line 1:
<infobox>
{{#if:{{{title|}}}{{{image|}}}{{{artist|}}}{{{released|}}}{{{recorded|}}}{{{length|}}}{{{label|}}}{{{producer|}}}|<table class="infobox">
<title source="title"/>
{{#if:{{{title|}}}|<caption class="infobox-title">{{{title|}}}</caption>|}}
<image source="image"><caption source="imagecaption"/></image>
{{#if:{{{image|}}}|<tr>
<data source="artist"><label>Artist</label></data>
<td class="infobox-image" colspan="2">
<data source="released"><label>Released</label></data>
{{#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|}}}|
<data source="recorded"><label>Recorded</label></data>
<div class="infobox-caption">
<data source="length"><label>Length</label></data>
{{{imagecaption|}}}
<data source="label"><label>Label</label></data>
</div>|}}
<data source="producer"><label>Producer</label></data>
</td>
</infobox><includeonly>[[Category:Albums]]</includeonly><noinclude>{{Documentation}}</noinclude>
</tr>|}}
{{#if:{{{artist|}}}|<tr>
<th class="infobox-label" scope="row">
Artist
</th>
<td class="infobox-data">
{{{artist|}}}
</td>
</tr>|}}
{{#if:{{{released|}}}|<tr>
<th class="infobox-label" scope="row">
Released
</th>
<td class="infobox-data">
{{{released|}}}
</td>
</tr>|}}
{{#if:{{{recorded|}}}|<tr>
<th class="infobox-label" scope="row">
Recorded
</th>
<td class="infobox-data">
{{{recorded|}}}
</td>
</tr>|}}
{{#if:{{{length|}}}|<tr>
<th class="infobox-label" scope="row">
Length
</th>
<td class="infobox-data">
{{{length|}}}
</td>
</tr>|}}
{{#if:{{{label|}}}|<tr>
<th class="infobox-label" scope="row">
Label
</th>
<td class="infobox-data">
{{{label|}}}
</td>
</tr>|}}
{{#if:{{{producer|}}}|<tr>
<th class="infobox-label" scope="row">
Producer
</th>
<td class="infobox-data">
{{{producer|}}}
</td>
</tr>|}}
</table>|}}<includeonly>[[Category:Albums]]</includeonly><noinclude>
Native MediaWiki infobox using locally mirrored Wikipedia styles. Image fields accept a bare filename, a <code>File:</code>-prefixed name, or complete <code><nowiki>[[File:…]]</nowiki></code> markup. Fields, defaults, and categories retain the imported template API.
 
{{Documentation}}</noinclude>

Revision as of 17:59, 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.