සැකිල්ල:Mli

විකිපීඩියා වෙතින්
Jump to navigation Jump to search

{{#invoke:[[Module:{{{1}}}|{{{1}}}]]}}

ප්‍රලේඛනය අයිකොනය සැකිලි ප්‍රලේඛනය[නරඹන්න] [සංස්කරණය] [ඉතිහාසය] [විරේචනය]

The Module Link Invocation template is a simple macro template 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. A short example of its use is:

{{mli|Example|main}}
which generates
{{#invoke:Example|main}}

TemplateData[සංස්කරණය]

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for Mli

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

Linerequired
function name2

the function name within the module to call

Linerequired

More complex variations are described below.

Examples[සංස්කරණය]

Code Result Notes
{{mli|Bananas}} {{#invoke:Bananas}} Usage without function name. This does not produce a usable invocation.
{{mli|Bananas|hello}} {{#invoke:Bananas|hello}} Usage with a function name
{{mlix|BananasArgs|custom_fruit_2|Fred|4=pineapples=10|5=kiwis=5}} සැකිල්ල:Mlix Usage with a function name and parameters

See also[සංස්කරණය]

  • {{tl}} 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>}} සැකිල්ල:Demo 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}}
සැකිල්ල:Elc
සැකිල්ල:Elc
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}} සැකිල්ල:T links
{{tfd links|Hatnote}} සැකිල්ල:Tfd links
{{tiw|Hatnote}} සැකිල්ල:hatnote (සාකච්ඡාව, backlinks, සාකච්ඡාව)
{{tltt|Hatnote}} සැකිල්ල:Tltt
{{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}} සැකිල්ල:Twlh
"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:Mli&oldid=432417" වෙතින් සම්ප්‍රවේශනය කෙරිණි