Module:Effective protection level: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
enable titleblacklist checks
(Use new protection retrieval, and prepare for when titleblacklist works here)
(enable titleblacklist checks)
Line 28:
return 'templateeditor'
elseif action == 'move' then
--[[local blacklistentry = mw.ext.TitleBlacklist.test('edit', pagename) -- Testing action edit is correct, since this is for the source page. The target page name gets tested with action move.
if blacklistentry and not blacklistentry.params.autoconfirmed then
return 'accountcreator'
else]]ifelseif title.namespace == 6 then
return 'filemover'
else
Line 37:
end
else
--[[local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename)
if blacklistentry then
return blacklistentry.params.autoconfirmed and 'autoconfirmed' or 'accountcreator'
else]]ifelseif level then
return level
elseif action == 'upload' then
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu