(Removed Navbox section; shortened intro for overview; de interlanguage) Tag: Help |
mNo edit summary Tag: Help |
||
(8 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Enabled by default}} |
||
− | [[File:Lua-logo-nolabel.png|120px|right|link=]] |
||
+ | |||
'''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 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. |
||
Line 9: | Line 10: | ||
== Enabling and support == |
== Enabling and support == |
||
− | Lua is enabled by default on all wikis. The general standard Lua libraries along with the specialized [[mw:Extension:Scribunto|Scribunto]] libraries are also available. Fandom's implementation of Scribunto uses most standard features, but not all functions are supported. The differences are detailed in the [[w:c:dev:Lua templating/Reference manual|reference manual]]. |
+ | Lua is enabled by default on all wikis. The general standard Lua libraries along with the specialized [[mw:Extension:Scribunto|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 [[w:c:dev:Lua templating/Reference manual|reference manual]]. |
For more background on the tool, read our [[w:User blog:Grunny/Introducing Lua, for faster and more powerful templates|introduction to Lua]]. |
For more background on the tool, read our [[w:User blog:Grunny/Introducing Lua, for faster and more powerful templates|introduction to Lua]]. |
||
== Lua module repository == |
== Lua module repository == |
||
− | Lua modules can also be loaded from the [[w:c:dev|Fandom |
+ | Lua modules can also be loaded from the [[w:c:dev|Fandom Developers Wiki]] using <code>require("Dev:ModuleName")</code>, as opposed to <code>require("Module:ModuleName")</code><ref>[[w:User blog:Kirkburn/Technical Update: June 24, 2015|User blog:Kirkburn/Technical Update: June 24, 2015]]</ref>. These "global modules" are available for re-use Fandom-wide and are described in more detail [[w:c:dev:Global Lua Modules|here]]. |
== Documentation and further help == |
== Documentation and further help == |
||
− | [[w:c:dev:Lua |
+ | [[w:c:dev:Help:Lua|Lua documentation]] on the Fandom Developers Wiki: |
* [[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 |
||
Line 64: | Line 65: | ||
[[vi:Trợ giúp:Lua]] |
[[vi:Trợ giúp:Lua]] |
||
[[zh:Help:Lua]] |
[[zh:Help:Lua]] |
||
+ | |||
[[Category:Help]] |
[[Category:Help]] |
||
[[Category:Extensions]] |
[[Category:Extensions]] |
Revision as of 10:07, 15 September 2021
- This extension is enabled by default on Fandom.
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:
- Logical functionality is natively built into the Lua language, making the implementation of basic logic much easier in Lua than via MediaWiki's methods.
- 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:
- Converting wikitext templates
- Reference manual, a comprehensive documentation page of Lua code
- Scribunto libraries
- Standard Lua libraries
- More help pages
In addition to this documentation, we have a forum board set up here to ask questions and get help.
See also
- Lua on Wikipedia
- Lua modules on Wikipedia
- Lua-based templates on Wikipedia
- Scribunto extension page
- Learn Lua in 15 Minutes
- Official Lua documentation
- Fandom Developers Wiki (
dev.fandom.com
)
Further help and feedback
- Browse and search other help pages at Help:Contents
- Check Fandom Community Central for sources of further help and support
- Check Contacting Fandom for how to report any errors or unclear steps in this article