Module:Protection banner: Difference between revisions
specify Template:Pp as a wrapper for the module, and make args a local variable as otherwise it's a bit of a bracket overload
(comment tweaks) |
(specify Template:Pp as a wrapper for the module, and make args a local variable as otherwise it's a bit of a bracket overload) |
||
Line 846: | Line 846: | ||
getArgs = require('Module:Arguments').getArgs | getArgs = require('Module:Arguments').getArgs | ||
end | end | ||
return p._main( | local args = getArgs(frame, {wrappers = 'Template:Pp'}) | ||
return p._main(args) | |||
end | end | ||
return p | return p |