Difference between revisions of "Template:Lua"

From Industrial-Craft-Wiki
Jump to navigation Jump to search
(Created the Lua template.)
 
m (Fixed documentation)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#invoke:Lua banner|main}}</includeonly><noinclude>
{| cellspacing="2px" style="margin:auto"
{{Lua|Module:Lua banner}}
| [[File:Lua logo.png|32px|link=]]
{{documentation}}
| 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>{{ #if: {{{data|}}} | These scripts are written in [[wikipedia:Lua (programming language)|Lua]]. }} Please see [[wikipedia:wp:Lua]] and [[mw:Extension:Scribunto]] to learn more.
<!-- Categories go on the /doc subpage and interwikis go on Wikidata. -->
|}<includeonly>{{
#if: {{{nocat|}}}
|
| {{#ifeq: {{SUBPAGENAME}} | doc
  |
  | [[Category:Lua-based templates]]
  }}
}}</includeonly><noinclude>
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 17:55, 8 March 2015

Lua logo.png This template uses Module:Lua, a script written in Lua.
Please see wikipedia:wp:Lua and mw:Extension:Scribunto to learn more.
Template-info.png Documentation

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)