Changes

Jump to navigation Jump to search
Update the `placement` parameter of {{TemplateBox/sandbox}}; →‎Examples: Add examples
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{TemplateBox/sandbox
| name = Lua
| mbox =
{{Lua|Module:Lua banner}}
{{Uses TNT|Lua banner}}

| desc-en = Banner for templates that rely on Lua modules

| namespace = Template
| usergroup = all
| placement = In the {{para|mbox}} parameter of {{tld|TemplateBox}}.

| setscats =
* {{cl|{{#invoke:Data|Module:Lua banner/config|error_category}}}}, added if the module call contains errors{{#if:{{yesno|{{#invoke:Data|Module:Lua banner/config|allow_wishes}}}}|.
* {{cl|{{#invoke:Data|Module:Lua banner/config|wish_category}}}}, added if no module is listed.
|&#32;(e.g. no module listed).
}}
* {{cl|{{#invoke:Data|Module:Lua banner/config|default_category}}}}, added if none of the below module_categories matches the first module listed.

Module categories: one of these categories is added if the first listed module is the listed module
* {{cl|{{#invoke:Data|Module:Lua banner/config|module_categories|String}}}} ([[Module:String]])
* {{cl|{{#invoke:Data|Module:Lua banner/config|module_categories|Iteration}}}} ([[Module:Iteration]])

| example = Module:Bananas
| example-value = {{Lua|Module:Bananas|nocat=true}}

| example3 = wish=true
| example3-value = {{Lua|wish=true|nocat=true}}

| seealso =
* {{tld|Uses TemplateStyles}}
* {{tld|Uses TNT}}

| i18n-method = TNT
| i18n-data-file = Lua banner

| print = line
| useTemplateData = only

| 1 = 1
| 1label = Module 1
| 1d-en = Name of the main module used in the template. Use multiple parameters to specify multiple modules.
| 1stat = suggested
| 1type = wiki-page-name

| 2 = 2
| 2label = Module 2
| 2d-en = Name of the second module.
| 2stat = optional-
| 2type = wiki-page-name

| 3 = 3
| 3label = Module 3
| 3d-en = Name of the third module.
| 3stat = optional-
| 3type = wiki-page-name

| 4 = 4
| 4label = Module 4
| 4d-en = Name of the fourth module.
| 4stat = optional-
| 4type = wiki-page-name

| 5 = 5
| 5label = Module 5
| 5d-en = Name of the fifth module.
| 5stat = optional-
| 5type = wiki-page-name

| 6 = 6
| 6label = Module 6
| 6d-en = Name of the sixth module.
| 6stat = optional-
| 6type = wiki-page-name

| 7 = 7
| 7label = Module 7
| 7d-en = Name of the seventh module.
| 7stat = optional-
| 7type = wiki-page-name

| 8 = 8
| 8label = Module 8
| 8d-en = Name of the eighth module.
| 8stat = optional-
| 8type = wiki-page-name

| 9 = 9
| 9label = Module 9
| 9d-en = Name of the ninth module.
| 9stat = optional-
| 9type = wiki-page-name

| 10 = 10
| 10label = Module 10
| 10d-en = Name of the tenth module.
| 10stat = optional-
| 10type = wiki-page-name

| 11 = nocat
| 11label = No Category?
| 11d-en = Whether to disable categorization.
| 11def = 0
| 11av = 1
| 11stat = optional-
| 11type = boolean

| 12 = category
| 12label = Custom Category
| 12def = {{#invoke:Data|Module:Lua banner/config|default_category}}
| 12stat = optional-
| 12type = string
}}
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Internal link templates]]
}}</includeonly>
Anonymous user

Navigation menu