Mô đun:Episode list/tài liệu

Episode list creates a table row, for use in a list of episodes tables, primarily for television. This template can be used in conjunction with which creates a consistent and Manual of Style ready table, or with a manually created table. See walk-through for further explanation.

Usage
may be added by pasting it as shown below into an article, either inside an template, or be placed inside a manually created table. The number and the type of columns a table has, is defined by the table header, and is not defined by this template. In order for this template to provide a table column for a given episode, parameters must either be included or excluded. An included parameter, although empty, will provide a cell for that field (and thus a column), while excluding a parameter will not provide a cell for that field. Empty cells will be automatically filled with "TBA" or "N/A".

-->
| AltDate =
| ProdCode =
| Viewers =
| Aux4 =
| ShortSummary =
| LineColor =
| TopColor =
| RowColor =
}}

}
| EpisodeNumber2 = }
| Title = }
| RTitle = }
| AltTitle = }
| RAltTitle = }
| Aux1 = }
| DirectedBy = }
| WrittenBy = }
| Aux2 = }
| Aux3 = }
| OriginalAirDate = }
| AltDate = }
| ProdCode = }
| Viewers = }
| Aux4 = }
| ShortSummary = }
}}
}}

Parameters

TemplateData

{
"description": "This template creates a table row, for use in a list of episodes, primarily for television. The number, and use, of columns a table has, is defined by the beginning wikitext of that table (further explained below), and is not defined by this template. In order for this template to provide a table column for a given episode, parameters must either be included or excluded. An included parameter, although empty, will provide a cell for that field (and thus column), while excluding a parameter will not provide a cell for that field. Empty cells will be automatically filled with . It is used within .",
"params": {
"1": {
"label": "Article name",
"type": "string",
"required": true,
"suggested": true,
"deprecated": false,
"description": "The title of the article the table is located in."
},
"NumParts": {
"label": "Number of parts",
"type": "number",
"required": false,
"suggested": false,
"deprecated": false,
"description": "The number of titles an episode has or the number of serials a story has."
},
"EpisodeNumber": {
"label": "Episode number",
"type": "number",
"required": false,
"suggested": true,
"deprecated": false,
"description": "A number representing the episode's order in the series. For example, the first episode would be 1 or 01, and so on."
},
"EpisodeNumber2": {
"label": "Second episode number",
"type": "number",
"required": false,
"suggested": true,
"deprecated": false,
"description": "A second episode number column. Typically used to indicate the episode's order in the season. This parameter can also be useful for when a series aired in a different order."
},
"Title": {
"label": "Title",
"type": "wiki-page-name",
"required": false,
"suggested": true,
"deprecated": false,
"description": "The title of the episode. The title will appear 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": {
"label": "Title reference (or title raw)",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "Unformatted parameter that can be used to add a reference after \"Title\", or can be used as a \"raw title\" to replace \"Title\" completely. Future episodes should include a reference in this field to comply with Unformatted parameter that can be used to add a reference after , or can be used as a \" title\" to replace completely. Future episodes should include a reference in this field to comply with Wikipedia:Verifiability."
},
"AltTitle": {
"label": "Alternative title",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "An alternative title, such as a title that was originally changed. The title will appear in \"quotes\" when rendered. If is also present, it will be listed below."
},
"RAltTitle": {
"label": "Alternative title's reference (or alternative title raw)",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "Unformatted parameter that can be used to add a reference after , or can be used as a \" title\" to replace completely."
},
"TranslitTitle": {
"label": "Transliteration title",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "The title of the episode transliteration (Romanization) to Latin characters."
},
"NativeTitle": {
"label": "Native title",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "The title of the episode in the native language."
},
"NativeTitleLangCode": {
"label": "Native title language code",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "The language code of the native title language."
},
"Aux1": {
"label": "Extra column 1",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "General purpose parameter. The meaning is specified by the column header."
},
"DirectedBy": {
"label": "Directed by",
"type": "string",
"required": false,
"suggested": true,
"deprecated": false,
"description": "Name of the episode's director."
},
"WrittenBy": {
"label": "Written by",
"type": "string",
"required": false,
"suggested": true,
"deprecated": false,
"description": "Name of the credited episode's writer(s)."
},
"Aux2": {
"label": "Extra column 2",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "General purpose parameter. The meaning is specified by the column header."
},
"Aux3": {
"label": "Extra column 3",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "General purpose parameter. The meaning is specified by the column header."
},
"OriginalAirDate": {
"label": "Original air date",
"type": "string",
"required": false,
"suggested": true,
"deprecated": false,
"description": "The date the episode first aired, or is scheduled to air. Format date using ; use for day-first format; omit for month-first."
},
"AltDate": {
"label": "Second notable air date",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "The next notable air date, such as the first air date of an anime in English. Format date per MOS:DATE. Do not use if is present."
},
"ProdCode": {
"label": "Production code",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "The production code in the series."
},
"Viewers": {
"label": "Number of viewers",
"type": "string",
"required": false,
"suggested": true,
"deprecated": false,
"description": "The number of viewers who watched the episode. Should include a reference."
},
"Aux4": {
"label": "Extra column 4",
"type": "content",
"required": false,
"suggested": false,
"deprecated": false,
"description": "General purpose parameter. The meaning is specified by the column header."
},
"ShortSummary": {
"label": "Short summary",
"type": "string",
"required": false,
"suggested": true,
"deprecated": false,
"description": "A short 100–200 word plot 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": {
"label": "Border color",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "Colors the separator line between episode entries. If not defined the color defaults to \"CCCCFF\"."
},
"TopColor": {
"label": "Top color",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "Colors the main row of information (that is, not the row). If not defined, it defaults to the wikitable standard background shading of \"F9F9F9\", except when is used, and then it defaults to \"f2f2f2\"."
},
"RowColor": {
"label": "Row banding color override",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "This parameter is a \"switch\" that must only be defined when the value is not a regular number (e.g. \"12–13\" for two episodes described in one table entry). When transcluding the table from a season article into a main episode list article, irregular values break up the striping effect the template introduces. If the first episode number is even, set . If the first episode number is odd, set . All further uses of Template:Episode list in the table must also have the parameters defined to alternate between off and on to avoid further breakages in the striping."
},
"Title_1": {
"label": "Title in multi-part episode",
"type": "wiki-page-name",
"required": false,
"suggested": true,
"deprecated": false,
"description": "The title of the episode. Used when is used, as there are multiple titles for an episode, and should be used instead of . The number of titles should not exceed the number set in ."
},
"Title_2": {
"inherits": "Title_1"
},
"Title_3": {
"inherits": "Title_1"
},
"Title_4": {
"inherits": "Title_1"
},
"Title_5": {
"inherits": "Title_1"
},
"Title_6": {
"inherits": "Title_1"
},
"Title_7": {
"inherits": "Title_1"
},
"Title_8": {
"inherits": "Title_1"
},
"Title_9": {
"inherits": "Title_1"
},
"RTitle_1": {
"label": "Title reference (or title raw) in multi-part episode",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "Unformatted parameter that can be used to add a reference after , or can be used as a \" title\" to replace completely. Used when is used, as there are multiple titles for an episode, and should be used instead of . The number of titles should not exceed the number set in ."
},
"RTitle_2": {
"inherits": "RTitle_1"
},
"RTitle_3": {
"inherits": "RTitle_1"
},
"RTitle_4": {
"inherits": "RTitle_1"
},
"RTitle_5": {
"inherits": "RTitle_1"
},
"RTitle_6": {
"inherits": "RTitle_1"
},
"RTitle_7": {
"inherits": "RTitle_1"
},
"RTitle_8": {
"inherits": "RTitle_1"
},
"RTitle_9": {
"inherits": "RTitle_1"
},
"AltTitle_1": {
"label": "Alternative title in multi-part episode",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "An alternative title, such as a title that was originally changed. Used when is used, as there are multiple titles for an episode, and should be used instead of . The number of titles should not exceed the number set in ."
},
"AltTitle_2": {
"inherits": "AltTitle_1"
},
"AltTitle_3": {
"inherits": "AltTitle_1"
},
"AltTitle_4": {
"inherits": "AltTitle_1"
},
"AltTitle_5": {
"inherits": "AltTitle_1"
},
"AltTitle_6": {
"inherits": "AltTitle_1"
},
"AltTitle_7": {
"inherits": "AltTitle_1"
},
"AltTitle_8": {
"inherits": "AltTitle_1"
},
"AltTitle_9": {
"inherits": "AltTitle_1"
},
"RAltTitle_1": {
"label": "Alternative title's reference (or alternative title raw) in multi-part episode",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "Unformatted parameter that can be used to add a reference after , or can be used as a \" title\" to replace completely. Used when is used, as there are multiple titles for an episode, and should be used instead of . The number of titles should not exceed the number set in ."
},
"RAltTitle_2": {
"inherits": "RAltTitle_1"
},
"RAltTitle_3": {
"inherits": "RAltTitle_1"
},
"RAltTitle_4": {
"inherits": "RAltTitle_1"
},
"RAltTitle_5": {
"inherits": "RAltTitle_1"
},
"RAltTitle_6": {
"inherits": "RAltTitle_1"
},
"RAltTitle_7": {
"inherits": "RAltTitle_1"
},
"RAltTitle_8": {
"inherits": "RAltTitle_1"
},
"RAltTitle_9": {
"inherits": "RAltTitle_1"
},
"TranslitTitle_1": {
"label": "Transliteration title in multi-part episode",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "The title of the episode transliteration (Romanization) to Latin characters. Used when is used, as there are multiple titles for an episode, and should be used instead of . The number of titles should not exceed the number set in ."
},
"TranslitTitle_2": {
"inherits": "TranslitTitle_1"
},
"TranslitTitle_3": {
"inherits": "TranslitTitle_1"
},
"TranslitTitle_4": {
"inherits": "TranslitTitle_1"
},
"TranslitTitle_5": {
"inherits": "TranslitTitle_1"
},
"TranslitTitle_6": {
"inherits": "TranslitTitle_1"
},
"TranslitTitle_7": {
"inherits": "TranslitTitle_1"
},
"TranslitTitle_8": {
"inherits": "TranslitTitle_1"
},
"TranslitTitle_9": {
"inherits": "TranslitTitle_1"
},
"NativeTitle_1": {
"label": "Native title in multi-part episode",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "The title of the episode in the native language. Used when is used, as there are multiple titles for an episode, and should be used instead of . The number of titles should not exceed the number set in ."
},
"NativeTitle_2": {
"inherits": "NativeTitle_1"
},
"NativeTitle_3": {
"inherits": "NativeTitle_1"
},
"NativeTitle_4": {
"inherits": "NativeTitle_1"
},
"NativeTitle_5": {
"inherits": "NativeTitle_1"
},
"NativeTitle_6": {
"inherits": "NativeTitle_1"
},
"NativeTitle_7": {
"inherits": "NativeTitle_1"
},
"NativeTitle_8": {
"inherits": "NativeTitle_1"
},
"NativeTitle_9": {
"inherits": "NativeTitle_1"
},
"Aux1_1": {
"label": "Extra column 1",
"type": "string",
"required": false,
"suggested": false,
"deprecated": false,
"description": "The title of the serial. Used when is used, as there are multiple titles for an episode, and should be used instead of . The number of titles should not exceed the number set in ."
},
"Aux1_2": {
"inherits": "Aux1_1"
},
"Aux1_3": {
"inherits": "Aux1_1"
},
"Aux1_4": {
"inherits": "Aux1_1"
},
"Aux1_5": {
"inherits": "Aux1_1"
},
"Aux1_6": {
"inherits": "Aux1_1"
},
"Aux1_7": {
"inherits": "Aux1_1"
},
"Aux1_8": {
"inherits": "Aux1_1"
},
"Aux1_9": {
"inherits": "Aux1_1"
},
"OriginalAirDate_1": {
"label": "Original air date",
"type": "date",
"required": false,
"suggested": true,
"deprecated": false,
"description": "The date the episode first aired, or is scheduled to air. Used when is used, as there are multiple serials in a story, and should be used instead of . The number of dates should not exceed the number set in ."
},
"OriginalAirDate_2": {
"inherits": "OriginalAirDate_1"
},
"OriginalAirDate_3": {
"inherits": "OriginalAirDate_1"
},
"OriginalAirDate_4": {
"inherits": "OriginalAirDate_1"
},
"OriginalAirDate_5": {
"inherits": "OriginalAirDate_1"
},
"OriginalAirDate_6": {
"inherits": "OriginalAirDate_1"
},
"OriginalAirDate_7": {
"inherits": "OriginalAirDate_1"
},
"OriginalAirDate_8": {
"inherits": "OriginalAirDate_1"
},
"OriginalAirDate_9": {
"inherits": "OriginalAirDate_1"
},
"Viewers_1": {
"label": "Number of viewers",
"type": "string",
"required": false,
"suggested": true,
"deprecated": false,
"description": "The number of viewers who watched the episode. Used when is used, as there are multiple serials in a story, and should be used instead of . The number of dates should not exceed the number set in ."
},
"Viewers_2": {
"inherits": "Viewers_1"
},
"Viewers_3": {
"inherits": "Viewers_1"
},
"Viewers_4": {
"inherits": "Viewers_1"
},
"Viewers_5": {
"inherits": "Viewers_1"
},
"Viewers_6": {
"inherits": "Viewers_1"
},
"Viewers_7": {
"inherits": "Viewers_1"
},
"Viewers_8": {
"inherits": "Viewers_1"
},
"Viewers_9": {
"inherits": "Viewers_1"
},
"Aux4_1": {
"label": "Extra column 4",
"type": "content",
"required": false,
"suggested": false,
"deprecated": false,
"description": "General purpose parameter. The meaning is specified by the column header. Used when is used, as there are multiple serials in a story, and should be used instead of . The number of dates should not exceed the number set in ."
},
"Aux4_2": {
"inherits": "Aux4_1"
},
"Aux4_3": {
"inherits": "Aux4_1"
},
"Aux4_4": {
"inherits": "Aux4_1"
},
"Aux4_5": {
"inherits": "Aux4_1"
},
"Aux4_6": {
"inherits": "Aux4_1"
},
"Aux4_7": {
"inherits": "Aux4_1"
},
"Aux4_8": {
"inherits": "Aux4_1"
},
"Aux4_9": {
"inherits": "Aux4_1"
}
},
"format": "\n"
}

Complete usage walk-through
To create an episode list, first create the table columns with the use of as following:

templates below:

Lastly, after the final episode list template, close the with:

}}

