Template:Lua: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly>{{MessageBox |class = lua |header=This template uses {{#if: {{{demo|}}} |Module:Demo| [[Module:{{{1|{{{module|{{BASEPAGENAME}}}}}}}}]] }}, a script written in Lua. |image=Lua logo.svg |imagewidth=32px }}{{Namespace |template={{#if: {{{demo|}}} || {{#ifeq: {{BASEPAGENAME}} | {{PAGENAME}} | Category:Lua Templates }}}} }}</includeonly><noinclude>{{Documentation|type=Notice}}</noinclude>" |
(No difference)
|
Latest revision as of 09:16, 10 June 2025
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:Demo, a script written in Lua.
It also adds the category Category:Lua Templates to track the Template it was put on.
Usage
Put the following at the top of the documentation page:
{{Lua}}
Optionally, you can include the module's name.
{{Lua|ModuleName}}
{{Lua|module=ModuleName}}
Template Data
Marks a Template that uses Lua
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| demo | demo | Demo template (to be used on it's own template doc to not trigger links or categories) | Content | optional |
| Module's Name | module 1 | Optionally identify the module name (without the prefix "Module:")
| Content | optional |