Template:Lua: Difference between revisions
Appearance
given we're not on Fandom, the community link doesn't work. will send the link to Lua's homepage instead. |
Removed edit, history, and Lua links and Inverted icon for dark mode |
||
| Line 4: | Line 4: | ||
-->{{Array|template=1|sentence=1|{{{1|{{{module|{{#titleparts:{{PAGENAME}}|{{#if:{{#pos:{{PAGENAME}}|/}}|{{#ifeq:{{SUBPAGENAME}}|Draft|0|-1}}|0}}}}}}}}}}|;|3=<!-- | -->{{Array|template=1|sentence=1|{{{1|{{{module|{{#titleparts:{{PAGENAME}}|{{#if:{{#pos:{{PAGENAME}}|/}}|{{#ifeq:{{SUBPAGENAME}}|Draft|0|-1}}|0}}}}}}}}}}|;|3=<!-- | ||
-->[[Module:{item}]] <!-- | -->[[Module:{item}]] <!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->, {{#if:{{#pos:{{{1|{{{module|}}}}}}|;}}|scripts|a script}} written in | -->, {{#if:{{#pos:{{{1|{{{module|}}}}}}|;}}|scripts|a script}} written in Lua. | ||
|image = Lua Logo.svg | |image = Lua Logo.svg | ||
|imagewidth = 32px | |imagewidth = 32px | ||
|imageadjust = class=skin-invert-image | |||
|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 08:26, 4 May 2026
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:
This template uses Module:Mbox, a script written in Lua.
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 |