Modul:Protection banner: Unterschied zwischen den Versionen
Modul:Protection banner (Quelltext anzeigen)
Version vom 29. September 2016, 19:32 Uhr
, vor 8 Jahrenremove expiry param (now also automatically retrieved for autoreview) and needsexpiry check
(bring changes from sandbox live) |
(remove expiry param (now also automatically retrieved for autoreview) and needsexpiry check) |
||
Zeile 132: | Zeile 132: | ||
elseif effectiveExpiry ~= 'unknown' then | elseif effectiveExpiry ~= 'unknown' then | ||
obj.expiry = validateDate(effectiveExpiry, 'expiry date') | obj.expiry = validateDate(effectiveExpiry, 'expiry date') | ||
end | end | ||
Zeile 313: | Zeile 305: | ||
end | end | ||
return '' | return '' | ||
end | end | ||
Zeile 345: | Zeile 325: | ||
local msg = self._cfg.msg | local msg = self._cfg.msg | ||
local ret = { self:makeProtectionCategory() } | local ret = { self:makeProtectionCategory() } | ||
if self:isIncorrect() then | if self:isIncorrect() then | ||
ret[#ret + 1] = makeCategoryLink( | ret[#ret + 1] = makeCategoryLink( |