Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Humanipedia
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Module:Infobox television season disambiguation check
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
-- This module requires the use of the following modules. local getArgs = require('Module:Arguments').getArgs local validateDisambiguation = require('Module:Television infoboxes disambiguation check') local p = {} local validDisambiguationTypeList = { "TV series, season", "TV series, series", "season", "series" } local validDisambiguationPatternList = { validateDisambiguation.DisambiguationPattern{pattern = "^(%d+) ([%D]+) TV series, season (%d+)$", type = 8}, -- "VALIDATION_TYPE_YEAR_COUNTRY_SEASON_NUMBER" validateDisambiguation.DisambiguationPattern{pattern = "^(%d+) ([%D]+) TV series, series (%d+)$", type = 8}, -- "VALIDATION_TYPE_YEAR_COUNTRY_SEASON_NUMBER" validateDisambiguation.DisambiguationPattern{pattern = "^(%d+) TV series, season (%d+)$", type = 4}, -- "VALIDATION_TYPE_YEAR_SEASON_NUMBER" validateDisambiguation.DisambiguationPattern{pattern = "^(%d+) TV series, series (%d+)$", type = 4}, validateDisambiguation.DisambiguationPattern{pattern = "^([%D]+) TV series, season (%d+)$", type = 5}, -- "VALIDATION_TYPE_COUNTRY_SEASON_NUMBER" validateDisambiguation.DisambiguationPattern{pattern = "^([%D]+) TV series, series (%d+)$", type = 5}, validateDisambiguation.DisambiguationPattern{pattern = "^([%D]+) season (%d+)$", type = 5}, -- "VALIDATION_TYPE_COUNTRY_SEASON_NUMBER" validateDisambiguation.DisambiguationPattern{pattern = "^([%D]+) series (%d+)$", type = 5}, validateDisambiguation.DisambiguationPattern{pattern = "^([%D]+) season$", type = 7}, -- "VALIDATION_TYPE_COUNTRY_SEASON" validateDisambiguation.DisambiguationPattern{pattern = "^season (%d+)$", type = 6}, -- "VALIDATION_TYPE_SEASON_NUMBER" validateDisambiguation.DisambiguationPattern{pattern = "^series (%d+)$", type = 6} } local exceptionList = { "^Bigg Boss %(Bangla season %d+%)$", "^Bigg Boss %(Hindi season %d+%)$", "^Bigg Boss %(Malayalam season %d+%)$", "^Bigg Boss %(Tamil season %d+%)$", "^Bigg Boss %(Telugu season %d+%)$" } local otherInfoboxList = { ["^[^,]*TV series$"] = "[[Category:Television articles using incorrect infobox|T]]" } local invalidTitleStyleList = { "List of" } local function getOtherInfoboxListMerged() local infoboxTelevisionDisambiguation = require('Module:Infobox television disambiguation check') local list = infoboxTelevisionDisambiguation.getDisambiguationTypeList() for i = 1, #list do otherInfoboxList[list[i]] = "[[Category:Television articles using incorrect infobox|T]]" end return otherInfoboxList end local function _main(args) local title = args[1] local otherInfoboxListMerged = getOtherInfoboxListMerged() return validateDisambiguation.main(title, "infobox television season", validDisambiguationTypeList, validDisambiguationPatternList, exceptionList, otherInfoboxListMerged, invalidTitleStyleList) end function p.main(frame) local args = getArgs(frame) local category, debugString = _main(args) return category end function p.test(frame) local args = getArgs(frame) local category, debugString = _main(args) return debugString end return p
Summary:
Please note that all contributions to Humanipedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Humanipedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Category link with count
(
edit
)
Template:High-use
(
edit
)
Template:Lua
(
edit
)
Template:Mlx
(
edit
)
Template:Module link expanded
(
edit
)
Template:Sandbox other
(
edit
)
Template:Template link
(
edit
)
Template:Tl
(
edit
)
Module:Arguments
(
edit
)
Module:Infobox television season disambiguation check/doc
(
edit
)
Module:Lua banner
(
edit
)
Module:Separated entries
(
edit
)
Module:String
(
edit
)
Module:TableTools
(
edit
)