Open main menu

Changes

Module:Protection banner

196 bytes added, 15:16, 6 July 2014
allow reading wrapper templates and default arguments from the config page
function p._main(args, cfg, title)
args = args or {}
if not cfg then = cfg = or require('Module:Protection banner/config') end
-- 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
local args = getArgs(frame) return p._main(args, cfg)
end
return p
Anonymous user