As part of the Unified Community Platform project, this wiki and 38 others will be migrated to the new platform in the next few weeks. Minimal changes are expected as part of this migration. Read more here.

Template:Lua/doc

From Feed The Beast Wiki
Jump to: navigation, search
Template-info.png Documentation

This template is used on the documentation pages of templates which invoke Lua modules.

Parameters[edit source]

  • 1: (Default: {{BASEPAGENAME}}) The main module name without the namespace.
  • data: (Optional) The module that stores data used by the module or template itself, e.g. Mods/list.
  • data2: (Optional) The second module that stores data used by the module or template itself.
  • nocat: (Optional) If set, the main template page is not added to Category:Lua-based templates.


Examples[edit source]

{{Lua|Mods|data=Mods/list}}

produces

Lua logo.svg This template uses Module:Mods, with data stored in Module:Mods/list.
These scripts are written in Lua. Please see wikipedia:wp:Lua and mw:Extension:Scribunto to learn more.


Technical details[edit source]

This template automatically adds the template page to Category:Lua-based templates. Set nocat to prevent this.


This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.

Other languages:
English