Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Lua: Difference between revisions

Template page
minecraft>ExE Boss
Use <onlyinclude>
 
m 1 revision imported
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude><includeonly>{{#invoke:Lua banner|main}}</includeonly></onlyinclude>
{{msgbox
{{Lua|Module:Lua banner}}
| image = Lua logo.svg
{{Documentation}}
| text  = This {{#ifeq:{{NAMESPACENUMBER}}|828|module depends on|template uses}} '''<includeonly>[[</includeonly>Module:{{ucfirst: {{PAGENAME:{{{1|{{#ifeq:{{SUBPAGENAME}}|doc|{{BASEPAGENAME}}|{{PAGENAME}}}}}}}}} }}<includeonly>]]</includeonly>''', {{ #if: {{{data|}}} | with data stored in [[Module:{{ ucfirst: {{PAGENAME:{{{data}}}}} }}]]{{ #if: {{{data2|}}} | &#32;and [[Module:{{ ucfirst: {{PAGENAME:{{{data2}}}}} }}]] }} | a script written in [[wp:Lua|Lua]] }}.<br>{{ #if: {{{data|}}} | These scripts are written in [[wp:Lua|Lua]]. }}
<!-- Categories go on the /doc subpage and interwikis go on Wikidata. -->
}}<includeonly>{{
#if: {{{nocat|}}}
|
| {{#switch: {{SUBPAGENAME}}
  | doc | sandbox | testcases =
  | {{#switch: {{NAMESPACENUMBER}}
    | 0 | 10 = [[Category:Lua-based templates]]
    }}
  }}
}}</includeonly><noinclude>
{{documentation}}
<!-- Put categories/interwikis on the documentation page -->
</noinclude>

Latest revision as of 13:38, 11 October 2024

This template uses Module:Lua, a script written in Lua.
[view] [edit] [history] [purge]Documentation

Use on the doc page of templates which use Lua modules.

{{{1}}} is the module name without namespace, defaulting to {{BASEPAGENAME}}. If the template uses data stored in a separate module(s) or module subpage(s), this can be noted with {{{data}}} and {{{data2}}}.

Automatically adds the template page to Category:Lua-based templates. Set {{{nocat}}} to prevent this.

es:Plantilla:Lua ja:テンプレート:Lua ko:틀:루아 nl:Sjabloon:Lua pl:Szablon:Lua pt:Predefinição:Lua ru:Шаблон:Lua zh:Template:Lua

[view] [edit] [history] [purge]The above documentation is transcluded from Template:Lua/doc.