Jump to content

Template:Lua: Difference between revisions

From The Petit Planet Wiki
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}}..."
 
Eleiyas (talk | contribs)
given we're not on Fandom, the community link doesn't work. will send the link to Lua's homepage instead.
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
   -->[²{fullurl:Module:{item}¦action=history}² hist])<!--
   -->[²{fullurl:Module:{item}¦action=history}² hist])<!--
-->}}<!--
-->}}<!--
-->, {{#if:{{#pos:{{{1|{{{module|}}}}}}|;}}|scripts|a script}} written in [[w:Help:Lua|Lua]].
-->, {{#if:{{#pos:{{{1|{{{module|}}}}}}|;}}|scripts|a script}} written in [https://www.lua.org/home.html Lua].
|image      = Lua logo.svg
|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>

Latest revision as of 22:15, 14 November 2025

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 (edit | hist), 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

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