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}}
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 Module link

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

Linerequired
function name2

the function name within the module to call

Linerequired

More complex variations are described below.

Code Result Notes
{{mli|Bananas}} {{#invoke:Bananas|function}} 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
  • {{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>}}
{{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
සංස්කරණය
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}} Template:Hatnote (talk · history · transclusions · logs · subpages)
{{tiw|Hatnote}} සැකිල්ල:hatnote (සාකච්ඡාව, backlinks, සාකච්ඡාව)
{{tltt|Hatnote}} {{Hatnote}}
{{tetl|Hatnote}} {{ Hatnote }}
links talk view
{{tsetl|Hatnote}} {{subst:Hatnote}}
 links talk edit
{{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=සැකිල්ල:Module_link/ලේඛය&oldid=518236" වෙතින් සම්ප්‍රවේශනය කෙරිණි