Actions

Template

Difference between revisions of "Episode list"

From Sonic Retro

(Example)
m (Text replacement - "Can an Evil Genius Crash on Your Couch for a Few Weeks?" to "Can an Evil Genius Crash on your Couch for a Few Days?")
 
(22 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly><tr class="vevent" style="text-align: center; {{#if:{{{TopColor|}}}|background:#{{{TopColor}}}|{{#ifeq:{{{ShortSummary|ʁ}}}|ʁ| |background:#F2F2F2}} }}">{{
+
<includeonly>|-
#ifeq:{{{EpisodeNumber|ʁ}}}|ʁ| |<td id="ep{{{EpisodeNumber}}}">{{{EpisodeNumber}}}</td>}}{{
+
!align="center" |{{#if: {{{episodenumber|}}}|{{{episodenumber}}}|}}
#ifeq:{{{EpisodeNumber2|ʁ}}}|ʁ| |<td>{{{EpisodeNumber2}}}</td>}}
+
|style="vertical-align:top;"|'''[[{{{page|{{{title}}}}}}|"''{{{title|{{{page}}}}}}''"]]'''<small>{{#if:
<td class="summary" style="text-align: left;">{{#if:{{{Title|}}}|"'''{{{Title}}}'''"}}{{{RTitle|}}} {{#if:{{{AltTitle|}}}|<br />"{{{AltTitle}}}"}}</td>{{
+
{{{AlternateTitle1|}}}|<br/>{{{AlternateTitle1Region}}}: {{{AlternateTitle1}}}}}{{#if:
#ifeq:{{{Aux1|ʁ}}}|ʁ| |<td>{{{Aux1}}}</td>}}{{
+
{{{AlternateTitle2|}}}|<br/>{{{AlternateTitle2Region}}}: {{{AlternateTitle2}}}}}{{#if:
#ifeq:{{{DirectedBy|ʁ}}}|ʁ| |<td>{{{DirectedBy}}}</td>}}{{
+
{{{AlternateTitle3|}}}|<br/>{{{AlternateTitle3Region}}}: {{{AlternateTitle3}}}}}</small>
#ifeq:{{{WrittenBy|ʁ}}}|ʁ| |<td>{{{WrittenBy}}}</td>}}{{
+
|style="vertical-align:top;"|{{{ReleaseDate1Region|}}}: {{{ReleaseDate1|}}}{{#if:
#ifeq:{{{Aux2|ʁ}}}|ʁ| |<td>{{{Aux2}}}</td>}}{{
+
{{{ReleaseDate2Region|}}}|<br/>{{{ReleaseDate2Region}}}: {{{ReleaseDate2}}}}}{{#if:
#ifeq:{{{Aux3|ʁ}}}|ʁ| |<td>{{{Aux3}}}</td>}}{{
+
{{{ReleaseDate3Region|}}}|<br/>{{{ReleaseDate3Region}}}: {{{ReleaseDate3}}}}}
#ifeq:{{{OriginalAirDate|ʁ}}}|ʁ| |<td>{{{OriginalAirDate}}}</td>}}{{
+
|style="vertical-align:top;"|{{#if: {{{description|}}}|{{{description}}}|}}</includeonly><noinclude>
#ifeq:{{{AltDate|ʁ}}}|ʁ| |<td>{{{AltDate}}}</td>}}{{
+
Use this template in a list of episodes.
#ifeq:{{{ProdCode|ʁ}}}|ʁ| |<td id="pc{{{ProdCode}}}">{{{ProdCode}}}</td>}}{{
+
==Parameters==
#ifeq:{{{Aux4|ʁ}}}|ʁ| |<td>{{{Aux4}}}</td>}}</tr>{{#ifeq:{{{ShortSummary|ʁ}}}|ʁ| |<tr><td class="description" style="border-bottom:3px solid #{{#if:{{{LineColor|}}}|{{{LineColor}}}|CCCCFF}}" colspan="{{#expr:{{#ifeq:{{{Title|ʁ}}}|ʁ|{{#ifeq:{{{AltTitle|ʁ}}}|ʁ|{{#ifeq:{{{RTitle|ʁ}}}|ʁ|0|1}}|1}}|1}}+{{#ifeq:{{{DirectedBy|ʁ}}}|ʁ|0|1}}+{{#ifeq:{{{WrittenBy|ʁ}}}|ʁ|0|1}}+{{#ifeq:{{{Aux1|ʁ}}}|ʁ|0|1}}+{{#ifeq:{{{Aux2|ʁ}}}|ʁ|0|1}}+{{#ifeq:{{{Aux3|ʁ}}}|ʁ|0|1}}+{{#ifeq:{{{Aux4|ʁ}}}|ʁ|0|1}}+{{#ifeq:{{{AltDate|ʁ}}}|ʁ|0|1}}+{{#ifeq:{{{OriginalAirDate|ʁ}}}|ʁ|0|1}}+{{#ifeq:{{{ProdCode|ʁ}}}|ʁ|0|1}}+{{#ifeq:{{{EpisodeNumber|ʁ}}}|ʁ|0|1}}+{{#ifeq:{{{EpisodeNumber2|ʁ}}}|ʁ|0|1}}}}">
+
<pre>
{{{ShortSummary|}}}&nbsp;</td></tr>}}</includeonly><noinclude>==Parameters==
 
{| style="margin: auto; border: 1px solid #CCCCFF; border-collapse: collapse; border-collapse:collapse; width:95%; text-align:left;" border="1" cellpadding="2"
 
|-
 
! colspan="4" style="background: #CCCCFF; text-align: center;" | ''Episode list'' parameters (and basic guidelines)
 
|-
 
! EpisodeNumber<br /><small>(optional)</small>
 
| colspan="3"| A number representing the episode's order in the series.  For example, the first episode would be 1 or 01, and so on.  When defined, this parameter also creates a link anchor, prefixed by "ep"; for example, <nowiki>"[[List of episodes#ep01]]"</nowiki>.
 
|-
 
! EpisodeNumber2<br /><small>(optional)</small>
 
| colspan="3"| A second episode number column. Useful for when a series aired in a different order, or only included certain episodes, etc.
 
|-
 
! Title
 
| colspan="3"| The title of the episode. The title will appear '''bold''' and in "quotes" when rendered, so it is not necessary to place them in quotes before hand. Only link to an episode article if it's already been created.
 
|-
 
! AltTitle<br /><small>(optional)</small>
 
| colspan="3"| An alternative title, such as the title of a foreign show's episode in its native language, or a title that was originally changed.  It will be listed below '''Title''' and be presented in "quotes".
 
|-
 
! RTitle<br /><small>(optional)</small>
 
| colspan="3"| Unformatted parameter that can be used to add a '''reference''' after Title, or can be used as a "'''raw''' title" to replace Title completely.
 
|-
 
! Aux1<small>(optional)</small>
 
| colspan="3"| Optional parameter. The meaning is specified by the table header.
 
|-
 
! DirectedBy<small>(optional)</small>
 
| colspan="3"| Who directed the episode.
 
|-
 
! WrittenBy<small>(optional)</small>
 
| colspan="3"| Primary writer(s) of the episode.
 
|-
 
! Aux2<br/>Aux3<small>(optional)</small>
 
| colspan="3"| Optional parameters. The meaning is specified by the table header.
 
|-
 
! OriginalAirDate<br /><small>(optional)</small>
 
| colspan="3"| This is the date the episode first aired on TV. Use {{tl|start date}}.
 
|-
 
! AltDate<br /><small>(optional)</small>
 
| colspan="3"| The next notable air date, such as the first air date of an anime in English. Do '''not'' use {{tl|start date}}, unless OriginalAirDate is not present.
 
|-
 
! ProdCode<br /><small>(optional)</small>
 
| colspan="3"| The production code in the series.  When defined, this parameter also creates a link anchor, prefixed by "pc"; for example, <nowiki>"[[List of episodes#pc01]]"</nowiki>.
 
|-
 
! Aux4<small>(optional)</small>
 
| colspan="3"| Optional parameter. The meaning is specified by the table header.
 
|-
 
! ShortSummary<br /><small>(optional)</small>
 
| colspan="3"| A short summary of the episode.  Make summaries specific to that episode (as in, a description that would normally not be confused with another episode).
 
|-
 
! LineColor<br /><small>(optional)</small>
 
| colspan="3"| Hex codes for the separator line between episode entries. Use code without the '''#'''.  '''#00ff00''' would be entered as '''00ff00'''.  When none is defined the color defaults to "#CCCCFF".
 
|-
 
! TopColor<br /><small>(optional)</small>
 
| colspan="3"| Colors the main row of information (that is, not the ShortSummary row).  When not defined, if ShortSummary is defined, this defaults to #F2F2F2; otherwise, it defaults to the table default.
 
|}
 
 
 
 
 
This is where information from the template is placed when rendered (''<small><nowiki>{{{LineColor}}}</nowiki></small> not shown, since there's no text to display, just a color''):
 
{|class="wikitable" style="width:100%; margin:auto; background:#FFFFFF;"
 
|-
 
{{Television Episode
 
|-
 
|EpisodeNumber= EpisodeNumber
 
|EpisodeNumber2= <small><nowiki>{{{EpisodeNumber2}}}</nowiki></small>
 
|Title= <small><nowiki>{{{Title}}}</nowiki></small>
 
|AltTitle= <small><nowiki>{{{AltTitle}}}</nowiki></small>
 
|RTitle= <small><nowiki>{{{RTitle}}}</nowiki></small>
 
|Aux1= <small><nowiki>{{{Aux1}}}</nowiki></small>
 
|Aux2= <small><nowiki>{{{Aux2}}}</nowiki></small>
 
|Aux3= <small><nowiki>{{{Aux3}}}</nowiki></small>
 
|Aux4= <small><nowiki>{{{Aux4}}}</nowiki></small>
 
|OriginalAirDate= <small><nowiki>{{{OriginalAirDate}}}</nowiki></small>
 
|AltDate= <small><nowiki>{{{AltDate}}}</nowiki></small>
 
|DirectedBy= <small><nowiki>{{{DirectedBy}}}</nowiki></small>
 
|WrittenBy= <small><nowiki>{{{WrittenBy}}}</nowiki></small>
 
|ProdCode= ProdCode
 
|ShortSummary= <small><nowiki>{{{ShortSummary}}}</nowiki></small>
 
}}
 
|}
 
 
 
==Using the template==
 
When using optional parameters (such as '''Aux1''', '''AltDate''', etc) only list the parameters that are being used, and adjust the table headers accordingly.  This will help avoid confusion when one entry has a parameter filled out and another does not.  A table cell will be open for a listed parameter, whether it is filled out or not.
 
 
 
To apply an entry to an episode listing add the following where the episode would go in the '''List of episodes'''.
 
 
 
{| style="border: none; background: transparent;"
 
|<pre>
 
 
{{Episode list
 
{{Episode list
|EpisodeNumber=
+
|episodenumber=
|EpisodeNumber2=
+
|title=
|Title=
+
|description=
|AltTitle=
+
|AlternateTitle1Region=
|RTitle=
+
|AlternateTitle1=
|Aux1=
+
|AlternateTitle2Region=
|DirectedBy=
+
|AlternateTitle2=
|WrittenBy=
+
|ReleaseDate1Region=
|Aux2=
+
|ReleaseDate1=4/4/09
|Aux3=
+
|ReleaseDate2Region=
|OriginalAirDate=
+
|ReleaseDate2=
|AltDate=
+
|ReleaseDate3Region=
|ProdCode=
+
|ReleaseDate3=
|Aux4=
 
|ShortSummary=
 
|LineColor=
 
 
}}
 
}}
 
</pre>
 
</pre>
|}
+
Required parameters are <tt>title</tt> and <tt>ReleaseDate1</tt>.  Optional parameters:
 +
*<tt>episodenumber</tt> - the number of the episode
 +
*<tt>Description</tt> - episode description
 +
*<tt>AlternateTitle1Region</tt> - If the episode has a different title in a different region, put the abbreviation for the region or language here (for example, EN or FR)
 +
*<tt>AlternateTitle1</tt> - The alternate title (1)
 +
*<tt>AlternateTitle2Region</tt> - Second alternate title region/language abbreviation (2)
 +
*<tt>AlternateTitle1</tt> - The alternate title (2)
 +
*<tt>ReleaseDate1</tt> - First release date (if there's only one, use only this parameter)
 +
*<tt>ReleaseDate1Region</tt> - For multiple release dates, the region
 +
*<tt>ReleaseDate2</tt> - Second release date
 +
*<tt>ReleaseDate2Region</tt> - Second release date region
 +
*<tt>ReleaseDate3</tt> - Third release date
 +
*<tt>ReleaseDate3Region</tt> - Third release date region
  
Because this is only part of a [[WP:TABLE|WikiTable]], you first need to '''open''' the WikiTable. You need to edit this example according to the optional parameters that you want to show in your table. For example to create a list with only EpisodeNumber, Title, OriginalAirDate, ProdCode, and ShortSummary parameters:
+
[[Category:Navigational templates|{{PAGENAME}}]]
  
<pre>
+
{{EpisodeTable|
{| class="wikitable" style="width:100%; margin:auto; background:#FFFFFF;"
 
|-
 
! width="20"|# !! Title !! width="120"|Original air date !! width="120"|Production code
 
</pre>
 
'''The Television episode template(s) would the follow here'''
 
<pre>
 
 
{{Episode list
 
{{Episode list
|EpisodeNumber=01
+
|episodenumber=1 (1)
|Title=Cartman Gets Probed
+
|title=The Sidekick
|OriginalAirDate={{start date|1997|08|13}}
+
|description=In order to keep Tails out of harm's way, Sonic fires him and auditions for a new sidekick.
|ProdCode=101
+
|AlternateTitle1Region=FR
|ShortSummary=Space aliens implant a transmitter in [[Eric Cartman|Cartman]] and abduct [[Kyle Broflovski|Kyle]]'s brother.
+
|AlternateTitle1=Le Coéquipier (The Teammate)
|LineColor=333333
+
|ReleaseDate1Region=US
 +
|ReleaseDate1=2014-11-08
 +
|ReleaseDate2Region=FR
 +
|ReleaseDate2=2014-11-19
 
}}
 
}}
</pre>
 
After the final episode entry/template you will need to close the WikiTable with:
 
<pre>
 
|}
 
</pre>
 
 
==Example==
 
This entry:
 
<pre>
 
 
{{Episode list
 
{{Episode list
|EpisodeNumber=01
+
|episodenumber=2 (2)
|Title=Cartman Gets Probed
+
|title=Can an Evil Genius Crash on your Couch for a Few Days?
|OriginalAirDate={{start date|1997|08|13}}
+
|description=[[Dr. Eggman]] moves in with Sonic and Tails while his fortress is repaired.
|ProdCode=101
+
|AlternateTitle1Region=FR
|ShortSummary=Space aliens implant a transmitter in [[Eric Cartman|Cartman]] and abduct [[Kyle Broflovski|Kyle]]'s brother.
+
|AlternateTitle1=Mon coloc est une génie du mal (My Roommate is an Evil Genius)
|LineColor=333333
+
|ReleaseDate1Region=US
 +
|ReleaseDate1=2014-11-08
 +
|ReleaseDate2Region=FR
 +
|ReleaseDate2=2014-11-19
 
}}
 
}}
</pre>
 
 
Would appear as follows (shown without table headers):
 
 
{| class="wikitable" style="margin:auto; width:100%; background:#FFFFFF;"
 
|-
 
! width="20"|# !! Title !! width="120"|Original airdate !! width="120"|Production code
 
{{Episode list
 
|EpisodeNumber=01
 
|Title=Cartman Gets Probed
 
|OriginalAirDate={{start date|1997|08|13}}
 
|ProdCode=101
 
|ShortSummary=Space aliens implant a transmitter in [[Eric Cartman|Cartman]] and abduct [[Kyle Broflovski|Kyle]]'s brother.
 
|LineColor=333333
 
 
}}
 
}}
|}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 07:01, 4 October 2023

Use this template in a list of episodes.

Parameters

{{Episode list
|episodenumber=
|title=
|description=
|AlternateTitle1Region=
|AlternateTitle1=
|AlternateTitle2Region=
|AlternateTitle2=
|ReleaseDate1Region=
|ReleaseDate1=4/4/09
|ReleaseDate2Region=
|ReleaseDate2=
|ReleaseDate3Region=
|ReleaseDate3=
}}

Required parameters are title and ReleaseDate1. Optional parameters:

  • episodenumber - the number of the episode
  • Description - episode description
  • AlternateTitle1Region - If the episode has a different title in a different region, put the abbreviation for the region or language here (for example, EN or FR)
  • AlternateTitle1 - The alternate title (1)
  • AlternateTitle2Region - Second alternate title region/language abbreviation (2)
  • AlternateTitle1 - The alternate title (2)
  • ReleaseDate1 - First release date (if there's only one, use only this parameter)
  • ReleaseDate1Region - For multiple release dates, the region
  • ReleaseDate2 - Second release date
  • ReleaseDate2Region - Second release date region
  • ReleaseDate3 - Third release date
  • ReleaseDate3Region - Third release date region
Episode # Episode Title Original Airdate Description
1 (1) "The Sidekick"
FR: Le Coéquipier (The Teammate)
US: 2014-11-08
FR: 2014-11-19
In order to keep Tails out of harm's way, Sonic fires him and auditions for a new sidekick.
2 (2) "Can an Evil Genius Crash on your Couch for a Few Days?"
FR: Mon coloc est une génie du mal (My Roommate is an Evil Genius)
US: 2014-11-08
FR: 2014-11-19
Dr. Eggman moves in with Sonic and Tails while his fortress is repaired.