Template:Episode table

From Ava Zinn Wiki
Revision as of 13:43, 6 September 2018 by Aeverinezinn (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]
Gnome-utilities-terminal.svg This template uses (or will be using) Lua programming language.

Please see Wikipedia:Lua if you want to learn more about Lua or help convert other templates.

Usage[edit]

The purpose of the {{Episode table}} template is to easily add header row to episode tables for television series, with up to 13 different columns, and optionally set the widths of these columns, and includes the {{Episode list}} template in the "episode" parameter. Cells are included by declaring the specific variable in one of two ways: title= includes the "Title" cell with no set width, and title=30 includes the "Title" cell with a width of 30%.

Syntax[edit]

Examples[edit]

Standard columns:

{{Episode table|caption=This is a caption|background=#B40000 |overall=5 |season=5 |title=17 |director=11 |writer=37 |airdate=10 |prodcode=6 |viewers=9 |country=U.S.}}

No. in
series
No. in
season
Title Directed by Written by Original air date Production
code
U.S. viewers
(millions)

All columns:

{{Episode table |overall= |season= |title= |aux1= |director= |writer= |aux2= |aux3= |airdate= |altdate= |prodcode= |viewers= |aux4= |country= |aux1T=Foreign title |aux2T=Guest writer |aux3T=Featured character |aux4T=Online viewers |altdateT=UK airdate}}

No. in
series
No. in
season
Title Foreign title Directed by Written by Guest writer Featured character Original air date UK airdate Production
code
Viewers
(millions)
Online viewers

With {{Episode list}}:
{Template:SeriesT Title Directed by Written by Original air date Production
code
UK viewers
(millions)
AI
203 "The Eleventh Hour" 3 April 2010 (2010-04-03) <td align="center">1.1</td>


204 "The Beast Below" 10 April 2010 (2010-04-10) <td align="center">1.2</td>

Parted seasons[edit]

For seasons which have been split into parts, use {{Episode table/part}}, as per the examples below.

{{Episode table/part|p=1|c=#183E54}}

<tr><td colspan="13" style="text-align:center;background-color:{{{2}}};color:white;"> '</td></tr>
No. in
series
No. in
season
Title Directed by Written by Original air date U.S. viewers
(millions)

{{Episode table/part|p=Athelstan's Journal|c=#061453|nopart=y}}

<tr><td colspan="13" style="text-align:center;background-color:{{{2}}};color:white;"> '</td></tr>
No. Title Directed by Written by Original air date Length
(minutes)


Parameters[edit]

Each cell parameter has an alias to match the parameters used in {{Episode list}}. In the Cell Inclusion & Widths rows, the original parameter is listed, followed by its episode-list alias. This means that this:

{{Episode table |background=#B40000 |overall=5 |season=5 |title=17 |director=11 |writer=37 |airdate=10 |prodcode=6 |viewers=9 |country=U.S.}}

will produce exactly the same as this:

{{Episode table |background=#B40000 |EpisodeNumber=5 |EpisodeNumber2=5 |Title=17 |DirectedBy=11 |WrittenBy=37 |OriginalAirDate=10 |ProdCode=6 |Viewers=9 |country=U.S.}}
Parameter Description Type Status
Table caption caption When the table is not the first or only content in the section, a caption should be provided that describes in general the content of the table. e.g. NCIS season 11 episodes Wikitext Optional
Background color background The background color of the header row. If no color is specified, the background defaults to #CCCCFF.
Format: white / #FFFFFF
String Optional
Total width total_width Table width defaults to 100%. For tables that are less than 100%, set this field as necessary.
Format: 75
Number Optional
Cell Inclusion & Widths* Overall Number overall
EpisodeNumber
The inclusion (and optionally the width) of the "No." / "No. overall" cell.
Use |forceoverall=y to force this column to display "No. overall" when season/series is not set.
Format: 10 / <blank>
Number Optional
Season season
EpisodeNumber2
The inclusion (and optionally the width) of the "No. in season" cell.
(Inclusion will set "No." cell to "No. overall" if overallT is unset.)
Format: 10 / <blank>
Note: "series" and "season" cannot be included in the same table.
Number Optional
Series series
EpisodeNumber2Series
The inclusion (and optionally the width) of the "No. in series" cell.
(Inclusion will set "No." cell to "No. overall" if overallT is unset.)
Format: 10 / <blank>
Note: "series" and "season" cannot be included in the same table.
Number Optional
Title title
Title
The inclusion (and optionally the width) of the "Title" cell.
Format: 10 / <blank>
Number Optional
Aux1 aux1
Aux1
The inclusion (and optionally the width) of the "Aux1" cell.
Format: 10 / <blank>
Number Optional
Director director
DirectedBy
The inclusion (and optionally the width) of the "Directed by" cell.
Format: 10 / <blank>
Number Optional
Writer writer
WrittenBy
The inclusion (and optionally the width) of the "Written by" cell.
Format: 10 / <blank>
Number Optional
Aux2 aux2
Aux2
The inclusion (and optionally the width) of the "Aux2" cell.
Format: 10 / <blank>
Number Optional
Aux3 aux3
Aux3
The inclusion (and optionally the width) of the "Aux3" cell.
Format: 10 / <blank>
Number Optional
Air Date airdate
OriginalAirDate
The inclusion (and optionally the width) of the "Original air date" cell.
Format: 10 / <blank>
Number Optional
Alternate Air Date altdate
AltDate
The inclusion (and optionally the width) of the "Alternate Air Date" cell.
Format: 10 / <blank>
Number Optional
Production Code prodcode
ProdCode
The inclusion (and optionally the width) of the "Production code" cell.
Format: 10 / <blank>
Number Optional
Viewers viewers
Viewers
The inclusion (and optionally the width) of the "Viewers" cell.
Format: 10 / <blank>
Number Optional
Aux4 aux4
Aux4
The inclusion (and optionally the width) of the "Aux4" cell.
Format: 10 / <blank>
Number Optional
Content Country country The series' originating country; displayed before "viewers".
(Exclusion capitalized "Viewers"; inclusion un-capitalizes "viewers".)
Format: U.S.
String Optional / Unrequired when viewers is not set
Released/Aired released Determines whether the episodes were released online or aired. Changes the "Original air date" cell to "Original release date".
Format: y
String Optional
Viewers type viewers_type The numeric format that viewers are grouped within the episode table. Set to "millions" by default. Including the parameter but leaving it blank will disclude the bracketed format.
Format: thousands
String Optional
Variable Content {variable}T Custom content of any cell (e.g. overallT, titleT).
Format: Any string
String Optional / Required when aux{1-4} and altdate set
Reference {variable}R Reference for any cell (e.g. overallR, titleR). If Wikipedia's link colours are not WCAG 2 AAA Compliant with the background colour, Module:Episode table/ref is used.
Format: Reference
Reference Optional
Episodes episodes An infinite number of consecutive episode rows.
Format: {{Episode list}} or {{Episode table/part}}
Template Optional, desirable

*: These variables can be included but not set to a value, e.g. |title=, which will include the cell but not set a width to it.

See also[edit]