Module:MakeMWModule/doc

Lua-only module which creates MediaWiki-compatible tables from other Lua modules.

makeMWModule(t)
Replaces all functions in a Lua module with ones that take MediaWiki frame arguments, aliasing the original functions.

Parameters

 * t
 * Lua table with keys mapped to functions

Return values

 * A new table  such that, for every function   present in the argument table:
 * is a function that accepts a single MediaWiki frame argument, calls  on it, then forwards the result to