Module:Protection banner: Difference between revisions

Content added Content deleted
Enwikipedia>Mr. Stradivarius
(Fix Protection:makeProtectionCategory for office-protected pages. For these, the reason needs to be the no. 1 priority, not just higher priority than the namespace.)
Enwikipedia>Mr. Stradivarius
(don't use the wrapper option with Module:Arguments, as it prevents us from passing through parameters from the parent frame)
Line 830: Line 830:
getArgs = require('Module:Arguments').getArgs
getArgs = require('Module:Arguments').getArgs
end
end
local args = getArgs(frame, {wrappers = 'Template:Pp'})
local args = getArgs(frame)
return p._main(args)
return p._main(args)
end
end