Template:Lua: Difference between revisions

m (1 revision)
 
No edit summary
 
Line 1: Line 1:
{{msgbox
{{msgbox
| image = Lua logo.svg
| icon = code
| text  = This template uses '''<includeonly>[[</includeonly>Module:{{{1|{{BASEPAGENAME}}}}}<includeonly>]]</includeonly>''', a script written in the [[wikipedia:Lua (programming language)|Lua programming language]]. Please see [[wp:Lua]] and [[mw:Extension:Scribunto]] to learn more about Lua.
| text  = 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 [[wp:Lua]] and [[mw:Extension:Scribunto]] to learn more.
| <includeonly>nocat = 1</includeonly>
}}<includeonly>{{
}}<includeonly>{{
#if: {{{nocat|}}}
#if: {{{nocat|}}}
Line 10: Line 11:
   }}
   }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{/doc}}
{{documentation}}
<!-- Put categories/interwiki on the documentation page -->

Latest revision as of 17:35, 1 August 2015

This template uses Module:Lua, a script written in Lua.
Please see wp:Lua and mw:Extension:Scribunto to learn more.
[view | edit | history | purge]Documentation

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}}}.

Automatically adds the template page to Category:Lua-based templates. Set {{{nocat}}} to prevent this.

[view | edit | history | purge]The above documentation is transcluded from Template:Lua/doc.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Need wiki hosting?

Do you need a wiki for your Minecraft mod/gaming wiki? We'll host it for free! Contact us.

Other wikis

Indie-game wikis
Powered by Indie Wikis