Module:Protection banner: Difference between revisions

get a few other changes from the ec
Enwikipedia>Jackmcbarn
(and finally protectionDate)
Enwikipedia>Jackmcbarn
(get a few other changes from the ec)
Line 861:
 
function ExpiryCategory:render()
local configObjreasonsWithoutExpiryCheck = self._configObj.cfg.reasonsWithoutExpiryCheck
local protectionObjexpiryCheckActions = self._protectionObj_configObj.cfg.expiryCheckActions
local protectionObjexpiry = self._protectionObj.expiry
local action = protectionObjself._protectionObj.action
local reasonsWithoutExpiryCheck = configObj.cfg.reasonsWithoutExpiryCheck
local reason = protectionObjself._protectionObj.reason
local expiryCheckActions = configObj.cfg.expiryCheckActions
local expiry = protectionObj.expiry
local action = protectionObj.action
local reason = protectionObj.reason
if not expiry
Line 875 ⟶ 872:
and not reasonsWithoutExpiryCheck[reason]
then
self:setName(configObjself._configObj.msg['tracking-category-expiry'])
end
return Category.render(self)
Line 889 ⟶ 886:
local configObj = self._configObj
local protectionObj = self._protectionObj
local expiry = protectionObj.expiry
local action = protectionObj.action
Line 915 ⟶ 911:
function TemplateCategory:render()
local configObj = self._configObj
local protectionObj = self._protectionObj
local titleObj = self._titleObj
local action = self._protectionObj.action
local actionlevel = protectionObjself.action_protectionObj.level
local level = protectionObj.level
local namespace = titleObj.namespace