Open main menu

Changes

Module:Effective protection level

270 bytes added, 5 years ago
m
1 revision imported
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 JSON page return 'sysop' end
end
local level = title.protectionLevels[action] and title.protectionLevels[action][1]
Anonymous user