Template:Mlx/doc

From Wikidot - Australian Business Wiki
< Template:Mlx
Revision as of 04:45, 27 March 2021 by Wikiweb (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Lua error: Internal error: The interpreter exited with status 127. Lua error: Internal error: The interpreter exited with status 127.

Template:Mlx (edit | talk | history | links | watch | logs) 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
{{mlx|Example}} {{#invoke:Lua error: Internal error: The interpreter exited with status 127.}} Usage without function name. This does not produce a usable invocation.
{{mlx|Example|hello}} {{#invoke:Lua error: Internal error: The interpreter exited with status 127.}} Usage with a function name.
{{mlx|Example|count_fruits|4=bananas=5|5=apples=10}} {{#invoke:Lua error: Internal error: The interpreter exited with status 127.}} Usage with a function name and parameters.
{{mlx|Example|count_fruits|bananas{{=}}5|apples{{=}}10}} {{#invoke:Lua error: Internal error: The interpreter exited with status 127.}} Usage with a function name and parameters, using {{=}}.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Mlx

Lua error: Internal error: The interpreter exited with status 127.

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

See also

  • {{ml}} - Similar function but not surrounded in <code>...</code> tags.
  • {{tlx}} - A version of this template for templates instead of modules.

General-purpose formatting

Comparison of template-linking templates according to the styles of generated text and link produced
Text style ↓ Lua error: Internal error: The interpreter exited with status 127. options[note 1]
to achieve text style
Link style
Linked Unlinked Linked with subst Linked including braces Linked with alternative text
Lua error: Internal error: The interpreter exited with status 127. options[note 1]
to achieve link style
N/A DEFAULT nolink=yes subst=yes braceinside=yes alttext=Foo
2=Foo
normal DEFAULT Lua error: Internal error: The interpreter exited with status 127.[note 1]
{{tl}}
Lua error: Internal error: The interpreter exited with status 127.[note 2]
{{Template:tlu}}[note 3]
Lua error: Internal error: The interpreter exited with status 127.[note 2]
<template link>
Lua error: Internal error: The interpreter exited with status 127.
{{subst:Template:tlsu}}[note 3]
Lua error: Internal error: The interpreter exited with status 127. Lua error: Internal error: The interpreter exited with status 127.
code code=yes {{tl2}}
Lua error: Internal error: The interpreter exited with status 127.
{{Template:tlxu}}3[note 3]
Lua error: Internal error: The interpreter exited with status 127.[note 2]
<template link>
Lua error: Internal error: The interpreter exited with status 127.<template link>
Lua error: Internal error: The interpreter exited with status 127. N/A
monospace plaincode=yes[note 4] N/A {{subst:tltss}}[note 5]
kbd kbd=yes[note 5]
bold bold=yes Lua error: Internal error: The interpreter exited with status 127. N/A
bold+code bold=yes|code=yes Lua error: Internal error: The interpreter exited with status 127.
italic+code italic=yes|code=yes Lua error: Internal error: The interpreter exited with status 127.
  1. 1.0 1.1 1.2 Lua error: Internal error: The interpreter exited with status 127. is the most general template, allowing any combination of text style and/or link style options.
  2. 2.0 2.1 2.2 Prevents wrapping of text by placing it inside <span class="nowrap">...</span> tags.
  3. 3.0 3.1 3.2 Allows links to templates in any namespace.
  4. Lua error: Internal error: The interpreter exited with status 127. uses <code style="border:none; background-color:transparent;">...</code>.
  5. 5.0 5.1 Displays monospaced font using <span style="font-family:monospace;">...</span>.

Lua error: Internal error: The interpreter exited with status 127.

Other formatting templates

Templates producing specialised formatting effects for given templates, modules or parameters
Code example Effect Notes
Lua error: Internal error: The interpreter exited with status 127. {{hatnote}} Supports linking to sister projects (e.g., fr:Hatnote)
Lua error: Internal error: The interpreter exited with status 127. {{User:Ahunt/SSHFS}} Supports linking to any namespace
Lua error: Internal error: The interpreter exited with status 127. Lua error: Internal error: The interpreter exited with status 127. Shows code and example
Lua error: Internal error: The interpreter exited with status 127. "{{hatnote|Some hatnote text}}" gives "Script error: No such module "Hatnote"." [1] Shows code, example and a link to expand the template code
Lua error: Internal error: The interpreter exited with status 127. Template:Hatnote Produces a normal link to the template
Lua error: Internal error: The interpreter exited with status 127.
Lua error: Internal error: The interpreter exited with status 127.
[[Template:Hatnote]]
[[Template:Hatnote|Hatnote]]
Formats wikilink, with optional piped link text and blended suffix
Lua error: Internal error: The interpreter exited with status 127. {{#invoke:Lua error: Internal error: The interpreter exited with status 127.}} Counterpart to {{tl}} for linking to Lua modules
Lua error: Internal error: The interpreter exited with status 127. {{#invoke:Lua error: Internal error: The interpreter exited with status 127.}} Counterpart to {{tlx}} for linking to Lua modules
Lua error: Internal error: The interpreter exited with status 127. |title=book title Formats template parameters for display, with or without values
Lua error: Internal error: The interpreter exited with status 127. [[[[Expression error: Unexpected < operator.LASTING]]]] Takes a shortcut suffix in project namespace and displays it with brackets and the WP: alias in a <code>...</code> tag.
Lua error: Internal error: The interpreter exited with status 127.
Lua error: Internal error: The interpreter exited with status 127.
<ref>...</ref>
<templatedata>
Formats [X]HTML tags; can add content, choose opening, closing, or self-closing
Lua error: Internal error: The interpreter exited with status 127. {{d:Ping project}} Wikidata counterpart to {{tl}}
Lua error: Internal error: The interpreter exited with status 127.
Lua error: Internal error: The interpreter exited with status 127.
{{#if}}
{{#if:{{{1}}}|true|false}}
Parser function equivalent to {{tl}}

With utility links

Templates producing utility links for a given template (Hatnote used here as example)
Code example Effect
Lua error: Internal error: The interpreter exited with status 127. Template:Hatnote (edit | talk | history | links | watch | logs)
Lua error: Internal error: The interpreter exited with status 127. Template:Hatnote(edit talk links history)
Lua error: Internal error: The interpreter exited with status 127. Template:T links/sandbox links
Lua error: Internal error: The interpreter exited with status 127. Script error: No such module "Tfd links".
Lua error: Internal error: The interpreter exited with status 127. {{Hatnote}}
links talk edit
Lua error: Internal error: The interpreter exited with status 127. {{subst:Hatnote}}
 links talk edit
Lua error: Internal error: The interpreter exited with status 127. Template:Hatnote (talk⧼dot-separator⧽links⧼dot-separator⧽edit)
Lua error: Internal error: The interpreter exited with status 127. Template:Hatnote (talk links edit)
Lua error: Internal error: The interpreter exited with status 127. m:Template:Hatnote (backlinks edit)
Lua error: Internal error: The interpreter exited with status 127. Template:Hatnote (backlinks edit)
Lua error: Internal error: The interpreter exited with status 127. {{Hatnote}} (talk)
Lua error: Internal error: The interpreter exited with status 127. {{Hatnote}} (t/l)
Lua error: Internal error: The interpreter exited with status 127. Template:Hatnote (links, talk)