Module:Effective protection level: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 61: Line 61:
end
end
end
end
-- 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
if not blacklistentry.params.autoconfirmed then
-- return 'templateeditor'
return 'templateeditor'
-- elseif level == 'extendedconfirmed' then
elseif level == 'extendedconfirmed' then
-- return 'extendedconfirmed'
return 'extendedconfirmed'
-- else
else
-- return 'autoconfirmed'
return 'autoconfirmed'
-- end
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'
-- elseif level then
elseif level then
-- return level
return level
-- elseif action == 'upload' then
elseif action == 'upload' then
-- return 'autoconfirmed'
return 'autoconfirmed'
-- elseif action == 'create' and title.namespace % 2 == 0 and title.namespace ~= 118 then -- You need to be registered, but not autoconfirmed, to create non-talk pages other than drafts
elseif action == 'create' and title.namespace % 2 == 0 and title.namespace ~= 118 then -- You need to be registered, but not autoconfirmed, to create non-talk pages other than drafts
-- return 'user'
return 'user'
-- else
else
-- return '*'
return '*'
-- end
end
end
end


Navigation menu