Note: This is a project under development. The articles on this wiki are just being initiated and broadly incomplete. You can Help creating new pages.

Changes

Jump to: navigation, search

Module:Effective protection level

189 bytes added, 8 years ago
handle extendedconfirmed
pagename = title.prefixedText
if action == 'autoreview' then
local level = mw.getCurrentFrameext.FlaggedRevs.getStabilitySettings(title):callParserFunction('PENDINGCHANGELEVEL', pagename) level = level and level.autoreview
if level == 'review' then
return 'reviewer'
elseif title.namespace == 6 then
return 'filemover'
elseif level == 'extendedconfirmed' then
return 'extendedconfirmed'
else
return 'autoconfirmed'
local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename)
if blacklistentry then
return if not blacklistentry.params.autoconfirmed and then return 'templateeditor' elseif level == 'extendedconfirmed' then return 'autoconfirmedextendedconfirmed' or else return 'templateeditorautoconfirmed' end
elseif level == 'editsemiprotected' then -- create-semiprotected pages return this for some reason
return 'autoconfirmed'
Anonymous user

Navigation menu