සැකිල්ල:Mlx/ලේඛය

විකිපීඩියා වෙතින්

සැකිල්ල: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
{{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[සංස්කරණය]

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this 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[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 <code>...</code> tags.
  • {{tlx}} - A version of this template for templates instead of modules.

General-purpose formatting[සංස්කරණය]

Other formatting templates[සංස්කරණය]

Code example Effect Notes
{{tl2|Hatnote|lang=fr}} {{hatnote}} Supports linking to sister projects (e.g., fr:Hatnote)
{{tlu|User:Ahunt/SSHFS}} {{User:Ahunt/SSHFS}} Supports linking to any namespace
{{demo|<nowiki>{{Hatnote|lang=fr|Some text}}</nowiki>}}
{{hatnote|lang=fr|Some text}}

Shows code and example
{{xpd|Hatnote|Some hatnote text}} "{{hatnote|Some hatnote text}}" gives "" [1] Shows code, example and a link to expand the template code
{{para|title|<var>book title</var>}} |title=book title Formats template parameters for display, with or without values
{{elc|Template:Hatnote}}
{{elc|Template:Hatnote|Hatnote}}
[[Template:Hatnote]]
[[Template:Hatnote|Hatnote]]
Formats wikilink, with optional piped link text and blended suffix

With utility links[සංස්කරණය]

Code example Effect
{{lts|Hatnote}} Template:Hatnote (edit discuss links history)
{{t links|Hatnote}} {{Hatnote}} (edit talk history links # /subpages /doc /doc edit /sbox /sbox diff /test)
{{tfd links|Hatnote}} සැකිල්ල:Tfd links
{{tiw|Hatnote}} සැකිල්ල:hatnote (සාකච්ඡාව, backlinks, සාකච්ඡාව)
{{tltt|Hatnote}} {{Hatnote}}
{{tetl|Hatnote}} {{ Hatnote }}
links talk view
{{tsetl|Hatnote}} සැකිල්ල:Tsetl
{{ti|Hatnote}} Template:Hatnote (talk, links, edit)
{{tic|Hatnote}} Template:Hatnote (talk, links, edit)
{{tiw|Hatnote}} සැකිල්ල:Hatnote (සාකච්ඡාව, backlinks, සාකච්ඡාව)
{{tlt|Hatnote}} {{Hatnote}} (doc/talk)
{{ttl|Hatnote}} {{Hatnote}} (t/l)
{{twlh|Hatnote}} Template:Hatnote (links, talk)


"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:Mlx/ලේඛය&oldid=460311" වෙතින් සම්ප්‍රවේශනය කෙරිණි