Anonymous user
Module:Protection banner: Difference between revisions
start changing the protection category function after a restructure of the config
Enwikipedia>Mr. Stradivarius (allow the first positional parameter to be used for the reason) |
Enwikipedia>Mr. Stradivarius (start changing the protection category function after a restructure of the config) |
||
Line 757:
--]]
local properties = {
expiry = {order = 1
namespace = {order = 2
reason = {order = 3
level = {order = 4
action = {order = 5
}
Line 856:
for j, t in ipairs(attemptOrder) do
if j > noActive then
key[t.
else
local quotient = i / 2 ^ (j - 1)
quotient = math.ceil(quotient)
if quotient % 2 == 1 then
key[t.
else
key[t.
end
end
Line 910:
local level = protectionStatusObj:getLevel()
if type(expiry) == 'number' and expiry < os.time()▼
▲ or level == '*'
or action == 'move' and level == 'autoconfirmed'
then
Category.setName(self, configObj:getMessage('tracking-category-incorrect'))
|