Template:Infobox episode: Difference between revisions
Appearance
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|}}}{{{partOfSeason|}}}{{{episodeNumber|}}}{{{airDate|}}}{{{writer|}}}{{{director|}}}{{{previousEpisode|}}}{{{nextEpisode|}}}|<table class="infobox"> | ||
{{#if:{{{title|}}}|<caption class="infobox-title">{{{title|}}}</caption>|}} | |||
{{#if:{{{image|}}}|<tr> | |||
<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> | |||
</tr>|}} | |||
{{#if:{{{partOfSeason|}}}|<tr> | |||
<th class="infobox-label" scope="row"> | |||
Season | |||
</ | </th> | ||
<td class="infobox-data"> | |||
{{{partOfSeason|}}} | |||
</td> | |||
</tr>|}} | |||
{{#if:{{{episodeNumber|}}}|<tr> | |||
<th class="infobox-label" scope="row"> | |||
Episode | |||
</th> | |||
<td class="infobox-data"> | |||
{{{episodeNumber|}}} | |||
</td> | |||
</tr>|}} | |||
{{#if:{{{airDate|}}}|<tr> | |||
<th class="infobox-label" scope="row"> | |||
Air date | |||
</th> | |||
<td class="infobox-data"> | |||
{{{airDate|}}} | |||
</td> | |||
</tr>|}} | |||
{{#if:{{{writer|}}}|<tr> | |||
<th class="infobox-label" scope="row"> | |||
Writer | |||
</th> | |||
<td class="infobox-data"> | |||
{{{writer|}}} | |||
</td> | |||
</tr>|}} | |||
{{#if:{{{director|}}}|<tr> | |||
<th class="infobox-label" scope="row"> | |||
Director | |||
</th> | |||
<td class="infobox-data"> | |||
{{{director|}}} | |||
</td> | |||
</tr>|}} | |||
{{#if:{{{previousEpisode|}}}{{{nextEpisode|}}}|<tr> | |||
<th class="infobox-header" colspan="2"> | |||
Episode guide | |||
</th> | |||
</tr> | |||
<tr> | |||
<td class="infobox-full-data" colspan="2"> | |||
<table class="infobox-subbox"> | |||
<tr> | |||
{{#if:{{{previousEpisode|}}}|<th class="infobox-label" scope="col"> | |||
Previous | |||
</th>|}} | |||
{{#if:{{{nextEpisode|}}}|<th class="infobox-label" scope="col"> | |||
Next | |||
</th>|}} | |||
</tr> | |||
<tr> | |||
{{#if:{{{previousEpisode|}}}|<td class="infobox-data"> | |||
{{{previousEpisode|}}} | |||
</td>|}} | |||
{{#if:{{{nextEpisode|}}}|<td class="infobox-data"> | |||
{{{nextEpisode|}}} | |||
</td>|}} | |||
</tr> | |||
</table> | |||
</td> | |||
</tr>|}} | |||
</table>|}}<includeonly>[[Category:Episodes]]</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.
Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)
Editors can experiment in this template's sandbox and test case pages.
Description
To use this template, copy the following code and fill in the appropriate fields.
Syntax
{{infobox episode
| title =
| partOfSeason =
| episodeNumber =
| image = [e.g. "Example.jpg"]
| airDate =
| writer =
| director =
| previousEpisode =
| nextEpisode =
}}
Sample output
|
Season |
One |
||||
|---|---|---|---|---|---|
|
Episode |
Three |
||||
|
Air date |
Unaired |
||||
|
Writer |
D. Righta |
||||
|
Director |
A. di Rektour |
||||
|
Episode guide |
|||||
|
|||||
{{infobox episode
| title = Flower of Babel
| partOfSeason = One
| episodeNumber = Three
| image = Example.jpg
| airDate = Unaired
| writer = D. Righta
| director = A. di Rektour
| previousEpisode = Episode Two
| nextEpisode = Episode Four
}}
