Changes
		
		
		
		
		
		
		Jump to navigation
		Jump to search
		
	self._cfg local data = mw.loadData('Module:Protection banner/config')	self._cfg = data.cfg	self._msg = data.msg
 	return mw.message.newRawMessagelocal function getParameter(msgmatch):params		match = tonumber(match)		return self._params)[match]	end 	msg = msg:plaingsub('$([1-9][0-9]*)', getParameter)	return msg
 
		
		
		
		
		
		
		
	
use gsub instead of the mw.message library for substituting parameters, as mw.message:params doesn't work with metatables; also, a few bug fixes
function Config:initialize()
end
function Config:getMessage(key)
	return self._cfg.msg_msg[key]
end
		self._params = params
	end
end
function Blurb:_makePagetypeParameter()
	-- parameter $4
	local pagetypes = self._configObj:getConfigTable('pagetypeNamespacesbannerPagetypes')	local namespace = self._titleObj:getNamespace().namespace
	return pagetypes[namespace] or pagetypes.default or 'page'
end
		self._configObj:getMessage('deletion-log-link-display')
	)
end
function Blurb:makeReasonText()
	local msg = self._bannerConfig.text
	return self:_substituteParameters(msg)
end