Module:Infobox television season name/doc explained

Module:Infobox television season name is used to validate or create a formatted season link for use in .

Parameter list

The following parameters can be used as named parameters or nameless positional parameters.

ParameterExplanationStatus
titleThe title of TV program. If not supplied, will use the article title.optional
linkOnly for getListOfEpisodes. The plain link to the list of episode article. If not supplied, will create one based on the series name.optional

Function list

FunctionExplanation
checkAllChecks if the next or previous season have a created article or redirect.
checkPrevSeasonChecks if the previous season has a created article or redirect.
checkNextSeasonChecks if the next season has a created article or redirect.
getPrevSeasonArticleRetrieves the previous season article title.
getNextSeasonArticleRetrieves the next season article title.
getSeasonWordReturns either the word "season" or "series" as used in the disambiguation of the article title.
getInfoboxSubHeaderReturns the relevant text for the sub-header field. The text is returned in the format of Season # or Series #, depending on either what the article disambiguation uses, or on manually entered parameters of the infobox.
getListOfEpisodesReturns the formatted link to the list of episodes article in the style of: <nowiki>[[List of <series name> <disambiguation if present> episodes <seasons if present>|List of ''<series name>'' episodes <seasons if present>]]</nowiki>. The link will only return if the page exists.|}

Examples

isPrevOrNextSeasonLinkValid

  • Code:
  • Produces: {{#invoke:Infobox television season name|isPrevOrNextSeasonLinkValid|title=Dallas (1978 TV series, season 7)}}

getPrevSeasonArticle

  • Code:
  • Produces: {{#invoke:Infobox television season name|getPrevSeasonArticle|title=Dallas (1978 TV series, season 7)}}

getNextSeasonArticle

  • Code:
  • Produces: {{#invoke:Infobox television season name|getNextSeasonArticle|title=Lost (season 3)}}

;