The complete code will look like this:

}}

Examples
Standard
To create an episode list with the columns: episode number in series, episode number in season, title, director, writer, show-specific parameter, air date, production code and number of U.S. viewers – add the following code:

| ProdCode = 1–01
| Viewers = 5.3
| ShortSummary = Ben suffers strange dreams about a trench war, and a tattooed man stalking in a cornfield.
| LineColor = 812f09
}}

| ProdCode = 1–02
| Viewers = 3.49
| ShortSummary = Ben is slowly setting in as a carnival roustabout.
| LineColor = 812f09
}}
}}

| ProdCode = 1–01
| Viewers = 5.3
| ShortSummary = Ben suffers strange dreams about a trench war, and a tattooed man stalking in a cornfield.
| LineColor = 812f09
}}

| ProdCode = 1–02
| Viewers = 3.49
| ShortSummary = Ben is slowly setting in as a carnival roustabout.
| LineColor = 812f09
}}
}}

Non-English titles
To create an episode list which includes a native title and/or transliterated title – add the following code:

|season= |seasonT=U.S. episode |title= |director= |writer= |airdate= |episodes=

| ShortSummary = Ash Ketchum is finally 10 years old, old enough to become a Pokémon Trainer.
| LineColor = 0C5829
}}
}}

|season= |seasonT=U.S. episode |title= |director= |writer= |airdate= |episodes=

