Jump to content

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