Module:Protection banner: Difference between revisions

now reason
Enwikipedia>Jackmcbarn
(now level)
Enwikipedia>Jackmcbarn
(now reason)
Line 82:
local reason = args.reason or args[1]
if reason then
self._reasonreason = reason:lower()
end
end
Line 103:
local configTables = {}
if cfg.banners[self.action] then
configTables[#configTables + 1] = cfg.banners[self.action][self._reasonreason]
end
if cfg.defaultBanners[self.action] then
Line 728:
 
-- Get the other inputs.
local reason = protectionObj:getReason().reason
local action = protectionObj.action
local level = protectionObj.level
Line 868:
local expiry = protectionObj:getExpiry()
local action = protectionObj.action
local reason = protectionObj:getReason().reason
if not expiry