Template:Lua: Difference between revisions
Jump to navigation
Jump to search
m>Vanisaac adding note about lua modules not being substitutable, and providing for a substitutable alternate template (default "<templatename> subst"). |
m>Vanisaac better phrasing |
||
Line 2: | Line 2: | ||
| type = style | | type = style | ||
| image = [[File:Gnome-utilities-terminal.svg|42px]] | | image = [[File:Gnome-utilities-terminal.svg|42px]] | ||
| text = This template uses {{#if: {{{1|}}} | '''[[{{{1}}}]]''', a script written in }} the [[Lua (programming language)|Lua programming language]]. As a Lua module, {{#ifexist:template:{{{substalt|{{BASEPAGENAME}} subst}}}|the template {{tlx|{{BASEPAGENAME}} subst}} | | text = This template uses {{#if: {{{1|}}} | '''[[{{{1}}}]]''', a script written in }} the [[Lua (programming language)|Lua programming language]]. As a Lua module, it cannot be [[WP:Substitution|substituted]]{{#ifexist:template:{{{substalt|{{BASEPAGENAME}} subst}}}|, but the template {{tlx|{{BASEPAGENAME}} subst}} can be used for substituting|}}. Please see [[Wikipedia:Lua]] if you want to learn more about Lua or help convert other templates. {{{2|}}} | ||
}}<includeonly>{{#ifeq: {{{nocat|}}} | true | }}<includeonly>{{#ifeq: {{{nocat|}}} | true | ||
| | | |
Revision as of 06:53, 11 November 2013
This template uses the Lua programming language. As a Lua module, it cannot be substituted. Please see Wikipedia:Lua if you want to learn more about Lua or help convert other templates. |
This template is used to show that templates have been converted to Lua. It is placed at the top of the template's /doc page. It automatically adds the template to Category:Lua-based templates, or to one of its subcategories.
Usage
- Basic
{{Lua|module name}}
- All parameters
{{Lua|module 1|module 2|module 3|...|category=custom category|nocat=true}}
The first module name is required.
See also
{{#lst:Template:Template list|utility-templates}}