Module:Protection banner: Difference between revisions

m
235 revisions imported from wikipedia:Module:Protection_banner
(Replace Module:Vandal-m per TfD; getting this over-two-year-old merge proposal finally completed)
m (235 revisions imported from wikipedia:Module:Protection_banner)
 
(4 intermediate revisions by 3 users not shown)
Line 3:
 
-- Initialise necessary modules.
require('Module:No globalsstrict')
local makeFileLink = require('Module:File link')._main
local effectiveProtectionLevel = require('Module:Effective protection level')._main
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
rtl-contributors
1,630

edits