Open main menu

Changes

Module:Protection banner

43 bytes removed, 01:55, 28 June 2014
next expiry
local indefStrings = configObj.cfg.indefStrings
if indefStrings[args.expiry] then
self._expiry expiry = 'indef'
elseif type(args.expiry) == 'number' then
self._expiry expiry = args.expiry
else
self._expiry expiry = validateDate(args.expiry, 'expiry date')
end
end
function Blurb:_makeDisputeBlurbParameter()
local expiry = self._protectionObj:getExpiry().expiry
if type(expiry) == 'number' then
return self:_getExpandedMessage('dispute-blurb-expiry')
function Blurb:_makeExpiryParameter()
local expiry = self._protectionObj:getExpiry().expiry
if expiry == 'indef' then
return nil
function Blurb:_makeIntroBlurbParameter()
local expiry = self._protectionObj:getExpiry().expiry
if type(expiry) == 'number' then
return self:_getExpandedMessage('intro-blurb-expiry')
function Blurb:_makeTooltipBlurbParameter()
local expiry = self._protectionObj:getExpiry().expiry
if type(expiry) == 'number' then
return self:_getExpandedMessage('tooltip-blurb-expiry')
local action = protectionObj.action
local level = protectionObj.level
local expiry = protectionObj:getExpiry().expiry
local namespace = titleObj.namespace
-- Get the expiry.
local expiry = protectionObj:getExpiry().expiry
if type(expiry) == 'number' then
expiry = 'temp'
local reasonsWithoutExpiryCheck = configObj.cfg.reasonsWithoutExpiryCheck
local expiryCheckActions = configObj.cfg.expiryCheckActions
local expiry = protectionObj:getExpiry().expiry
local action = protectionObj.action
local reason = protectionObj.reason
local protectionObj = self._protectionObj
local expiry = protectionObj:getExpiry().expiry
local action = protectionObj.action
local level = protectionObj.level
Anonymous user