Template:Aired episodes/sandbox

< Template:Aired episodes
Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

The purpose of the {{Aired episodes}} template is to add a formatted string to List of ... episodes pages for television series, displaying the date of the last episode, the number of episodes that have aired in the series, and whether a season has recently finished.

Syntax

<syntaxhighlight lang="wikitext">Lua error in Module:Spellnum_per_MOS at line 18: attempt to compare nil with number.</syntaxhighlight>
  • If |num= is set, then it can either be set using a number, or transcluding the |num_episodes= parameter from {{Infobox television}} in the series' parent article using <onlyinclude></onlyinclude>. Setting |num= takes precedence.
  • If |num= is not included, then |showpage= is set to the series' parent article, and the template gains the value of the |num_episodes= parameter from {{Infobox television}} in the series' parent article without the need for <onlyinclude></onlyinclude>.
  • If neither |num= or |showpage= are set, then the template assumes |showpage= is set with the value of |title=; this can be used for where the series' title and series' parent article title are the same.

Examples

General
<syntaxhighlight lang="wikitext">As of January 1,  2016 (2016 -01-01) 50 episodes of Generic Series have aired.</syntaxhighlight>
As of January 1,  2016 (2016 -01-01) 50 episodes of Generic Series have aired.
Airing season
<syntaxhighlight lang="wikitext">Lua error: expandTemplate: template "Ordinal to word" does not exist.</syntaxhighlight>
Lua error: expandTemplate: template "Ordinal to word" does not exist.
Concluded season
<syntaxhighlight lang="wikitext">Lua error: expandTemplate: template "Ordinal to word" does not exist.</syntaxhighlight>
Lua error: expandTemplate: template "Ordinal to word" does not exist.
Partial season (half)
<syntaxhighlight lang="wikitext">Lua error: expandTemplate: template "Ordinal to word" does not exist.</syntaxhighlight>
Lua error: expandTemplate: template "Ordinal to word" does not exist.
Partial season (parts)
<syntaxhighlight lang="wikitext">Lua error: expandTemplate: template "Ordinal to word" does not exist.</syntaxhighlight>
Lua error: expandTemplate: template "Ordinal to word" does not exist.
Parts instead of seasons
<syntaxhighlight lang="wikitext">Lua error: expandTemplate: template "Ordinal to word" does not exist.</syntaxhighlight>
Lua error: expandTemplate: template "Ordinal to word" does not exist.
British English
<syntaxhighlight lang="wikitext">Lua error: expandTemplate: template "Ordinal to word" does not exist.</syntaxhighlight>
Lua error: expandTemplate: template "Ordinal to word" does not exist.
Concluded series
<syntaxhighlight lang="wikitext">During the course of the series, 50 episodes of Generic Series aired over four seasons.</syntaxhighlight>
During the course of the series, 50 episodes of Generic Series aired over four seasons.
Concluded series with dates
<syntaxhighlight lang="wikitext">During the course of the series, 50 episodes of Generic Series aired over four seasons, between December 31, 2014, and January 1, 2016.</syntaxhighlight>
During the course of the series, 50 episodes of Generic Series aired over four seasons, between December 31, 2014, and January 1, 2016.
<syntaxhighlight lang="wikitext">During the course of the programme, 50 episodes of Generic Series aired over four series, between 31 December 2014 and 1 January 2016.</syntaxhighlight>
During the course of the programme, 50 episodes of Generic Series aired over four series, between 31 December 2014 and 1 January 2016.
Released
<syntaxhighlight lang="wikitext">As of January 1,  2016 (2016 -01-01) 50 episodes of Generic Series have been released.</syntaxhighlight>
As of January 1,  2016 (2016 -01-01) 50 episodes of Generic Series have been released.
Specials
<syntaxhighlight lang="wikitext">As of January 1,  2016 (2016 -01-01) 50 episodes of Generic Series have aired, including two specials.</syntaxhighlight>
As of January 1,  2016 (2016 -01-01) 50 episodes of Generic Series have aired, including two specials.
Show page
<syntaxhighlight lang="wikitext">Lua error in Module:Spellnum_per_MOS at line 18: attempt to compare nil with number.</syntaxhighlight>
Lua error in Module:Spellnum_per_MOS at line 18: attempt to compare nil with number.
Show page (showpage = title)
<syntaxhighlight lang="wikitext">Lua error in Module:Spellnum_per_MOS at line 18: attempt to compare nil with number.</syntaxhighlight>
Lua error in Module:Spellnum_per_MOS at line 18: attempt to compare nil with number.

Parameters

