Translations:Extension:Scribunto/Lua reference manual/1243/en

The module itself must return a Lua table containing the functions that may be called by $1. Generally, as shown above, a local variable is declared holding a table, functions are added to this table, and the table is returned at the end of the module code.