Module:Protection banner: Difference between revisions

m
1 revision imported from wikipedia:Module:Protection_banner
m (1 revision imported)
m (1 revision imported from wikipedia:Module:Protection_banner)
 
(4 intermediate revisions by 4 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
verified
2,497

edits