Parameter Description Type Status
Date (most recent or premiere) 1–3 The year (1), month (2) and day (3) of the series' most recently aired episode or premiere date.
Format: YYYY/MM/DD
Number Optional/Required
Required for airing series (ignored when date set), Optional when "finished" equals "all" (inclusion will list date as a premiere date)
Date (finale) 4–6 The year (4), month (5) and day (6) of the series' finale date.
Format: YYYY/MM/DD
Number Optional/Required
Not required for airing series, Optional when "finished" equals "all" but required if 1–3 parameters are set (inclusion will list date as a finale date)
Number num The number of episodes that have been aired up until the most recent, as a number, string or transclusion.
Format: 9 / nine
Number/String Optional/Required
Date date The date when entered manually; the first three numbered parameters will be ignored when this is used.
Format: June 23, 2018
String Optional
Show's parent article showpage The unlinked parent article of the series, for usage with {{Template parameter value}} instead of using |num= (see explanation in syntax). |title= does not need to be used when |showpage= is used, as the template will automatically derive the series name from this parameter using {{PAGENAMEBASE}}.
Format: Lucifer (TV series)
String Optional
Series title The un-italicized title of the series. |title= does not need to be used when |showpage= is used, as the template will automatically derive the series name from this parameter using {{PAGENAMEBASE}}. Using |title= without |showpage= will set |showpage= (i.e. the show's parent article) to the value of |title=.
Format: Game of Thrones
String Required
Released released Whether the season in question has been released online, rather than aired.
Format: y
String Optional
Airing airing Whether the season in question is currently airing.
Format: 5
Number Optional
Finished finished Whether the season in question has been concluded.
Use "all" for the conclusion of the series.
Format: 5 or all
Number / String Optional
Finished (halfed season) finished_half Whether the season in question has paused at its halfway break, for seasons in two distinct halves. Set to "y".
Format: y
String Optional
Finished (parted season) finished_part If the season in question has paused after a distinct part, this value is the number of that concluded part.
Format: 2
Number Optional
Seasons seasons The number of seasons that a concluded series aired over. Converted to word for less than 10 seasons.
Format: 3
Number Optional
UK Format uk Whether the series in question follows the British format of titling and dating. Use |df=y to change the date format to DMY but not change the terminology.
Format: Text / <blank>
String Optional
Part part Use the term "part" as opposed to "season", especially for Netflix series that are released specifically in parts.
Format: Text / <blank>
String Optional
Specials specials How many specials have been aired throughout the series.
Format: 1 or one
Number / String Optional

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Aired episodes

<templatedata> { "params": { "1": { "label": "Year", "description": "The year of the series' most recently aired episode.", "type": "number" }, "2": { "label": "Month", "description": "The month of the series' most recently aired episode.", "type": "number" }, "3": { "label": "Day", "description": "The day of the series' most recently aired episode.", "type": "number" }, "finished": { "label": "Finished", "description": "Whether the season in question has been concluded. Add \".5\" for conclusions of split seasons. Use \"all\" for the conclusion of the series.", "type": "line" }, "finished_half": { "label": "Finished (halfed season)", "description": "Whether the season in question has paused at its halfway break, for seasons in two distinct halves. Set to \"y\".", "type": "line" }, "finished_part": { "label": "Finished (parted season)", "description": "If the season in question has paused after a distinct part, this value is the number of that concluded part.", "type": "number" }, "uk": { "label": "UK Format", "description": "Whether the series in question follows the British format of titling and dating.", "example": "y", "type": "line" }, "date": { "label": "Date", "description": "The date when entered manually; the first three numbered parameters will be ignored when this is used.", "type": "line" }, "num": { "label": "Number", "description": "The number of episodes that have been aired up until the most recent, as a number, string or transclusion.", "type": "number" }, "showpage": { "label": "Show's parent article", "description": "The unlinked parent article of the series, for usage with Lua error: bad argument #1 to 'gsub' (string expected, got nil). instead of using |num=.", "type": "wiki-page-name" }, "title": { "label": "Series", "description": "The un-italicized title of the series.", "type": "line", "required": true }, "released": { "label": "Released", "description": "Whether the season in question has been released online, rather than aired.", "example": "y", "type": "line" }, "specials": { "label": "Specials", "description": "How many specials have been aired throughout the series.", "type": "number" }, "seasons": { "label": "Seasons", "description": "The number of seasons that a concluded series aired over. Converted to word for less than 10 seasons.", "type": "number" } }, "description": "The purpose of the Lua error in Module:Aired_episodes at line 26: attempt to index field 'title' (a nil value). template is to add a formatted string to List of ... episodes pages for television series, displaying the date of the last episode, the number of episodes that have aired in the series, and whether a season has recently finished.", "paramOrder": [ "1", "2", "3", "num", "date", "showpage", "title", "released", "finished", "finished_half", "finished_part", "seasons", "uk", "specials" ] } </templatedata>

Tracking categories

<section begin=Tracking/>

See also

{{Television franchise episode count}} – for franchises