require("strict")
-- This module requires the use of the following modules.local getArgs = require("Module:Arguments").getArgslocal validateDisambiguation = require("Module:Television infoboxes disambiguation check/sandbox")
local p =
local validDisambiguationTypeList =
local validDisambiguationPatternList =
local exceptionList =
local otherInfoboxList =
-- Empty for now.local invalidTitleStyleList =
local function _main(args) local title = args[1] return validateDisambiguation.main(title, "infobox television", validDisambiguationTypeList, validDisambiguationPatternList, exceptionList, otherInfoboxList, invalidTitleStyleList)end
function p.main(frame) local args = getArgs(frame) local category, debugString = _main(args) return categoryend
local function removeFromArray(t, delete) local j = 1 local n = #t
for i = 1, n do if (t[i] ~= delete) then -- Move i's kept value to j's position, if it's not already there. if (i ~= j) then t[j] = t[i] t[i] = nil end j = j + 1 -- Increment position of where we'll place the next kept value. else t[i] = nil end end
return tend
function p.getDisambiguationTypeList return removeFromArray(validDisambiguationTypeList, "TV series")end
function p.test(frame) local args = getArgs(frame) local category, debugString = _main(args) return debugStringend
return p