Commons:Lua

From Wikimedia Commons, the free media repository
Revision as of 07:07, 1 October 2019 by Lumu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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!").

[edit]
[edit]