Jump to content

Template:Infobox album: Difference between revisions

From wiki58
m 1 revision: Updates made for portability
 
m Remove generated paragraph spacing inside infobox cells; retain Wikipedia CSS
 
(One intermediate revision by the same user not shown)
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">{{#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>
<data source="released"><label>Released</label></data>
</tr>|}}
<data source="recorded"><label>Recorded</label></data>
{{#if:{{{artist|}}}|<tr>
<data source="length"><label>Length</label></data>
<th class="infobox-label" scope="row">Artist</th>
<data source="label"><label>Label</label></data>
<td class="infobox-data">{{{artist|}}}</td>
<data source="producer"><label>Producer</label></data>
</tr>|}}
</infobox><includeonly>[[Category:Albums]]</includeonly><noinclude>{{Documentation}}</noinclude>
{{#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>

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.