| ShortSummary = Ash Ketchum is finally 10 years old, old enough to become a Pokémon Trainer.
| LineColor = 0C5829
}}
}}

Episode with multiple titles
To create an episode list which includes an episode with multiple titles – add the following code:

| ShortSummary = Episode summary
| LineColor = 69D0E3
}}
}}

| ShortSummary = Episode summary
| LineColor = 69D0E3
}}
}}

Serials
To create an episode list for a serial (such as those used in Doctor Who) – add the following code:

]] |episodes =

| OriginalAirDate_2 = 30 November 1963
| OriginalAirDate_3 = 7 December 1963
| OriginalAirDate_4 = 14 December 1963
| ProdCode = A
| Viewers_1 = 4.4
| Viewers_2 = 5.9
| Viewers_3 = 6.9
| Viewers_4 = 6.4
| Aux4_1 = 63
| Aux4_2 = 59
| Aux4_3 = 56
| Aux4_4 = 55
| ShortSummary = Schoolteachers Ian Chesterton and Barbara Wright are concerned about one of their pupils, Susan Foreman.
| LineColor = 8D3D63
}}
}}

]] |episodes =

| OriginalAirDate_2 = 30 November 1963
| OriginalAirDate_3 = 7 December 1963
| OriginalAirDate_4 = 14 December 1963
| ProdCode = A
| Viewers_1 = 4.4
| Viewers_2 = 5.9
| Viewers_3 = 6.9
| Viewers_4 = 6.4
| Aux4_1 = 63
| Aux4_2 = 59
| Aux4_3 = 56
| Aux4_4 = 55
| ShortSummary = Schoolteachers Ian Chesterton and Barbara Wright are concerned about one of their pupils, Susan Foreman.
| LineColor = 8D3D63
}}
}}

