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
 
Map local restriction names to imported protection banner labels
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'