Module:Protection banner: Difference between revisions

Content deleted Content added
m 1 revision imported from wikipedia:Module:Protection_banner
add catonly param which hides both the banner and padlock if set to yes. all testcases pass. tested in sandbox.
Line 843:
-- 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