Template:Lua: Difference between revisions
Appearance
Removed edit, history, and Lua links and Inverted icon for dark mode |
Added opacity filter |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
|header = This template uses <!-- | |header = This template uses <!-- | ||
-->{{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 Lua. | -->, {{#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 | |imageadjust = class=skin-invert-image filter-opacity-60 | ||
|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> | ||
Latest revision as of 07:51, 6 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
[edit source]{{Lua|module name(s)}}
- 1 or module — module name to link to, semicolon list for multiple modules. Defaults to {{BASEPAGENAME}}.
Template Data
[edit source]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 |