Jump to content

Template:Lua: Difference between revisions

From The Petit Planet Wiki
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}]] <!--
  -->([²{fullurl:Module:{item}¦action=edit}² edit] &vert; <!--
  -->[²{fullurl:Module:{item}¦action=history}² hist])<!--
-->}}<!--
-->}}<!--
-->, {{#if:{{#pos:{{{1|{{{module|}}}}}}|;}}|scripts|a script}} written in [https://www.lua.org/home.html 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
|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.

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

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Module's Name1 module

Optionally identify the module name (without the prefix "Module:"), or a semicolon list of modules' names

Example
ModuleName
Contentoptional