Template:Lua/doc: Difference between revisions
Template page
More actions
m "lua" used in template code |
Enable TemplateData from {{TemplateBox}} |
||
| Line 1: | Line 1: | ||
<!-- {{Lua|Module:Lua banner}} --> | <!-- {{Lua|Module:Lua banner}} --> | ||
{{TemplateBox | {{TemplateBox/sandbox | ||
| useTemplateData = 1 | |||
|name =Lua | |name =Lua | ||
| Line 20: | Line 13: | ||
|usage-notes = | |usage-notes = | ||
|shorthand = | |shorthand = | ||
| 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. | |||
| (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]]) | |||
|seealso = | |seealso = | ||
|type = | |type = | ||
| Line 29: | Line 31: | ||
|example = | |example = | ||
|print = | |print = | ||
| useTemplateData = 1 | |||
| 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>[[Category:Internal link templates]]</includeonly> | <includeonly>[[Category:Internal link templates]]</includeonly> | ||