Anonymous user
Module:Protection banner: Difference between revisions
Jump to navigation
Jump to search
try fairly ugly hack for office protection
(make indef blp categories work for 'all' as well as 'indef') |
(try fairly ugly hack for office protection) |
||
Line 143:
{true, true, true, true, true}, -- 1
{true, true, true, true, false}, -- 2
{true, true,
{true, true,
{true, true,
{true, true,
{true, true, false, false, true}, -- 7
{true, true, false, false, false}, -- 8
Line 153:
{false, false, false, false, false} -- 11
}
local reasonFirst = {
attemptOrder[3], attemptOrder[4] = attemptOrder[4], attemptOrder[3]▼
vandalism = true,
office = true
}
if reasonFirst[reason] then
▲ attemptOrder[3], attemptOrder[4] = attemptOrder[4], attemptOrder[3]
attemptOrder[5], attemptOrder[6] = attemptOrder[6], attemptOrder[5]
table.insert(attemptOrder, 2, {false, false, false, true, false}) -- To deal with office-protection
end
|