Module:Protection banner: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(add a Blurb:_makeIntroFragmentParameter function to get round the problem of how to deal with commas in run-on sentences using the INTROBLURB parameter) |
(make Protection:needsExpiry even more complicated to allow for trinary logic in cfg.expiryCheckActions) |
||
Line 301: | Line 301: | ||
function Protection:needsExpiry() |
function Protection:needsExpiry() |
||
local cfg = self._cfg |
local cfg = self._cfg |
||
local actionNeedsCheck = cfg.expirycheckactions[self.action] |
|||
return not self.expiry |
return not self.expiry and ( |
||
and cfg.expiryCheckActions[self.action] |
|||
actionNeedsCheck or ( |
|||
⚫ | |||
actionNeedsCheck == nil |
|||
⚫ | |||
⚫ | |||
⚫ | |||
) |
|||
) |
|||
end |
end |
||