Changes

Jump to navigation Jump to search

Module:Protection banner

33 bytes removed, 00:32, 27 May 2014
m
['move-sysop-template-all-all'] = 'Wikipedia move-protected templates',
['move-sysop-user-all-all'] = 'Wikipedia move-protected user and user talk pages',
['pcautoreview-autoconfirmed-all-all-all'] = 'Wikipedia pending changes protected pages (level 1)', ['pcautoreview-reviewer-all-all-all'] = 'Wikipedia pending changes protected pages (level 2)',
}
-- Initialise necessary modules.
local mArguments = require('Module:Arguments')
local mProtectionLevel = require('Module:Effective protection level')._main
local mMessageBox -- only needs to be loaded if we are outputting a banner, so lazily initialise
create = true,
edit = true,
move = true, autoreview = true
}
setmetatable(protectionData, {
local level
if actions[key] then
level = mProtectionLevel.main(key, title)
if level == 'accountcreator' then
-- Lump titleblacklisted pages in with template-protected pages,
level = 'templateeditor'
end
elseif key == 'pc' then
level = mProtectionLevel.pending(title)
end
protectionData[key] = level
Anonymous user

Navigation menu