Difference between revisions of "Template:Lua"
Jump to navigation
Jump to search
KamranMackey (talk | contribs) (Created the Lua template.) |
m (Fixed documentation) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{ | {| cellspacing="2px" style="margin:auto" | ||
{{Lua| | | [[File:Lua logo.png|32px|link=]] | ||
{{ | | This template uses '''<includeonly>[[</includeonly>Module:{{ucfirst: {{PAGENAME: {{{1|{{BASEPAGENAME}}}}} }} }}<includeonly>]]</includeonly>''', {{ #if: {{{data|}}} | with data stored in [[Module:{{ ucfirst: {{PAGENAME:{{{data}}}}} }}]]{{ #if: {{{data2|}}} |  and [[Module:{{ ucfirst: {{PAGENAME:{{{data2}}}}} }}]] }} | a script written in [[wikipedia:Lua (programming language)|Lua]] }}.<br>{{ #if: {{{data|}}} | These scripts are written in [[wikipedia:Lua (programming language)|Lua]]. }} Please see [[wikipedia:wp:Lua]] and [[mw:Extension:Scribunto]] to learn more. | ||
< | |}<includeonly>{{ | ||
#if: {{{nocat|}}} | |||
| | |||
| {{#ifeq: {{SUBPAGENAME}} | doc | |||
| | |||
| [[Category:Lua-based templates]] | |||
}} | |||
}}</includeonly><noinclude> | |||
{{Documentation}} | |||
</noinclude> | </noinclude> |
Latest revision as of 17:55, 8 March 2015
This template uses Module:Lua, a script written in Lua. Please see wikipedia:wp:Lua and mw:Extension:Scribunto to learn more. |
Designed to be put on the doc page of templates which use lua modules. It also adds them to Category:Lua-based templates.
Parameters[edit]
- {{{1}}}: 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}}}
. - nocat: Disable page being automatically added to Category:Lua-based templates
The above documentation is transcluded from Template:Lua/doc. (edit | history)