Jump to content

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

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.