Thorium Mod Wiki:Lua
Jump to navigation
Jump to search
Lua is a programming language made available at the Thorium Mod Wiki via the Scribunto MediaWiki extension. It is a powerful scripting language that can extend the functionality of wiki templates beyond the capabilities usually ascribed to wiki code alone. It is embedded into wiki templates by employing the "{{#invoke:}}" syntax.
Lua source code is stored on pages called modules (eg. Module:Bananas, a test script). The documentation for a module is stored at each module's /doc
subpage (eg. Module:Bananas/doc).
Examples
- Use
{{#invoke:Bananas|hello}}
to print the text "Hello, world!". - See Module:BananasArgs for extended basic code examples.
See also
Help | ||
---|---|---|
Helping Out | Contents • Starting a new page • Signatures • Editing (Sandbox • Test template) • Style Guide • Things to do • Current article requests • Projects • Creating animations | |
Tools | DynamicPageList (DPL) • Lua scripts • Rollback • Visual Editor | |
General Info | About • Rules (Video policy) • General disclaimer • Privacy Policy • Terms of Service • Administrators Guide • Cache | |
Contact | Admin noticeboard |