Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
This page uses Creative Commons Licensed content from Wikipedia (view authors).
(often abbreviated {{mlx}}) is used to display a module name as a link surrounded by braces with the #invoke 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
{{#invoke:Example|function}} Usage without function name. This does not produce a usable invocation.
{{#invoke:Example|hello}} Usage with a function name.
{{#invoke:Example|count_fruits|bananas=5|apples=10}} Usage with a function name and parameters.
{{#invoke:Example|count_fruits|bananas=5|apples=10}} Usage with a function name and parameters, using =.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Mlx in articles based on its TemplateData.

TemplateData for Mlx

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

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