Module:Effective protection level: Difference between revisions
Content deleted Content added
Wikipedia contributors; attribution and history: https://en.wikipedia.org/wiki/Module:Effective_protection_level?action=history |
m Protected "Module:Effective protection level": Pre-registration protection review: Shared protection-notice infrastructure ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite)) |
||
| (One intermediate revision by the same user not shown) | |||
Line 44:
end
local level = title.protectionLevels[action] and title.protectionLevels[action][1]
-- Keep local MediaWiki restriction names distinct from the imported banner labels.
local bannerLevel = {
edittemplateprotected = 'templateeditor',
editextendedsemiprotected = 'extendedconfirmed'
}
level = bannerLevel[level] or level
if level == 'sysop' or level == 'editprotected' then
return 'sysop'
| |||