Anonymous user
Module:Protection banner: Difference between revisions
just pass the args through to the /config functions - that means the /config functions can use arbitrary parameters without them having to be specified in the main module
(don't use the wrapper option with Module:Arguments, as it prevents us from passing through parameters from the parent frame) |
(just pass the args through to the /config functions - that means the /config functions can use arbitrary parameters without them having to be specified in the main module) |
||
Line 344:
self._cfg = cfg
self._protectionObj = protectionObj
self.
end
Line 592 ⟶ 589:
mw.site.namespaces[self._protectionObj.title.namespace].talk.name,
self._protectionObj.title.text,
self.
self:_getExpandedMessage('talk-page-link-display')
)
Line 607 ⟶ 604:
function Blurb:_makeVandalTemplateParameter()
return require('Module:Vandal-m')._main{
self.
}
end
Line 627 ⟶ 624:
return self:_substituteParameters(msg)
elseif type(msg) == 'function' then
msg = msg(self._protectionObj, self.
if type(msg) ~= 'string' then
error(string.format(
|