Open main menu

Changes

Module:Protection banner

49 bytes added, 19 January
m
1 revision imported
-- Initialise necessary modules.
require('Module:No globalsstrict')
local makeFileLink = require('Module:File link')._main
local effectiveProtectionLevel = require('Module:Effective protection level')._main
function Blurb:_makeVandalTemplateParameter()
return requiremw.getCurrentFrame('Module):VandalexpandTemplate{ title="vandal-m')._main{", args={self._args.user or self._protectionObj.title.baseText}
}
end
-- protection from some other action, then don't bother displaying anything
-- for the other action (except categories).
if not yesno(args.catonly) and (protectionObj.action == 'edit' or
args.demolevel or
not getReachableNodes(
cfg.hierarchy,
protectionObj.level
)[effectiveProtectionLevel('edit', protectionObj.title)])
then
-- Initialise the blurb object