Jump to content

Module:Sandbox/Gonnym/episodewikidata

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Gonnym (talk | contribs) at 20:01, 25 May 2019. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- 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