Module:Canonicity

local Franchise = require("Module:Franchise") local utilsArg = require("Module:UtilsArg") local utilsMarkup = require("Module:UtilsMarkup")

local p = {}

function p.Start(frame) local args, err = utilsArg.parse(frame:getParent.args, p.Templates["Canonicity/Start"]) if err then return utilsMarkup.categories(err.categories) end return string.format(' ', Franchise.canonicity(args.code)) end

p.Templates = { ["Canonicity/Start"] = { purpose = "See Template:Canonicity.", format = "inline", params = { [1] = {				name = "code", desc = "Identifier of the game or other published media in question.", enum = Franchise.enum, }		}	} }

return p