Jump to content

Module:Protection banner: Difference between revisions

add catonly param which hides both the banner and padlock if set to yes. all testcases pass. tested in sandbox.
(Replace Module:Vandal-m per TfD; getting this over-two-year-old merge proposal finally completed)
(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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.