Changes

Jump to: navigation, search

Module:Effective protection level

232 bytes added, 19:00, 26 October 2018
Handle interfaceadmin
end
if title.namespace == 8 then -- MediaWiki namespace
if title.contentModel == 'javascript' or title.contentModel == 'css' then -- site JS or CSS page return 'interfaceadmin' else -- any non-JS/CSS MediaWiki page return 'sysop' end elseif title.namespace == 2 and title.isSubpage and ( then if title.contentModel == 'javascript' or title.contentModel == 'css' then -- user JS or CSS page return 'interfaceadmin' elseif title.contentModel == 'json' ) then -- user JS, CSS or JSON page return 'sysop' end
end
local level = title.protectionLevels[action] and title.protectionLevels[action][1]
Anonymous user

Navigation menu