Jump to content

Template:Infobox episode: 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:{{{partOfSeason|}}}|<tr>
{{#if:{{{partOfSeason|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Season</th>
Season
<td class="infobox-data">{{{partOfSeason|}}}</td>
</th>
<td class="infobox-data">
{{{partOfSeason|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{episodeNumber|}}}|<tr>
{{#if:{{{episodeNumber|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Episode</th>
Episode
<td class="infobox-data">{{{episodeNumber|}}}</td>
</th>
<td class="infobox-data">
{{{episodeNumber|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{airDate|}}}|<tr>
{{#if:{{{airDate|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Air date</th>
Air date
<td class="infobox-data">{{{airDate|}}}</td>
</th>
<td class="infobox-data">
{{{airDate|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{writer|}}}|<tr>
{{#if:{{{writer|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Writer</th>
Writer
<td class="infobox-data">{{{writer|}}}</td>
</th>
<td class="infobox-data">
{{{writer|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{director|}}}|<tr>
{{#if:{{{director|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Director</th>
Director
<td class="infobox-data">{{{director|}}}</td>
</th>
<td class="infobox-data">
{{{director|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{previousEpisode|}}}{{{nextEpisode|}}}|<tr>
{{#if:{{{previousEpisode|}}}{{{nextEpisode|}}}|<tr>
<th class="infobox-header" colspan="2">
<th class="infobox-header" colspan="2">Episode guide</th>
Episode guide
</th>
</tr>
</tr>
<tr>
<tr>
<td class="infobox-full-data" colspan="2">
<td class="infobox-full-data" colspan="2"><table class="infobox-subbox">
<table class="infobox-subbox">
<tr>
<tr>
{{#if:{{{previousEpisode|}}}|<th class="infobox-label" scope="col">
{{#if:{{{previousEpisode|}}}|<th class="infobox-label" scope="col">Previous</th>|}}
Previous
{{#if:{{{nextEpisode|}}}|<th class="infobox-label" scope="col">Next</th>|}}
</th>|}}
{{#if:{{{nextEpisode|}}}|<th class="infobox-label" scope="col">
Next
</th>|}}
</tr>
</tr>
<tr>
<tr>
{{#if:{{{previousEpisode|}}}|<td class="infobox-data">
{{#if:{{{previousEpisode|}}}|<td class="infobox-data">{{{previousEpisode|}}}</td>|}}
{{{previousEpisode|}}}
{{#if:{{{nextEpisode|}}}|<td class="infobox-data">{{{nextEpisode|}}}</td>|}}
</td>|}}
{{#if:{{{nextEpisode|}}}|<td class="infobox-data">
{{{nextEpisode|}}}
</td>|}}
</tr>
</tr>
</table>
</table></td>
</td>
</tr>|}}
</tr>|}}
</table>|}}<includeonly>[[Category:Episodes]]</includeonly><noinclude>
</table>|}}<includeonly>[[Category:Episodes]]</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.