« Introduction au Lua/Modules » : différence entre les versions

Contenu supprimé Contenu ajouté
m CourseCat
m Sidebar
Ligne 1 :
{{:Lua{{BASEPAGENAME}}/Sidebar}}
Lua modules based on the Scribunto/Lua extension are stored in resource pages using the Module: namespace. Each module uses a table to hold functions and variables, and that containing table is returned at the end of the module code.<ref>http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual</ref> This lesson will show you how to add multiple functions to a module.
__TOC__