Editing Module:Effective protection level
From MINR.ORG WIKI
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 44: | Line 44: | ||
elseif title.namespace == 6 then | elseif title.namespace == 6 then | ||
return 'filemover' | return 'filemover' | ||
− | |||
− | |||
else | else | ||
return 'autoconfirmed' | return 'autoconfirmed' | ||
Line 52: | Line 50: | ||
local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename) | local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename) | ||
if blacklistentry then | if blacklistentry then | ||
− | + | return blacklistentry.params.autoconfirmed and 'autoconfirmed' or 'templateeditor' | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
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' |