Community Central
Community Central
(readding image that was part of infobox, removing broken link)
Tag: Help
(more logical order of documentation pages. Some of the functions in the standard libraries are an essential part of the language's functionality)
Tag: Help
Line 21: Line 21:
 
* [[w:c:dev:Lua templating/Converting Wikitext templates|Converting wikitext templates]]
 
* [[w:c:dev:Lua templating/Converting Wikitext templates|Converting wikitext templates]]
 
* [[w:c:dev:Lua templating/Reference manual|Reference manual]], a comprehensive documentation page of Lua code
 
* [[w:c:dev:Lua templating/Reference manual|Reference manual]], a comprehensive documentation page of Lua code
* [[w:c:dev:Lua templating/Reference manual/Scribunto libraries|Scribunto libraries]]
 
 
* [[w:c:dev:Lua templating/Reference manual/Standard libraries|Standard Lua libraries]]
 
* [[w:c:dev:Lua templating/Reference manual/Standard libraries|Standard Lua libraries]]
 
* [[w:c:dev:Lua templating/Reference manual/Scribunto libraries|Scribunto libraries]]
 
* [[w:c:dev:Category:Lua|More help pages]]
 
* [[w:c:dev:Category:Lua|More help pages]]
   

Revision as of 07:19, 24 December 2021

This extension is enabled by default on Fandom.
Lua-logo-nolabel

Lua is available as a templating language on Fandom, helping to provide users with the ability to create more maintainable templates and to improve the page performance.

Lua is a different coding experience to basic wikitext templates, resembling a more ‘traditional’ programming syntax. It offers two key advantages:

  1. Logical functionality is natively built into the Lua language, making the implementation of basic logic much easier in Lua than via MediaWiki's methods.
  2. Because Lua is streamlined for logical operations, it performs better than its wikitext counterparts.

Lua is not intended to replace JavaScript, CSS, or all wikitext templates.

Enabling and support

Lua is enabled by default on all wikis. The general standard Lua libraries along with the specialized Scribunto libraries are also available. Fandom's implementation of Scribunto on the legacy platform uses most standard features, but not all functions are supported. The differences are detailed in the reference manual.

For more background on the tool, read our introduction to Lua.

Lua module repository

Lua modules can also be loaded from the Fandom Developers Wiki using require("Dev:ModuleName"), as opposed to require("Module:ModuleName")[1]. These "global modules" are available for re-use Fandom-wide and are described in more detail here.

Documentation and further help

Lua documentation on the Fandom Developers Wiki:

In addition to this documentation, we have a forum board set up here to ask questions and get help.

See also

Fandom Developers Wiki (dev.fandom.com)

Further help and feedback

References