Module:Sandbox/Gonnym/episodewikidata
Appearance
-- This module requires the use of Module:Arguments.
local getArgs = require('Module:Arguments').getArgs
local p = {}
local validDisambiguationTypeList = {
"series", -- Doctor Who (series 5), Big Brother (UK series 3)
"season", -- Lost (season 1), The Office (U.S. season 4), Big Brother 4 (U.S. season), The Real World: New Orleans (2000 season)
"TV series, season", -- Dallas (1978 TV series, season 10)
"TV series, series"
}
local exceptionList = {}
local otherInfoboxList = {}
local function _main(args)
local title = args[1]
local validateDisambiguation = require('Module:Sandbox/Gonnym/Infobox disambiguation check')
return validateDisambiguation.main(title, "Infobox television season", validDisambiguationTypeList, exceptionList, otherInfoboxList)
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