Modul:Infobox television season name/doc
Tampilan
Modul ini menggunakan Lua: |
Module:Infobox television season name is used to validate or create a formatted season link for use in Template:Infobox television season.
Penggunaan
[sunting sumber]{{#invoke:Infobox television season name|checkAll}}
{{#invoke:Infobox television season name|checkPrevSeason}}
{{#invoke:Infobox television season name|checkNextSeason}}
{{#invoke:Infobox television season name|getPrevSeasonArticle}}
{{#invoke:Infobox television season name|getNextSeasonArticle}}
{{#invoke:Infobox television season name|getSeasonWord}}
{{#invoke:Infobox television season name|getInfoboxSubHeader}}
Daftar parameter
[sunting sumber]The following parameters can be used as named parameters or nameless positional parameters.
Parameter | Explanation | Status |
---|---|---|
title
|
The title of TV program. If not supplied, will use the article title. | optional |
Daftar fungsi
[sunting sumber]Function | Explanation |
---|---|
checkAll
|
Checks if the next or previous season have a created article or redirect. |
checkPrevSeason
|
Checks if the previous season has a created article or redirect. |
checkNextSeason
|
Checks if the next season has a created article or redirect. |
getPrevSeasonArticle
|
Retrieves the previous season article title. |
getNextSeasonArticle
|
Retrieves the next season article title. |
getSeasonWord
|
Returns either the word "season" or "series" as used in the disambiguation of the article title. |
getInfoboxSubHeader
|
Returns 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.
|
Contoh
[sunting sumber]checkAll
[sunting sumber]- Code:
{{#invoke:Infobox television season name|checkAll|title=Dallas (seri TV 1978, musim 7)}}
- Produces:
Script error: The function "checkAll" does not exist.
getPrevSeasonArticle
[sunting sumber]- Code:
{{#invoke:Infobox television season name|getPrevSeasonArticle|title=Dallas (seri TV 1978, musim 7)}}
- Produces:
Musim 6
getNextSeasonArticle
[sunting sumber]- Code:
{{#invoke:Infobox television season name|getNextSeasonArticle|title=Lost (musim 3)}}
- Produces:
Musim 4