Transclusion of the list on another page
When a TV series article is split into season pages, create each season's episode list on the corresponding season article. If the series also has a "List of episodes" article, do not re-create the tables in it, and instead transclude the table from the season articles to the list of episodes article.

For example, the TV series Lost has season articles for each of its seasons. An episode table is located in each of its season articles, such as Lost (season 1) and Lost (season 2). Each season is then transcluded to List of Lost episodes.

When transcluded onto any other article, the episode summaries are removed, and the background row color alternates between light and dark gray, depending on the value of . Occasionally, a multi-part episode will skew the pattern between odd and even numbers, to rectify this, use the parameter. A input will color the row dark gray, like an even number normally would, on the "List of X episodes" page, while a input will color the row light gray, like an odd number normally would.

For the purpose of transclusion, each sublist must make use of &lt;onlyinclude> tags, with the opening tag just before the WikiTable, and the closing tag at the very end of the table. This prevents the lead, external links, 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 .

Transclusion examples

On a season article, such as Lost (season 3), the code should be as follows:

&lt;onlyinclude>

| Viewers = 12.11&lt;ref name="viewers"/>
| ShortSummary = Locke meets the Others' mysterious leader Jacob.
| LineColor = 2E5528
}}

| Viewers = 12.32&lt;ref name="viewers"/>
| ShortSummary = Jack learns of the Others' plan.
| LineColor = 2E5528
}}
}}&lt;/onlyinclude>

