{{Episode counter}} add a formatted string, displaying the date of the last episode, and the number of episodes that have aired

Usage edit

The template may be added by pasting the syntax as shown below into an article (most preferably in {{Infobox television}}'s num_episodes parameter) and then filling in the desired fields. Any parameters left blank or omitted will not be displayed.

Examples
  • {{Episode counter|123|2021|07|07|ended=no}} → "123 (as of July 7, 2021 (2021-07-07))"
  • {{Episode counter|123|2021|07|07|df=yes|ended=no}} → "123 (as of 7 July 2021 (2021-07-07))"
  • {{Episode counter|123|2021|07|07|ended=yes}} → "123"
  • {{Episode counter|123|2021|07|07|df=yes|ended=yes}} → "123"
  • {{Episode counter|123 + 1 pilot|2021|07|07|ended=no}} → "123 + 1 pilot (as of July 7, 2021 (2021-07-07))"
  • {{Episode counter|123 + 1 pilot|2021|07|07|ended=yes}} → "123 + 1 pilot"

Parameters edit

List of parameters
Parameter Required Description
1 Yes Set the number of episodes aired.
2 Yes Set the date of the last aired episode.
3 Yes
4 Yes
df Optional Display the day before the month name.
ended Optional Display only the episode.
Change to yes when the series/show has ended.
small Deprecated Display the (as of ...) in smaller text.
Defaults to no.

TemplateData edit

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Episode counter in articles based on its TemplateData.

TemplateData for Episode counter

Template parameters

ParameterDescriptionTypeStatus
episode1

Set the number of episodes aired.

Stringrequired
year2

Set the date of the last aired episode.

Numberrequired
month3

Set the date of the last aired episode.

Numberrequired
day4

Set the date of the last aired episode.

Numberrequired
day firstdf

Display the day before the month name.

Stringoptional
endedended

Display only the episode. Change to yes when the series/show has ended.

Stringoptional

Tracking category edit