Changes
allow reading wrapper templates and default arguments from the config page
function p._main(args, cfg, title)
args = args or {}
-- Initialise the protection object and check for errors
end
function p.main(frame, cfg) if not getArgs then= getArgs or require('Module:Arguments').getArgs getArgs cfg = cfg or require('Module:ArgumentsProtection banner/config') local defaultArgs = cfg.wrappers[frame:getParent():getTitle()] local args = getArgs(frame, {parentOnly = defaultArgs and true}) for k, v in pairs(defaultArgs or {}) do args[k] = v
end
end
return p