Module:Protection banner: Difference between revisions

next expiry
Enwikipedia>Jackmcbarn
(now reason)
Enwikipedia>Jackmcbarn
(next expiry)
Line 70:
local indefStrings = configObj.cfg.indefStrings
if indefStrings[args.expiry] then
self._expiryexpiry = 'indef'
elseif type(args.expiry) == 'number' then
self._expiryexpiry = args.expiry
else
self._expiryexpiry = validateDate(args.expiry, 'expiry date')
end
end
Line 240:
 
function Blurb:_makeDisputeBlurbParameter()
local expiry = self._protectionObj:getExpiry().expiry
if type(expiry) == 'number' then
return self:_getExpandedMessage('dispute-blurb-expiry')
Line 294:
 
function Blurb:_makeExpiryParameter()
local expiry = self._protectionObj:getExpiry().expiry
if expiry == 'indef' then
return nil
Line 353:
 
function Blurb:_makeIntroBlurbParameter()
local expiry = self._protectionObj:getExpiry().expiry
if type(expiry) == 'number' then
return self:_getExpandedMessage('intro-blurb-expiry')
Line 461:
 
function Blurb:_makeTooltipBlurbParameter()
local expiry = self._protectionObj:getExpiry().expiry
if type(expiry) == 'number' then
return self:_getExpandedMessage('tooltip-blurb-expiry')
Line 535:
local action = protectionObj.action
local level = protectionObj.level
local expiry = protectionObj:getExpiry().expiry
local namespace = titleObj.namespace
Line 709:
-- Get the expiry.
local expiry = protectionObj:getExpiry().expiry
if type(expiry) == 'number' then
expiry = 'temp'
Line 866:
local reasonsWithoutExpiryCheck = configObj.cfg.reasonsWithoutExpiryCheck
local expiryCheckActions = configObj.cfg.expiryCheckActions
local expiry = protectionObj:getExpiry().expiry
local action = protectionObj.action
local reason = protectionObj.reason
Line 890:
local protectionObj = self._protectionObj
local expiry = protectionObj:getExpiry().expiry
local action = protectionObj.action
local level = protectionObj.level