Changes

Jump to navigation Jump to search

Module:Protection banner

101 bytes added, 14:56, 6 July 2014
use pipes as separators instead of hyphens for the protection category keys and validate reasons when we create the protection object to make sure they don't contain pipes
if args[1] then
self.reason = mw.ustring.lower(args[1])
if self.reason:find('|') then
error('reasons cannot contain the pipe character ("|")', 0)
end
end
end
end
key = table.concat(key, '-|')
local attempt = cats[key]
if attempt then
Anonymous user

Navigation menu