Anonymous user
Module:Protection banner: Difference between revisions
the only reason to ever use a title other than the current one is for testing, so don't bother exposing it to wikitext
(put Protection in charge of generating its own category links) |
(the only reason to ever use a title other than the current one is for testing, so don't bother exposing it to wikitext) |
||
Line 67:
}
function Protection:initialize(args, cfg, title)
self._cfg = cfg
▲ self.title = mw.title.getCurrentTitle()
-- Set action
Line 884 ⟶ 877:
end
function p._main(args, cfg, title)
if not cfg then
cfg = mw.loadData('Module:Protection banner/config')
Line 890 ⟶ 883:
-- Initialise protection and blurb objects
local protectionObj = Protection:new(args, cfg, title)
local blurbObj = Blurb:new(protectionObj, args, cfg)
|