Module:Protection banner/sandbox: Difference between revisions

Content deleted Content added
Undid revision 708017451 by Mr. Stradivarius (talk) not necessary, per the talk page
some formatting tweaks
Line 74:
while true do
-- Can't use pairs() since we're adding and removing things as we're iterating
local k = next(toWalk) -- This always gets the "first" key
if k == nil then break end
toWalk[k] = nil
Line 874:
local ret = {}
 
-- If a page's edit protection is equally or more restrictive than its
-- protection from some other action, then don't bother displaying anything
-- then don't bother displaying anything for the other action (except categories).
if protectionObj.action == 'edit' or
args.demolevel or
not walkHierarchy(
cfg.hierarchy,
protectionObj.level
)[effectiveProtectionLevel('edit', protectionObj.title)]
then
-- Initialise the blurb object
local blurbObj = Blurb.new(protectionObj, args, cfg)