Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Prism Party:Lua

From Prism Party
Revision as of 06:44, 12 June 2025 by BakiDance (talk | contribs) (Created page with " '''Lua''' is a programming language that is integrated into {{SITENAME}} with Scribunto. Lua source code is run from Modules in their own namespace, and invoked with <code><nowiki>{{#invoke:Module|function}}</nowiki></code>; 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 <code><nowiki>{{#invoke:Foo|main}}</nowiki></code> to call the m...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Lua is a programming language that is integrated into Prism Party 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[edit]