Template:Lua: Difference between revisions
Appearance
ReisuDesign (talk | contribs) Created page with "<includeonly>{{MessageBox |class = lua |header = This template uses <!-- -->{{Array|template=1|sentence=1|{{{1|{{{module|{{#titleparts:{{PAGENAME}}|{{#if:{{#pos:{{PAGENAME}}|/}}|{{#ifeq:{{SUBPAGENAME}}|Draft|0|-1}}|0}}}}}}}}}}|;|3=<!-- -->[[Module:{item}]] <!-- -->([²{fullurl:Module:{item}¦action=edit}² edit] | <!-- -->[²{fullurl:Module:{item}¦action=history}² hist])<!-- -->}}<!-- -->, {{#if:{{#pos:{{{1|{{{module|}}}}}}|;}}|scripts|a script}}..." |
ReisuDesign (talk | contribs) No edit summary |
||
| Line 8: | Line 8: | ||
-->}}<!-- | -->}}<!-- | ||
-->, {{#if:{{#pos:{{{1|{{{module|}}}}}}|;}}|scripts|a script}} written in [[w:Help:Lua|Lua]]. | -->, {{#if:{{#pos:{{{1|{{{module|}}}}}}|;}}|scripts|a script}} written in [[w:Help:Lua|Lua]]. | ||
|image = Lua | |image = Lua Logo.svg | ||
|imagewidth = 32px | |imagewidth = 32px | ||
|id = lua | |id = lua | ||
}}{{Namespace|template={{#switch:{{SUBPAGENAME}}|Draft|doc=|#default=[[Category:Lua Templates]]}}}}</includeonly><noinclude>{{Documentation|type=Notice}}</noinclude> | }}{{Namespace|template={{#switch:{{SUBPAGENAME}}|Draft|doc=|#default=[[Category:Lua Templates]]}}}}</includeonly><noinclude>{{Documentation|type=Notice}}</noinclude> | ||
Revision as of 07:36, 10 November 2025
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
This is a banner template that uses {{MessageBox}} to create the displayed banner:
It also adds the category Category:Lua Templates to track the Template it was put on.
Syntax
{{Lua|module name(s)}}
- 1 or module — module name to link to, semicolon list for multiple modules. Defaults to {{BASEPAGENAME}}.
Template Data
Marks a Template that uses Lua
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Module's Name | 1 module | Optionally identify the module name (without the prefix "Module:"), or a semicolon list of modules' names
| Content | optional |