en:Module:Effective protection level 2016年4月6日 (水) 17:04(UTC)より
template>K-iczn (en:Module:Effective protection level 22:18, 6 January 2015(UTC)より) |
template>K-iczn (en:Module:Effective protection level 2016年4月6日 (水) 17:04(UTC)より) |
||
14行目: | 14行目: | ||
pagename = title.prefixedText | pagename = title.prefixedText | ||
if action == 'autoreview' then | if action == 'autoreview' then | ||
local level = mw. | local level = mw.ext.FlaggedRevs.getStabilitySettings(title) | ||
level = level and level.autoreview | |||
if level == 'review' then | if level == 'review' then | ||
return 'reviewer' | return 'reviewer' | ||
43行目: | 44行目: | ||
elseif title.namespace == 6 then | elseif title.namespace == 6 then | ||
return 'filemover' | return 'filemover' | ||
elseif level == 'extendedconfirmed' then | |||
return 'extendedconfirmed' | |||
else | else | ||
return 'autoconfirmed' | return 'autoconfirmed' | ||
49行目: | 52行目: | ||
local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename) | local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename) | ||
if blacklistentry then | if blacklistentry then | ||
if not blacklistentry.params.autoconfirmed 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 | elseif level == 'editsemiprotected' then -- create-semiprotected pages return this for some reason | ||
return 'autoconfirmed' | return 'autoconfirmed' |