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 15:05, 24 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 validateDisambiguation = require('Module:Sandbox/Gonnym/Infobox disambiguation check')

local p = {}

local validDisambiguationTypeList = {
	"series",
	"season",
	"TV series, season",
	"TV series, series"
}

local exceptionList = {
}

local otherInfoboxList = {
}

local function _main(args)
	local title = args[1]
	return validateDisambiguation.main(title, 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