Difference between revisions of "Module:Effective protection level"
Jump to navigation
Jump to search
Module:Effective protection level (view source)
Revision as of 19:50, 19 April 2014
, 19:50, 19 April 2014add a metamethod so the action can be passed as the first param to #invoke instead of 'main'
>Jackmcbarn (let one function work for other modules and for wikitext) |
>Jackmcbarn (add a metamethod so the action can be passed as the first param to #invoke instead of 'main') |
||
Line 63: | Line 63: | ||
end | end | ||
end | end | ||
setmetatable(p, { __index = function(t, k) | |||
return function(frame, ...) | |||
return t.main(frame, k, ...) | |||
end | |||
end }) | |||
return p | return p |