Module:Effective protection level: Difference between revisions
Content deleted Content added
Created page with "local p = {} -- Returns the permission required to perform a given action on a given title. -- If no title is specified, the title of the page being displayed is used. funct..." |
Enwikipedia>Jackmcbarn fix semi-create-protected pages |
||
Line 1:
local p = {}
-- Returns the permission required to perform a given action on a given title.
-- If no title is specified, the title of the page being displayed is used.
Line 50:
if blacklistentry then
return blacklistentry.params.autoconfirmed and 'autoconfirmed' or 'accountcreator'
elseif level == 'editsemiprotected' then -- create-semiprotected pages return this for some reason
return 'autoconfirmed'
elseif level then
return level
Line 60 ⟶ 62:
end
end
setmetatable(p, { __index = function(t, k)
return function(frame)
Line 66 ⟶ 68:
end
end })
return p
|