Template:Lua

From Feed The Beast Wiki
Jump to: navigation, search
This page is a translated version of the page Template:Lua and the translation is 100% complete.

Lua logo.svg 本模板使用Module:Lua, 一个由Lua语言写成的脚本。
请阅读wikipedia:zh:维基百科:Lua以及mw:Extension:Scribunto以获取更多信息。
Template-info.png Documentation

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

Parameters

  • 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

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

produces

Lua logo.svg 本模板使用Module:Mods, 其数据存储于 Module:Mods/list
这些脚本由Lua语言写成。 请阅读wikipedia:zh:维基百科:Lua以及mw:Extension:Scribunto以获取更多信息。


Technical details

This template automatically adds the template page to Category:Lua-based templates. Set nocat to prevent this. Template:Doc/End/zh-cn