local p = local getArgs = require('Module:Arguments').getArgslocal checkIfValidTopic = require('Module:Sanctions').checkIfValidTopic
local function tableContains(needle, haystack) for _, v in pairs(haystack) do if v
local function syntaxHelp return topic}} not specified. Available options:end
function p.build(frame, args) local topic = args[1] or args['topic'] local args =
if not topic then return frame:preprocess(syntaxHelp) end
if checkIfValidTopic(topic) then return frame:expandTemplate else -- return to ds template, let it error if not recognised return frame:expandTemplate endend
function p.main(frame) local args = getArgs(frame,) return p.build(frame, args)end
return p