Difference between revisions of "Template:Lua"

From Minetest Wiki
Jump to navigation Jump to search
m
m (Added doc template)
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
|type=notice
 
|type=notice
 
|text=
 
|text=
This template uses '''[[Module:{{ucfirst:{{PAGENAME:{{{1|{{BASEPAGENAME}}}}}}}}}]]''', {{#if:{{{data|}}}|with data stored in [[Module:{{ucfirst:{{PAGENAME:{{{data}}}}}}}]] {{#if:{{{data2|}}}|&#32;and [[Module:{{ucfirst:{{PAGENAME:{{{data2}}}}}}}]]}}|a script written in [[wikipedia:Lua (programming language)|Lua]]}}.<br/>
+
This template uses '''<includeonly>[[</includeonly>Module:{{ucfirst:{{PAGENAME:{{{1|{{BASEPAGENAME}}}}}}}}}<includeonly>]]</includeonly>''', {{#if:{{{data|}}}|with data stored in [[Module:{{ucfirst:{{PAGENAME:{{{data}}}}}}}]] {{#if:{{{data2|}}}|&#32;and [[Module:{{ucfirst:{{PAGENAME:{{{data2}}}}}}}]]}}|a script written in [[wikipedia:Lua (programming language)|Lua]]}}.<br/>
 
Please see [[wikipedia:Wikipedia:Lua]] and [[mw:Extension:Scribunto]] to learn more.
 
Please see [[wikipedia:Wikipedia:Lua]] and [[mw:Extension:Scribunto]] to learn more.
 
}}<noinclude>
 
}}<noinclude>
 +
{{Documentation|content=
 +
{{Languages}}
 +
 
== Usage ==
 
== Usage ==
 
Use on the doc page of templates which use Lua modules.
 
Use on the doc page of templates which use Lua modules.
Line 15: Line 18:
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 +
}}
 
</noinclude>
 
</noinclude>

Latest revision as of 07:10, 14 May 2017

Lua logo.png This template uses Module:Lua, a script written in Lua.
Please see wikipedia:Wikipedia:Lua and mw:Extension:Scribunto to learn more.
Documentation icon.png Documentation
Languages Language: English • Bahasa Melayu

Usage

Use on the doc page of templates which use Lua modules.

{{{1}}} is the module name without namespace, defaulting to {{BASEPAGENAME

. If the template uses data stored in a separate module(s) or module subpage(s), this can be noted with {{{data}}} and {{{data2}}}.

Disclaimer

Template:Lua is based on minecraft:Template:Lua, which is available under CC BY-NC-SA 3.0. }}