Jump to content

Template:Lua

From Islamical Commons
Revision as of 16:55, 4 November 2026 by Mojtabakd (talk | contribs) (creating a template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:Lua/doc.

<translate> </translate>

Banner for templates that rely on Lua modules

<translate> The template automatically sets the following categories:</translate>

Module categories: one of these categories is added if the first listed module is the listed module

<translate> Usage</translate>

{{Lua |1= }}

Template parameters

Lua error in Module:Autotranslate at line 124: No fallback page found for autotranslate (base=Template:TemplateDataInfo/i18n, lang=en).

Banner for templates that rely on Lua modules

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Module 11

Name of the main module used in the template. Use multiple parameters to specify multiple modules.

Page namesuggested
Module 1010

Name of the tenth module.

Page nameoptional
Module 22

Name of the second module.

Page nameoptional
Module 33

Name of the third module.

Page nameoptional
Module 44

Name of the fourth module.

Page nameoptional
Module 55

Name of the fifth module.

Page nameoptional
Module 66

Name of the sixth module.

Page nameoptional
Module 77

Name of the seventh module.

Page nameoptional
Module 88

Name of the eighth module.

Page nameoptional
Module 99

Name of the ninth module.

Page nameoptional
Custom Categorycategory

Default
Lua-based templates
Stringoptional
No Category?nocat

Whether to disable categorization.

Default
0
Auto value
1
Booleanoptional

<translate> Additional information</translate>

<translate> The template is intended to be used in the following namespaces:</translate> <translate> the Template namespace</translate>

<translate> The template is intended to be used by the following user groups:</translate> <translate> all users</translate>

<translate> Placement:</translate> <translate> </translate>

In the Template:Para parameter of {{TemplateBox}}.

<translate> Examples</translate>

{{Lua|Module:Bananas}}

<translate> renders as:</translate>


{{Lua|wish=true}}

<translate> renders as:</translate>

<translate> ⧼Seealso⧽</translate>

<translate> </translate>

<translate> Localization</translate>

<translate> This template is localized using <tvar name=1>Module:TNT</tvar>.</translate> <translate> These translations are stored in Data:I18n/Lua banner.tab.</translate> Template:Sandbox other