Module:Effective protection level: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
handle extendedconfirmed
(mw.ext.FlaggedRevs.getStabilitySettings can return nil, so avoid trying to index it when this happens)
(handle extendedconfirmed)
Line 44:
elseif title.namespace == 6 then
return 'filemover'
elseif level == 'extendedconfirmed' then
return 'extendedconfirmed'
else
return 'autoconfirmed'
Line 50 ⟶ 52:
local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename)
if blacklistentry then
returnif not blacklistentry.params.autoconfirmed and 'autoconfirmed' or 'templateeditor'then
return 'templateeditor'
elseif level == 'extendedconfirmed' then
return 'extendedconfirmed'
else
return 'autoconfirmed'
end
elseif level == 'editsemiprotected' then -- create-semiprotected pages return this for some reason
return 'autoconfirmed'
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu