Isuzu Vehicross:Lua: Difference between revisions

From Isuzu Vehicross Wiki
No edit summary
m (Text replacement - "Star Citizen" to "Isuzu Vehicross")
 
(One intermediate revision by the same user not shown)
Line 14: Line 14:


{{Wiki navplate}}
{{Wiki navplate}}
{{SHORTDESC|Lua usage on the Star Citizen Wiki}}
{{SHORTDESC|Lua usage on the Isuzu Vehicross Wiki}}
[[index.php?title=Category:Policies]]
[[index.php?title=Category:Policies]]

Latest revision as of 18:39, 3 July 2023

Lua is a programming language that is integrated into the Isuzu Vehicross Wiki with Scribunto. Lua source code is run from Modules in their own namespace, and invoked with {{#invoke:Module|function}}; this should be done with a wrapper template. For example, if we have a module named "foo", then we should have a template called "Template:Foo" consisting of {{#invoke:Foo|main}} to call the module, and use {{Foo}} to use the module on pages.

For certain complex templates, Lua runs many times more efficiently than standard wikitext. It can also perform operations not available otherwise in wikitext. Unlike JavaScript, it is available to all readers, and does not need to be enabled. It is also run during parsing, rather than after.

See also


Note: A portion of the text above is originated from the RuneScape Wiki under CC BY-NC-SA 3.0 license.

Template:Wiki navplate Template:SHORTDESC index.php?title=Category:Policies