And similar for the other season articles of the series, such as Lost (season 4):

&lt;onlyinclude>

| Viewers = 17.77&lt;ref name="rankings"/>
| ShortSummary = The survivors of 815 split into two groups led by Jack and Locke.
| LineColor = 00549A
| RowColor = on
}}

| Viewers = 16.96&lt;ref name="rankings"/>
| ShortSummary = A science team from the freighter arrives on the island.
| LineColor = 00549A
| RowColor = off
}}
|}&lt;/onlyinclude>

The following code should appear on List of Lost episodes:

Season 1

Season 2

Note the colon () at the beginning of the transclusions; this is necessary when transcluding an article. If you tried to transclude Lost (season 1), without using the colon, you would get Template:Lost (season 1), a redlink to a nonexistent template.

The above code will appear as follows:

;Season 3

| Viewers = 12.11
| ShortSummary = Locke meets the Others' mysterious leader Jacob.
| LineColor = 2E5528
}}

| Viewers = 12.32
| ShortSummary = Jack learns of the Others' plan.
| LineColor = 2E5528
}}
}}

;Season 4

| Viewers = 17.77
| ShortSummary = The survivors of 815 split into two groups led by Jack and Locke.
| LineColor = 00549A
| RowColor = on
}}

| Viewers = 16.96
| ShortSummary = A science team from the freighter arrives on the island.
| LineColor = 00549A
| RowColor = off
}}
}}

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

&lt;onlyinclude>

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 .

Subpages

"Hacks" of this template, also known as "forks", are discouraged. Any discussion regarding forks should occur on this template's, not the fork's or article's, talk page.

Episode list templates
Wikipedia:WikiProject Television/Episode coverage task force
Wikipedia:WikiProject Television/Templates
Wikipedia:Television episodes
yes}}

Notes

See also