Commons:Lua
(Redirected from Lua)
Lua is a programming language that is now available, via the Scribunto MediaWiki extension, on Wikimedia Commons. Lua code can now be embedded into wiki templates by employing the "{{#invoke:}}" functionality of the Scribunto MediaWiki extension.
The Lua source code is stored in pages called modules (e.g., Module:Bananas). These individual modules are then invoked (by "{{#invoke:}}") on template pages (e.g., Module:Bananas/doc uses the code {{#invoke:Bananas|hello}} to print the text "Hello, world!").
Links
[edit]- Commons:Lua/Modules List of all existing modules
- Commons:Lua/Testing Single page with all unit testing subpages. See also Category:Testcases modules.
- Module:Bananas: The simplest possible script, providing a single function with no arguments.