Jump to content

Template:Infobox event: 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|}}}{{{performers|}}}{{{date|}}}{{{location|}}}|<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="performers"><label>Performers</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="date"><label>Date</label></data>
</tr>|}}
<data source="location"><label>Location</label></data>
{{#if:{{{performers|}}}|<tr>
</infobox><includeonly>[[Category:Events]]</includeonly><noinclude>{{Documentation}}</noinclude>
<th class="infobox-label" scope="row">Performers</th>
<td class="infobox-data">{{{performers|}}}</td>
</tr>|}}
{{#if:{{{date|}}}|<tr>
<th class="infobox-label" scope="row">Date</th>
<td class="infobox-data">{{{date|}}}</td>
</tr>|}}
{{#if:{{{location|}}}|<tr>
<th class="infobox-label" scope="row">Location</th>
<td class="infobox-data">{{{location|}}}</td>
</tr>|}}
</table>|}}<includeonly>[[Category:Events]]</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.