ವಿಕಿಪೀಡಿಯ:Lua

ವಿಕಿಪೀಡಿಯರ್ದ್
Jump to navigation Jump to search

ಟೆಂಪ್ಲೇಟ್:Information page ಟೆಂಪ್ಲೇಟ್:Namespaces

Lua is a programming language that is available via the Scribunto MediaWiki extension on the English Wikipedia. Lua code can now be embedded into wiki templates by employing the "{{#invoke:}}" functionality of Scribunto. This extension supports Lua 5.1 as of July 2015.

The Lua source code is stored in pages called modules (e.g., Module:Example). These individual modules are then invoked (by code {{#invoke:<Module name>|<Function name|(optional) param1 | param2...}}). Example:

Wikitext Result
{{#invoke:Example|hello}} Script error: No such module "Example".