Template:Lua/doc

This template is used to show that templates have been converted to Lua. It is placed at the top of the template's /doc page. It automatically adds the template to Category:, or to one of its subcategories.

Usage

 * Basic :


 * All parameters :

The first module name is required.

Examples










Template category
This template adds pages to Category:Lua-based templates if the page is in the template namespace, and it is not on any of the subpages /doc, /sandbox, /sandbox2 or /testcases. You can specify a different category with the category parameter, e.g. Lua String-based templates.

Some modules have a default category other than Category::
 * Module:String has the default category Category:.

Error category
If no modules are specified and wishes are not enabled by default, the transcluded page will be added to Category:. {{#if:{{#invoke:Data|Module:Lua banner/config|wish_category}}|

Wish category
If no modules are specified true is used, the page will be added to Category: }}

Category suppression
To suppress all categorisation, use true. (As well as "true", the values "yes", "y", and "1" will also work.)

TemplateData
{	"description": "Banner for templates that rely on Lua modules", "format": "inline", "params": { "1": {			"label": "Module 1", "description": "Name of the main module used in the template. Use multiple parameters to specify multiple modules.", "required": true, "type": "wiki-page-name" },		"2": {			"label": "Module 2", "description": "Name of the second module.", "type": "wiki-page-name" },		"3": {			"label": "Module 3", "description": "Name of the third module.", "type": "wiki-page-name" },		"4": {			"label": "Module 4", "description": "Name of the fourth module.", "type": "wiki-page-name" },		"5": {			"label": "Module 5", "description": "Name of the fifth module.", "type": "wiki-page-name" },		"6": {			"label": "Module 6", "description": "Name of the sixth module.", "type": "wiki-page-name" },		"7": {			"label": "Module 7", "description": "Name of the seventh module.", "type": "wiki-page-name" },		"8": {			"label": "Module 8", "description": "Name of the eighth module.", "type": "wiki-page-name" },		"9": {			"label": "Module 9", "description": "Name of the ninth module.", "type": "wiki-page-name" },		"10": {			"label": "Module 10", "description": "Name of the tenth module.", "type": "wiki-page-name" },		"nocat": { "label": "No Category?", "description": "Whether to disable categorization.", "default": "0", "autovalue": "1", "type": "boolean" },		"wish": { "label": "Wish?", "description": "Whether this template is a candidate for conversion to Lua.", "default": "0", "autovalue": "1", "type": "boolean" },		"category": { "label": "Custom Category", "description": "Main category to put on pages using this template, without namespace prefix.", "default": "Lua-based templates", "type": "string" }	} }