Jump to content

Module:Effective protection level: Difference between revisions

add a metamethod so the action can be passed as the first param to #invoke instead of 'main'
Enwikipedia>Jackmcbarn
(let one function work for other modules and for wikitext)
Enwikipedia>Jackmcbarn
(add a metamethod so the action can be passed as the first param to #invoke instead of 'main')
Line 63:
end
end
 
setmetatable(p, { __index = function(t, k)
return function(frame, ...)
return t.main(frame, k, ...)
end
end })
 
return p
Cookies help us deliver our services. By using our services, you agree to our use of cookies.