Templat:Module link/doc
This is a documentation subpage for Templat:Module link. It may contain usage information, categories and other content that is not part of the original templat page. |
This template uses Lua: |
Templat:Lt 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
simbanaiCode | Result | Notes |
---|---|---|
Templat:Tji | Templat:Ml | Usage without function name. This does not produce a usable invocation. |
Templat:Tji | Templat:Ml | Usage with a function name. |
Templat:Tji | Templat:Ml | Usage with a function name and parameters. |
Templat:Tji | Templat:Ml | Usage with a function name and parameters, using {{=}}. |
Templat:Tji | Templat:Ml | Omits the function name |
TemplateData
simbanaiTemplateData 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.
Parameter | Keterangan | Jenis | Status | |
---|---|---|---|---|
module name | 1 | the module name without the namespace prefix “Module:”, which is added automatically | Rentetan | diperlukan |
function name | 2 | the function name within the module to call | Rentetan | diperlukan |
parameter 1 | 3 | the name (and value) of the first parameter, use {{=}} to add an equal sign | Rentetan | pilihan |
parameter 2 | 4 | the name (and value) of the second parameter, use {{=}} to add an equal sign | Rentetan | pilihan |
parameter 3 | 5 | the name (and value) of the third parameter, use {{=}} to add an equal sign | Rentetan | pilihan |
See also
simbanai- {{mfl}} - Similar function but creates a link to the function paragraph in the documentation.
- {{mlx}} - Similar function but surrounded in
<code>...</code>
tags. - {{tl}} - A version of this template for templates instead of modules.
Templat:Template-linking templates