Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Lua/doc: Difference between revisions

Template page
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
  |1        =<!-- Name of the first parameter the template takes -->
| useTemplateData = 1
  |1label  =Module
  |1d-en    =Name of the module used in the template. Use multiple parameters to specify multiple modules.
  |1d-td    =<!-- description of the first parameter the template takes without any wiki marking-->
  |1aliases =<!-- List of aliases, separated by / (a slash) -->
  |1type    =wiki-page-name
  |1def    =<!-- default value for the parameter -->
  |1stat    =required


   |name              =Lua
   |name              =Lua
Line 20: Line 13:
   |usage-notes        =
   |usage-notes        =
   |shorthand          =
   |shorthand          =
  |setscats           =
| 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]])
   |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>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.