Template:Mlx

From Incremental Factory Wiki
Jump to navigation Jump to search
Template-info.svg Documentation Edit this documentation at Template:Mlx/doc.

Template:TshScript error: No such module "Lua banner".

Template:Lt (often abbreviated {{mlx}}) is used to display a module name as a link surrounded by braces with the Template:((#invokeTemplate:)) parser function, thus showing the module name as code rather than actually invoking it. Its primary use is in instruction and documentation where it is used to refer to a module by name without invoking it. It is also supports the definition of a function and parameters.

Examples

Code Result Notes
Template:Tji {{Script error: No such module "Separated entries".}} Usage without function name. This does not produce a usable invocation.
Template:Tji {{Script error: No such module "Separated entries".}} Usage with a function name.
Template:Tji {{Script error: No such module "Separated entries".}} Usage with a function name and parameters.
Template:Tji {{Script error: No such module "Separated entries".}} Usage with a function name and parameters, using Template:((=Template:)).

TemplateData

Template:TemplateData header

This template displays a module name as a link surrounded by braces with the {{#invoke}} parser function, thus showing how the module name would be used in code. Its primary use is in instruction and documentation.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
module name1

the module name without the namespace prefix “Module:”, which is added automatically

Stringrequired
function name2

the function name within the module to call

Stringrequired
parameter 13

the name (and value) of the first parameter, use {{=}} to add an equal sign

Stringoptional
parameter 24

the name (and value) of the second parameter, use {{=}} to add an equal sign

Stringoptional
parameter 35

the name (and value) of the third parameter, use {{=}} to add an equal sign

Stringoptional

See also

  • {{ml}} – similar function but not surrounded in Template:Tag tags
  • {{mfl}} – similar to {{ml}} but creates a link to the function's documentation
  • {{tlx}} – a version of this template for templates instead of modules

Template:Template-linking templates