Open main menu

Changes

Module:Protection banner

125 bytes removed, 19:00, 28 June 2014
the only reason to ever use a title other than the current one is for testing, so don't bother exposing it to wikitext
}
function Protection:initialize(args, cfg, title)
self._cfg = cfg
if args.title then self.title = mw.title.new(args.title) if not self.title then error('Invalid title "' .. args.title .. '"', 2) end else self.title = or mw.title.getCurrentTitle() end
-- Set action
end
function p._main(args, cfg, title)
if not cfg then
cfg = mw.loadData('Module:Protection banner/config')
-- Initialise protection and blurb objects
local protectionObj = Protection:new(args, cfg, title)
local blurbObj = Blurb:new(protectionObj, args, cfg)
Anonymous user