Modul:Effective protection level: Unterschied zwischen den Versionen
Modul:Effective protection level (Quelltext anzeigen)
Version vom 19. April 2014, 21:50 Uhr
, vor 10 Jahrenadd a metamethod so the action can be passed as the first param to #invoke instead of 'main'
(let one function work for other modules and for wikitext) |
(add a metamethod so the action can be passed as the first param to #invoke instead of 'main') |
||
Zeile 63: | Zeile 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 |