Module:Protection banner: Difference between revisions
Content deleted Content added
Antoniokf5 (talk | contribs) m 1 revision imported from wikipedia:Module:Protection_banner |
m 1 revision imported from wikipedia:Module:Protection_banner |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 3:
-- Initialise necessary modules.
require('
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
|