Module:Protection banner: Difference between revisions

now level
(try to merge the edit conflict, one variable at a time, starting with action)
(now level)
Line 47:
level = '*'
end
self._levellevel = level or '*'
end
 
Line 106:
end
if cfg.defaultBanners[self.action] then
configTables[#configTables + 1] = cfg.defaultBanners[self.action][self._levellevel]
configTables[#configTables + 1] = cfg.defaultBanners[self.action].default
end
Line 122:
 
function Protection:isProtected()
return self._levellevel ~= '*'
end
 
Line 268:
local mEditRequest = require('Module:Submit an edit request')
local action = self._protectionObj.action
local level = self._protectionObj:getLevel().level
-- Get the display message key.
Line 307:
function Blurb:_makeExplanationBlurbParameter()
local action = self._protectionObj.action
local level = self._protectionObj:getLevel().level
local namespace = self._titleObj.namespace
local isTalk = self._titleObj.isTalkPage
Line 340:
local imageLinks = self._configObj.cfg.imageLinks
local action = self._protectionObj.action
local level = self._protectionObj:getLevel().level
local msg
if imageLinks[action][level] then
Line 379:
local protectionBlurbs = self._configObj.cfg.protectionBlurbs
local action = self._protectionObj.action
local level = self._protectionObj:getLevel().level
local msg
if protectionBlurbs[action][level] then
Line 405:
local protectionLevels = self._configObj.cfg.protectionLevels
local action = self._protectionObj.action
local level = self._protectionObj:getLevel().level
local msg
if protectionLevels[action][level] then
Line 534:
 
local action = protectionObj.action
local level = protectionObj:getLevel().level
local expiry = protectionObj:getExpiry()
local namespace = titleObj.namespace
Line 730:
local reason = protectionObj:getReason()
local action = protectionObj.action
local level = protectionObj:getLevel().level
--[[
Line 892:
local expiry = protectionObj:getExpiry()
local action = protectionObj.action
local level = protectionObj:getLevel().level
 
if not protectionObj:isProtected()
Line 919:
local action = protectionObj.action
local level = protectionObj:getLevel().level
local namespace = titleObj.namespace
Anonymous user