Changes

Jump to navigation Jump to search

Module:Protection banner

50 bytes removed, 13:33, 24 June 2014
start changing the protection category function after a restructure of the config
--]]
local properties = {
expiry = {order = 1, keypos = 5, val = protectionStatusObj:getExpiry()}, namespace = {order = 2, keypos = 3, val = nskey}, reason = {order = 3, keypos = 4, val = protectionStatusObj:getReason()}, level = {order = 4, keypos = 2, val = protectionStatusObj:getLevel()}, action = {order = 5, keypos = 1, val = protectionStatusObj:getAction()}
}
for j, t in ipairs(attemptOrder) do
if j > noActive then
key[t.keyposorder] = 'all'
else
local quotient = i / 2 ^ (j - 1)
quotient = math.ceil(quotient)
if quotient % 2 == 1 then
key[t.keyposorder] = t.val
else
key[t.keyposorder] = 'all'
end
end
local level = protectionStatusObj:getLevel()
if type(expiry) == 'number' and expiry < os.time() or level == '*'
or action == 'move' and level == 'autoconfirmed'
or type(expiry) == 'number' and expiry < os.time()
then
Category.setName(self, configObj:getMessage('tracking-category-incorrect'))
Anonymous user

Navigation menu