{{mlx}} використовує, що відображати назву модуля як посилання, що огорнуте фігурними дужками з {{#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.

Приклади ред.

Код Результат Коментарі
{{mlx|Example}} {{#invoke:Example|function}} Usage without function name. This does not produce a usable invocation.
{{mlx|Example|hello}} {{#invoke:Example|hello}} Usage with a function name.
{{mlx|Example|count_fruits|4=bananas=5|5=apples=10}} {{#invoke:Example|count_fruits|bananas=5|apples=10}} Usage with a function name and parameters.
{{mlx|Example|count_fruits|bananas{{=}}5|apples{{=}}10}} {{#invoke:Example|count_fruits|bananas=5|apples=10}} Usage with a function name and parameters, using {{=}}.

TemplateData ред.

Це документація TemplateData для шаблону 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.

Параметри шаблону

ПараметрОписТипСтатус
module name1

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

Рядокобов'язковий
function name2

the function name within the module to call

Рядокобов'язковий
parameter 13

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

Рядокнеобов'язковий
parameter 24

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

Рядокнеобов'язковий
parameter 35

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

Рядокнеобов'язковий

Див. також ред.

  • {{ml}} – similar function but not surrounded in <code>...</code> 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

Форматування загального призначення ред.

  • 1 {{tlg}} найширший, дозволяє будь-яку комбінацію властивостей стилю тексту та/або посилання.
  • 2 Запобігає розриву тексту через розміщення його всередині теґів <span class="nowrap">...</span>.
  • 3 Використовує моноширинний шрифт, але не <code>...</code>.
  • 4 Дозволяє посилання на шаблони у будь-якому просторі назв.

Інші шаблони форматування ред.

Приклад коду Ефект Зауваження
{{tl2|Hatnote|lang=fr}} {{hatnote}} Підтримує посилання на сестринські проєкти (напр., fr:Hatnote)
{{tlu|User:Ahunt/SSHFS}} {{User:Ahunt/SSHFS}} Підтримує посилання на будь-який простір назв
{{xpd|Hatnote|Some hatnote text}} «{{hatnote|Some hatnote text }}» дає «» [1] || Показує код, приклад та посилання для розширення коду шаблону
{{para|title|<var>book title</var>}} |title=book title Форматує параметри шаблону для відображення із або без значень

Із допоміжними посиланнями ред.

Приклад коду Ефект
{{lts|Hatnote}} Шаблон:Hatnote(редагувати обговорення посилання історія)
{{t links|Hatnote}} Шаблон:T links
{{tiw|Hatnote}} Template:hatnote (backlinks, edit)
{{tltt|Hatnote}} {{Hatnote}}
{{tetl|Hatnote}} Шаблон:Tetl
{{tsetl|Hatnote}} Шаблон:Tsetl
{{ti|Hatnote}} {{Hatnote}} (обг. · викор. · ред.)
{{tic|Hatnote}} Шаблон:Tic
{{tiw|Hatnote}} Template:Hatnote (backlinks, edit)
{{tlt|Hatnote}} Шаблон:Tlt
{{ttl|Hatnote}} Шаблон:Ttl
{{twlh|Hatnote}} Template:Hatnote (links, talk)

Див. також ред.