Template:Episode list/sublist

{{#ifeq: Episode list/sublist | sandbox

|
Template:Template sandbox notice

}}{{#switch:

 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Template|Template
   | template
   | other
   }}
 }}

| template = {{#ifeq: | sysop

 | {{#ifeq:{{#switch:{{#switch:{{#ifeq:-|-sysop|move|}}
  |semi
  |autoconfirmed=semi
  |administrator
  |full
  |sysop=indef
  |move=move
  |#default=indef}}
 |move={{#ifeq:
     {{#switch:{{#ifeq:episode list/sublist/template|episode list/sublist/template|undefined|{{#ifeq:episode list/sublist|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=
       |#default=}}
     |sysop|yes|no
   }}
 |create={{#if:
     {{#switch:{{#ifeq:episode list/sublist/template|episode list/sublist/template|undefined|{{#ifeq:episode list/sublist|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=
       |#default=}}
     |yes|no
   }}

|#default={{#if:

     {{#switch:{{#ifeq:episode list/sublist/template|episode list/sublist/template|undefined|{{#ifeq:episode list/sublist|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=
       |#default=}}
     |{{#ifeq:{{#switch:
                |semi
                |autoconfirmed=autoconfirmed
                |administrator
                |full
                |sysop=sysop
                |#default=}}
        |{{#switch:{{#ifeq:episode list/sublist/template|episode list/sublist/template|undefined|{{#ifeq:episode list/sublist|sandbox|sysop|undefined}}}}
           |semi
           |autoconfirmed=autoconfirmed
           |administrator
           |full
           |sysop=sysop
           |undefined=
           |#default=}}
        |no|yes
      }}
  |no}}

}}|yes|{{#ifeq:yes|yes|

| Template:Mbox }}|}}{{#ifeq:{{#ifeq:template|template|{{#switch:{{#ifeq:-|-sysop|move|}}

  |semi
  |autoconfirmed={{#ifeq:|sysop|}}
  |move=
  |administrator
  |full
  |sysop
  |#default=}}}}{{#ifeq:template|file|[[category:{{#switch:
  |semi
  |autoconfirmed=semi-protected
  |administrator
  |full
  |sysop
  |#default=protected}} images|episode list/sublist]]}}|no||{{#ifeq:Template|Template|{{#switch:{{#ifeq:-|-sysop|move|}}
  |semi
  |autoconfirmed={{#ifeq:|sysop|}}
  |move=
  |administrator
  |full
  |sysop
  |#default=}}}}{{#ifeq:Template|File|[[Category:{{#switch:
  |semi
  |autoconfirmed=Semi-protected
  |administrator
  |full
  |sysop
  |#default=Protected}} images|Episode list/sublist]]}}}}
 | {{#if: 
   | {{#ifeq:{{#switch:{{#switch:{{#ifeq:-|-sysop|move|}}
  |semi
  |autoconfirmed=semi
  |administrator
  |full
  |sysop=indef
  |move=move
  |#default=indef}}
 |move={{#ifeq:
     {{#switch:{{#ifeq:episode list/sublist/template|episode list/sublist/template|undefined|{{#ifeq:episode list/sublist|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=
       |#default=}}
     |sysop|yes|no
   }}
 |create={{#if:
     {{#switch:{{#ifeq:episode list/sublist/template|episode list/sublist/template|undefined|{{#ifeq:episode list/sublist|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=
       |#default=}}
     |yes|no
   }}

|#default={{#if:

     {{#switch:{{#ifeq:episode list/sublist/template|episode list/sublist/template|undefined|{{#ifeq:episode list/sublist|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=
       |#default=}}
     |{{#ifeq:{{#switch:
                |semi
                |autoconfirmed=autoconfirmed
                |administrator
                |full
                |sysop=sysop
                |#default=}}
        |{{#switch:{{#ifeq:episode list/sublist/template|episode list/sublist/template|undefined|{{#ifeq:episode list/sublist|sandbox|sysop|undefined}}}}
           |semi
           |autoconfirmed=autoconfirmed
           |administrator
           |full
           |sysop=sysop
           |undefined=
           |#default=}}
        |no|yes
      }}
  |no}}

}}|yes|{{#ifeq:yes|yes|

| Template:Mbox }}|}}{{#ifeq:{{#ifeq:template|template|{{#switch:{{#ifeq:-|-sysop|move|}}

  |semi
  |autoconfirmed={{#ifeq:|sysop|}}
  |move=
  |administrator
  |full
  |sysop
  |#default=}}}}{{#ifeq:template|file|[[category:{{#switch:
  |semi
  |autoconfirmed=semi-protected
  |administrator
  |full
  |sysop
  |#default=protected}} images|episode list/sublist]]}}|no||{{#ifeq:Template|Template|{{#switch:{{#ifeq:-|-sysop|move|}}
  |semi
  |autoconfirmed={{#ifeq:|sysop|}}
  |move=
  |administrator
  |full
  |sysop
  |#default=}}}}{{#ifeq:Template|File|[[Category:{{#switch:
  |semi
  |autoconfirmed=Semi-protected
  |administrator
  |full
  |sysop
  |#default=Protected}} images|Episode list/sublist]]}}}}
   | 
   }}
 }}

| other | #default =

}}
{{#ifeq: ¬ |

|

|
{{
 #if: 
 | 
 | 
   {{
   #if: {{#ifexist: 
   {{#if: Template:Episode list/doc
   | Template:Episode list/doc   
   | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Episode list/sublist | sandbox | testcases = Episode list/sublist | #default = Episode list/sublist }}/doc

   }}
 | yes
 }}
   | [[{{fullurl:{{#if: Template:Episode list/doc
 | Template:Episode list/doc
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Episode list/sublist | sandbox | testcases = Episode list/sublist | #default = Episode list/sublist }}/doc

 }}|action=edit}} edit]] [purge] 
   | 
     [[{{fullurl:{{#if: Template:Episode list/doc
 | Template:Episode list/doc
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Episode list/sublist | sandbox | testcases = Episode list/sublist | #default = Episode list/sublist }}/doc

 }}| action=edit&preload={{
       #if:  
       | 
       | {{#ifeq: Template | File
         | Template:Documentation/preload-filespace
         | Template:Documentation/preload
         }} }} }} create]]
   }}
 }} {{#switch: ¬
 | ¬ =   
   {{#switch: Template 
   | Template = 50px Template documentation
   | File = Summary
   | #default = Documentation
   }}
 | #default = 
   ¬
}}

}} {{#switch: {{#if:|1|0}}{{#if:Template:Episode list/doc|1|0}}{{#ifexist:Template:Episode list/doc|1|0}}{{#ifexist:{{#switch: Template

 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Episode list/sublist | sandbox | testcases = Episode list/sublist | #default = Episode list/sublist }}/doc|1|0}} | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 | 1111 = | 0110 | 0111 = {{#ifeq: episode list/sublist | doc

 | 

{{

   #ifeq: show | show
   | Template:Mbox
   }}{{
   #if: 
   | 
   | [[Category:{{
     #if: Template
     | Template
     | Article
   }} documentation {{#ifeq:Template|Template|pages}}]]
 }}

| }} {{#ifeq:|yes

| {{#ifeq:{{#if:| {{{smallimage}}} | 40x40px }}|none | | }}

{{#if:{{#if: | {{{smallimageright}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none

 | 
|
 }}

}}

{{#switch:style

| | speedy | delete | content | style | move | protection | notice =

| #default =
This message box is using an invalid "type=style" parameter and needs fixing.

}}

| {{#ifeq:40x40px|none | | }}

{{#if: | {{#ifeq:|none

 | 
|
 }}

}}

{{#switch:style

| | speedy | delete | content | style | move | protection | notice =

| #default =
This message box is using an invalid "type=style" parameter and needs fixing.

}} }}{{#ifeq: Episode list/sublist | Episode list/sublist | }}

For lists that include only titles, air dates, etc, with no summary, remove |ShortSummary=, which removes cell and line separator colouring.

Contents

[edit] Parameters

Episode list parameters (and basic guidelines)
EpisodeNumber
(optional)
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, "[[List of episodes#ep01]]".
EpisodeNumber2
(optional)
A second episode number column. Useful for when a series aired in a different order, or only included certain episodes, etc.
Title 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 beforehand. Only link to an episode article if it has already been created.
RTitle
(optional)
Unformatted parameter that can be used to add a reference after Title, or can be used as a "raw title" to replace Title completely.
AltTitle
(optional)
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".
Aux1
(optional)
Optional parameter. The meaning is specified by the table header.
DirectedBy
(optional)
Who directed the episode.
WrittenBy
(optional)
Primary writer(s) of the episode.
Aux2 & Aux3
(optional)
Optional parameters. The meaning is specified by the table header.
OriginalAirDate
(optional)
This is the date the episode first aired on TV, or is scheduled to air. Use {{start date}}.
AltDate
(optional)
The next notable air date, such as the first air date of an anime in English. Do not use {{start date}}, unless OriginalAirDate is not present.
ProdCode
(optional)
The production code in the series. When defined, this parameter also creates a link anchor, prefixed by "pc"; for example, "[[List of episodes#pc01]]".
Aux4
(optional)
Optional parameter. The meaning is specified by the table header.
ShortSummary
(optional)
A short 100-300 word summary of the episode. Make summaries specific to that episode (as in, a description that would normally not be confused with another episode). Episode summaries must not be copied from other sources, as this violates WP:COPYRIGHT.
LineColor
(optional)
Hex codes for the separator line between episode entries. Use code without the #, #00ff00 would be entered as 00ff00, using a #, or anything but a valid hex code will result in an invalid syntax. When none is defined the color defaults to "#CCCCFF".
TopColor
(optional)
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 ({{{LineColor}}} not shown, since there's no text to display, just a color):

<tr class="vevent" style="text-align: center; {{#if:{{ #ifeq: - | Episode_list.2Fsublist | {{ #ifeq: {{ #expr: EpisodeNumber mod 2 }} | 0 | {{ #ifeq: ¬ | ¬ | E9E9E9 | }} | {{ #ifeq: ¬ | ¬ | | }} }} | }}|background:#{{ #ifeq: - | Episode_list.2Fsublist | {{ #ifeq: {{ #expr: EpisodeNumber mod 2 }} | 0 | {{ #ifeq: ¬ | ¬ | E9E9E9 | }} | {{ #ifeq: ¬ | ¬ | | }} }} | }}|{{#ifeq:{{ #ifeq: - | Episode_list.2Fsublist | ʁ | {{{ShortSummary}}} }}|ʁ| |background:#F2F2F2}} }}">{{
  1. ifeq:EpisodeNumber|ʁ| |<td id="epEpisodeNumber">EpisodeNumber</td>}}{{
  2. ifeq:{{{EpisodeNumber2}}}|ʁ| |<td>{{{EpisodeNumber2}}}</td>}}
<td class="summary" style="text-align: left;">{{#if:{{{Title}}}|"{{{Title}}}"}}{{{RTitle}}} {{#if:{{{AltTitle}}}|
"{{{AltTitle}}}"}}</td>{{
  1. ifeq:{{{Aux1}}}|ʁ| |<td>{{{Aux1}}}</td>}}{{
  2. ifeq:{{{DirectedBy}}}|ʁ| |<td>{{{DirectedBy}}}</td>}}{{
  3. ifeq:{{{WrittenBy}}}|ʁ| |<td>{{{WrittenBy}}}</td>}}{{
  4. ifeq:{{{Aux2}}}|ʁ| |<td>{{{Aux2}}}</td>}}{{
  5. ifeq:{{{Aux3}}}|ʁ| |<td>{{{Aux3}}}</td>}}{{
  6. ifeq:{{{OriginalAirDate}}}|ʁ| |<td>{{{OriginalAirDate}}}</td>}}{{
  7. ifeq:{{{AltDate}}}|ʁ| |<td>{{{AltDate}}}</td>}}{{
  8. ifeq:ProdCode|ʁ| |<td id="pcProdCode">ProdCode</td>}}{{
  9. ifeq:{{{Aux4}}}|ʁ| |<td>{{{Aux4}}}</td>}}</tr>{{#ifeq:{{
#ifeq: - | Episode_list.2Fsublist | ʁ | {{{ShortSummary}}} }}|ʁ| |<tr><td class="description" style="border-bottom:3px solid #{{#if:||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}}}}"> {{ #ifeq: - | Episode_list.2Fsublist | ʁ | {{{ShortSummary}}} }} </td></tr>}}{{#ifeq:{{ #ifeq: - | Episode_list.2Fsublist | ʁ | {{{ShortSummary}}} }}|ʁ||{{#if:||{{#switch: {{#if:
{{{demospace}}} main other
   }} 
 }}
main = other #default =

}}}}}}{{#if:EpisodeNumber||}}

[edit] 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.

{{Episode list
 | EpisodeNumber=
 | EpisodeNumber2=
 | Title=
 | RTitle=
 | AltTitle=
 | Aux1=
 | DirectedBy=
 | WrittenBy=
 | Aux2=
 | Aux3=
 | OriginalAirDate=
 | AltDate=
 | ProdCode=
 | Aux4=
 | ShortSummary=
 | LineColor=
}}

Because this is only part of a 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:

{|class="wikitable" style="width:100%; margin:auto; background:#FFF; table-layout:fixed;"
|-
! style="width:3em;"  | No.
! Title
! style="width:12em;" | Original air date
! style="width:12em;" | Production code
|-

The Television episode template(s) would the follow here

{{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
}}

After the final episode entry/template you will need to close the WikiTable with:

 |}

[edit] Example

This entry:

{{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
}}

Would appear as follows (shown without table headers):

# Title Original airdate Production code

<tr class="vevent" style="text-align: center; {{#if:|background:#{{{TopColor}}}|{{#ifeq:Space aliens implant a transmitter in Cartman and abduct Kyle's brother.|ʁ| |background:#F2F2F2}} }}">{{

  1. ifeq:01|ʁ| |<td id="ep01">01</td>}}{{
  2. ifeq:ʁ|ʁ| |<td>{{{EpisodeNumber2}}}</td>}}

<td class="summary" style="text-align: left;">{{#if:Cartman Gets Probed|"Cartman Gets Probed"}} {{#if:|
"{{{AltTitle}}}"}}</td>{{

  1. ifeq:ʁ|ʁ| |<td>{{{Aux1}}}</td>}}{{
  2. ifeq:ʁ|ʁ| |<td>{{{DirectedBy}}}</td>}}{{
  3. ifeq:ʁ|ʁ| |<td>{{{WrittenBy}}}</td>}}{{
  4. ifeq:ʁ|ʁ| |<td>{{{Aux2}}}</td>}}{{
  5. ifeq:ʁ|ʁ| |<td>{{{Aux3}}}</td>}}{{
  6. ifeq:{{#if:
{{#if: {{{4}}}:{{{5}}}{{#if: :{{{6}}} }}, }} }}{{#if: 1997 {{#if: 08 {{#if: 13 {{#expr:13}} {{#if:08|{{#switch:{{#if:08 {{#switch:08 jan=1 feb=2 mar=3 april=4 may=5 jun=6 jul=7 aug=8 sep|sept=9 oct=10 nov=11 dec=12 {{#ifexpr:08<0 {{#ifexpr:((08)round 0)!=(08) {{#expr:12-(((0.5-(08))round 0)mod 12)}} {{#expr:12-(((11.5-(08))round 0)mod 12)}}
  }}
{{#expr:(((10.5+08)round 0)mod 12)+1}}
 }}
}}
Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}}|{{#if:08|{{#switch:{{#if:08

{{#switch:08 jan=1 feb=2 mar=3 april=4 may=5 jun=6 jul=7 aug=8 sep|sept=9 oct=10 nov=11 dec=12 {{#ifexpr:08<0 {{#ifexpr:((08)round 0)!=(08) {{#expr:12-(((0.5-(08))round 0)mod 12)}} {{#expr:12-(((11.5-(08))round 0)mod 12)}}
  }}
{{#expr:(((10.5+08)round 0)mod 12)+1}}
 }}
}}
Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} {{#expr:13}},}} 1997|{{#if:08|{{#switch:{{#if:08

{{#switch:08 jan=1 feb=2 mar=3 april=4 may=5 jun=6 jul=7 aug=8 sep|sept=9 oct=10 nov=11 dec=12 {{#ifexpr:08<0 {{#ifexpr:((08)round 0)!=(08) {{#expr:12-(((0.5-(08))round 0)mod 12)}} {{#expr:12-(((11.5-(08))round 0)mod 12)}}
  }}
{{#expr:(((10.5+08)round 0)mod 12)+1}}
 }}
}}
Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} 1997}}|1997}}}}{{#if:

Z|UTC|{{{7}}}}})}} ({{#if: 1997 1997{{#if: 08 -08{{#if: 13 -13 }} }}{{#if: T{{{4}}}{{#if: :{{{5}}}{{#if: ʁ| |<td>{{#if: {{#if: {{{4}}}:{{{5}}}{{#if: :{{{6}}} }}, }} }}{{#if: 1997 {{#if: 08 {{#if: 13 {{#expr:13}} {{#if:08|{{#switch:{{#if:08 {{#switch:08 jan=1 feb=2 mar=3 april=4 may=5 jun=6 jul=7 aug=8 sep|sept=9 oct=10 nov=11 dec=12 {{#ifexpr:08<0 {{#ifexpr:((08)round 0)!=(08) {{#expr:12-(((0.5-(08))round 0)mod 12)}} {{#expr:12-(((11.5-(08))round 0)mod 12)}}
  }}
{{#expr:(((10.5+08)round 0)mod 12)+1}}
 }}
}}
Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}}|{{#if:08|{{#switch:{{#if:08

{{#switch:08 jan=1 feb=2 mar=3 april=4 may=5 jun=6 jul=7 aug=8 sep|sept=9 oct=10 nov=11 dec=12 {{#ifexpr:08<0 {{#ifexpr:((08)round 0)!=(08) {{#expr:12-(((0.5-(08))round 0)mod 12)}} {{#expr:12-(((11.5-(08))round 0)mod 12)}}
  }}
{{#expr:(((10.5+08)round 0)mod 12)+1}}
 }}
}}
Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} {{#expr:13}},}} 1997|{{#if:08|{{#switch:{{#if:08

{{#switch:08 jan=1 feb=2 mar=3 april=4 may=5 jun=6 jul=7 aug=8 sep|sept=9 oct=10 nov=11 dec=12 {{#ifexpr:08<0 {{#ifexpr:((08)round 0)!=(08) {{#expr:12-(((0.5-(08))round 0)mod 12)}} {{#expr:12-(((11.5-(08))round 0)mod 12)}}
  }}
{{#expr:(((10.5+08)round 0)mod 12)+1}}
 }}
}}
Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} 1997}}|1997}}}}{{#if:

Z|UTC|{{{7}}}}})}} ({{#if: 1997 1997{{#if: 08 -08{{#if: 13 -13 }} }}{{#if: T{{{4}}}{{#if: :{{{5}}}{{#if: :{{{6}}} }} }} }} }})</td>}}{{
  1. ifeq:ʁ|ʁ| |<td>{{{AltDate}}}</td>}}{{
  2. ifeq:101|ʁ| |<td id="pc101">101</td>}}{{
  3. ifeq:ʁ|ʁ| |<td>{{{Aux4}}}</td>}}</tr>{{#ifeq:Space aliens implant a transmitter in Cartman and abduct Kyle's brother.|ʁ| |<tr><td class="description" style="border-bottom:3px solid #{{#if:333333|333333|CCCCFF}}" colspan="{{#expr:{{#ifeq:Cartman Gets Probed|ʁ|{{#ifeq:ʁ|ʁ|{{#ifeq:ʁ|ʁ|0|1}}|1}}|1}}+{{#ifeq:ʁ|ʁ|0|1}}+{{#ifeq:ʁ|ʁ|0|1}}+{{#ifeq:ʁ|ʁ|0|1}}+{{#ifeq:ʁ|ʁ|0|1}}+{{#ifeq:ʁ|ʁ|0|1}}+{{#ifeq:ʁ|ʁ|0|1}}+{{#ifeq:ʁ|ʁ|0|1}}+{{#ifeq:{{#if:
{{#if: {{{4}}}:{{{5}}}{{#if: :{{{6}}} }}, }} }}{{#if: 1997 {{#if: 08 {{#if: 13 {{#expr:13}} {{#if:08|{{#switch:{{#if:08 {{#switch:08 jan=1 feb=2 mar=3 april=4 may=5 jun=6 jul=7 aug=8 sep|sept=9 oct=10 nov=11 dec=12 {{#ifexpr:08<0 {{#ifexpr:((08)round 0)!=(08) {{#expr:12-(((0.5-(08))round 0)mod 12)}} {{#expr:12-(((11.5-(08))round 0)mod 12)}}
  }}
{{#expr:(((10.5+08)round 0)mod 12)+1}}
 }}
}}
Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}}|{{#if:08|{{#switch:{{#if:08

{{#switch:08 jan=1 feb=2 mar=3 april=4 may=5 jun=6 jul=7 aug=8 sep|sept=9 oct=10 nov=11 dec=12 {{#ifexpr:08<0 {{#ifexpr:((08)round 0)!=(08) {{#expr:12-(((0.5-(08))round 0)mod 12)}} {{#expr:12-(((11.5-(08))round 0)mod 12)}}
  }}
{{#expr:(((10.5+08)round 0)mod 12)+1}}
 }}
}}
Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} {{#expr:13}},}} 1997|{{#if:08|{{#switch:{{#if:08

{{#switch:08 jan=1 feb=2 mar=3 april=4 may=5 jun=6 jul=7 aug=8 sep|sept=9 oct=10 nov=11 dec=12 {{#ifexpr:08<0 {{#ifexpr:((08)round 0)!=(08) {{#expr:12-(((0.5-(08))round 0)mod 12)}} {{#expr:12-(((11.5-(08))round 0)mod 12)}}
  }}
{{#expr:(((10.5+08)round 0)mod 12)+1}}
 }}
}}
Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} 1997}}|1997}}}}{{#if:

Z|UTC|{{{7}}}}})}} ({{#if: 1997 1997{{#if: 08 -08{{#if: 13 -13 }} }}{{#if: T{{{4}}}{{#if: :{{{5}}}{{#if: ʁ|0|1}}+{{#ifeq:101|ʁ|0|1}}+{{#ifeq:01|ʁ|0|1}}+{{#ifeq:ʁ|ʁ|0|1}}}}">

Space aliens implant a transmitter in Cartman and abduct Kyle's brother. </td></tr>}}{{#ifeq:Space aliens implant a transmitter in Cartman and abduct Kyle's brother.|ʁ||{{#if:333333||{{#switch:

 {{#if: 
{{{demospace}}} main other
   }} 
 }}
main = other #default =

}}}}}}{{#if:01||}}

[edit] Sublists

Occasionally, when dealing with a very long series, you may wish to break the list up into separate sublists. When doing so, the list should be broken at season breaks, or otherwise years.

Sublists should be named as "List of X episodes (season y)", and transcluded onto the main list to prevent ending up with two lists of duplicate information. For sublist pages, you should use {{Episode list/sublist{{#if:List of X episodes||List of X episodes}}{{#if:||{{{3}}}}}}} for each episode, where "List of X episodes" is the name of the main episode list. So, for instance, if you're working on List of Lassie episodes, you would split it into List of Lassie episodes (season 1) and List of Lassie episodes (season 2), and each episode on the sublist would use {{#ifeq:|yes||}}{{{{#if:Episode list/sublist|Episode list/sublist| tld|...}}{{#ifeq:List of Lassie episodes|List of Lassie episodes| |List of Lassie episodes | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}{{#ifeq:|yes||}}. When transcluded onto the main list, this template strips out any summaries and alternates the background row color between light and dark gray, depending on the value of {{{EpisodeNumber}}}, but any custom {{{LineColor}}} coloring is left intact.

For the purpose of transclusion, each sublist should make use of <onlyinclude/> tags, with the opening tag just after the "Episode list" or "List of episodes" header, and the closing tag at the very end of the episode list. This prevents the lead, external links, references, templates, categories, interwiki links, and all other unnecessary information from being transcluded onto the main list.

When transcluding onto the main list, you should make use of {{main}}. For example, referring to Lassie again, the main list would have the following code under the "Episode list" header:

===Season 1===
{{main|List of Lassie episodes (season 1)}}
{{:List of Lassie episodes (season 1)}}

===Season 2===
{{main|List of Lassie episodes (season 2)}}
{{:List of Lassie episodes (season 2)}}

Note the colon (:) at the beginning of the transclusions (for example, {{:List of ...); this is necessary when transcluding non-templates to prevent a redlink from appearing. If you tried to transclude List of Lassie episodes (season 1) without using the colon, you would get Template:List of Lassie episodes (season 1): a redlink to a nonexistent template.

[edit] Tips

It may be helpful to include a hidden message that will appear when someone edits the article. Placed above the table headers and under the article section, such as:

==Episodes==
<!-- For help with this template see http://en.wikipedia.org/wiki/Template_talk:Episode_list -->

This message won't be visible when normally viewing the article. A message such as this notes where one can get help for the template.

[edit] Episode list templates

[edit] Show-specific hacks and other sub-pages

[edit] Microformat

The HTML mark up produced by this template includes an hCalendar microformat, which makes the event details parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to a calendar or diary application. For more information about the use of microformats on Wikipedia, please see the microformat project.

Dates will only be included if you use {{Start date}} or {{End date}} (use the former for single dates). As an alternative, you may use or {{Start-date}} and {{End-date}}.

hCalendar uses HTML classes including:

  • attendee
  • contact
  • description
  • dtend
  • dtstart
  • location
  • organiser
  • summary
  • vevent

Please do not rename or remove these classes; nor collapse nested elements which use them.

Pages which use multiple instances of this template can also use {{UF-timeline}}, in their external links section, to generate a SIMILE timeline. It renders as:

{{#ifeq: Episode list/sublist|doc||{{#ifeq: Episode list/sublist|sandbox||}}}}

For shows where each episode is from a different, single, specific place (for example, Time Team, one of the Aux fields can contain the coordinates, applied using {{coord}}.

[edit] See also

bs:Šablon:Spisak epizoda es:Plantilla:Lista de episodios fr:Modèle:Liste des épisodes hr:Predložak:Popis epizoda mk:Шаблон:Листа на епизоди ka:თარგი:ეპიზოდების სია ko:틀:에피소드 목록 pt:Predefinição:Episode list ru:Шаблон:Список серий sk:Šablóna:Epizóda sv:Mall:Avsnittslista vi:Tiêu bản:Danh sách tập phim tr:Şablon:Bölüm listesi uk:Шаблон:Episode list

| 0001 | 0011 = {{ {{#switch: Template

 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Episode list/sublist | sandbox | testcases = Episode list/sublist | #default = Episode list/sublist }}/doc }} | 0000 | 0100 | 0010 | 0101 = }}

{{#if:
 {{#ifeq:  | off
 |
 | {{#ifexist: 
   {{#if: Template:Episode list/doc
   | Template:Episode list/doc   
   | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Episode list/sublist | sandbox | testcases = Episode list/sublist | #default = Episode list/sublist }}/doc

   }}
 | yes
 }}{{
   #switch: Template
   | User
   | Template = yes
   }}
 }}
| {{#ifeq:none|none | | }} {{#if: |

}}

{{#switch:

| | warning | editnotice | system =

| #default =
This message box is using an invalid "type=" parameter and needs fixing.

}} }}{{#if:

 {{#switch: Episode list/sublist
 | doc
 | testcases = strange
 }}

|

}}

Looking for something?

Use the form below to search the site:

 

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!