Template:Lua/doc: Difference between revisions

From Workers & Resources: Soviet Republic Official Wiki
workers-resources-fandom>Letter N
(Created page with "{{Lua|Module:Lua banner}} ; Description : This template is used to list Lua module dependencies on module documentation pages. ; Syntax : Type {{t|Lua|...|nocat{{=}}boolean|category{{=}}string}} ; Sample output : <code><nowiki>{{Lua|Module:String}}</nowiki></code> gives... {{Lua|Module:String|nocat=true}} == TemplateData == <templatedata> { "description": "Lists Lua module dependencies.", "format": "inline", "params": { "1": { "aliases": [ "2", "3",...")
 
workers-resources-fandom>Letter N
No edit summary
Line 1: Line 1:
{{Lua|Module:Lua banner}}
{{Lua|Lua banner}}


; Description
; Description
Line 7: Line 7:
; Sample output
; Sample output
: <code><nowiki>{{Lua|Module:String}}</nowiki></code> gives...
: <code><nowiki>{{Lua|Module:String}}</nowiki></code> gives...
{{Lua|Module:String|nocat=true}}
{{Lua|String|nocat=true}}


== TemplateData ==
== TemplateData ==

Revision as of 02:12, 11 January 2023

Lua error in package.lua at line 80: module 'Dev:Arguments' not found.

Description
This template is used to list Lua module dependencies on module documentation pages.
Syntax
Type {{Lua|<...>|<nocat=boolean>|<category=string>}}
Sample output
{{Lua|Module:String}} gives...

Lua error in package.lua at line 80: module 'Dev:Arguments' not found.

TemplateData

<templatedata> { "description": "Lists Lua module dependencies.", "format": "inline", "params": { "1": { "aliases": [ "2", "3", "4", "5", "6", "7", "8", "9", "..." ], "label": "Modules", "description": "Varargs list of Lua module dependencies", "type": "wiki-page-name", "required": true }, "nocat": { "label": "No categories", "description": "Don't add tracking categories", "type": "boolean", "default": "false" }, "category": { "label": "Category", "description": "Use the specified tracking category", "type": "string" } }, "paramOrder": [ "1", "nocat", "category" ] } </templatedata>