Template:Lua: Difference between revisions
Jump to navigation
Jump to search
(Create Template:Lua) |
(Don’t add modules to Category:Lua-based templates) |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
| style="/* .mbox-image */ border: none; padding: 2px 0 2px 0.9em; text-align: center;" | [[File:Lua logo.svg|32px|link=]] | | style="/* .mbox-image */ border: none; padding: 2px 0 2px 0.9em; text-align: center;" | [[File:Lua logo.svg|32px|link=]] | ||
| style="/* .mbox-text */ border: none; padding: 0.25em 0.9em;" | {{#if:{{{1|<noinclude>1</noinclude>}}}| | | style="/* .mbox-text */ border: none; padding: 0.25em 0.9em;" | {{#if:{{{1|<noinclude>1</noinclude>}}}| | ||
This template uses [[wikipedia:Lua (programming language)|Lua]]: | This {{<!-- | ||
* <includeonly>[[{{{1}}}]]</includeonly><noinclude>Module:Example</noinclude>{{#if:{{{2|}}} | -->#switch: {{SUBJECTSPACE}}<!-- | ||
-->| Template = template uses [[wikipedia:Lua (programming language)|Lua]]<!-- | |||
-->| Module = module depends on<!-- | |||
-->| User = user template uses [[wikipedia:Lua (programming language)|Lua]]<!-- | |||
-->| #default = template uses [[wikipedia:Lua (programming language)|Lua]]<!-- | |||
-->}}: | |||
* <includeonly>[[{{{1}}}]]</includeonly><noinclude><var>Module:Example</var></noinclude>{{#if:{{{2|}}} | |||
| * [[{{{2}}}]]{{#if:{{{3|}}} | | * [[{{{2}}}]]{{#if:{{{3|}}} | ||
| * [[{{{3}}}]]{{#if:{{{4|}}} | | * [[{{{3}}}]]{{#if:{{{4|}}} | ||
Line 16: | Line 22: | ||
| <strong class="error">Error: no modules specified</strong> | | <strong class="error">Error: no modules specified</strong> | ||
}} | }} | ||
|}<includeonly>{{#ifeq:{{WsBool|{{{nocat|}}}}}|1||{{#ifeq:{{SUBPAGENAME}}|doc||[[Category:Lua-based templates]]}}}}</includeonly></onlyinclude> | |}<includeonly>{{#ifeq:{{WsBool|{{{nocat|}}}}}|1||{{#ifeq:{{SUBJECTSPACE}}|Module||{{#ifeq:{{SUBPAGENAME}}|doc||[[Category:Lua-based templates]]}}}}}}</includeonly></onlyinclude> | ||
{{Doc}} | {{Doc}} |
Latest revision as of 19:33, 11 April 2021
File:Lua logo.svg | This template uses Lua:
|
Used to mark a template as using Lua.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | no description | Page name | required |
2 | 2 | no description | Page name | optional |
3 | 3 | no description | Page name | optional |
4 | 4 | no description | Page name | optional |
5 | 5 | no description | Page name | optional |
6 | 6 | no description | Page name | optional |
7 | 7 | no description | Page name | optional |
8 | 8 | no description | Page name | optional |
9 | 9 | no description | Page name | optional |
10 | 10 | no description | Page name | optional |
nocat | nocat | Don't add to Category:Lua-based templates
| Boolean | optional |