ढाँचा:Mlx
{{#invoke:[[Module:{{{1}}}|{{{1}}}]]|function}}
![](http://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
![]() | यो ढाँचाले लुआ प्रयोग गर्दछ: |
ढाँचा: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
[सम्पादन गर्नुहोस्]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 name | 1 | the module name without the namespace prefix “Module:”, which is added automatically | String | आवश्यक |
function name | 2 | the function name within the module to call | String | आवश्यक |
parameter 1 | 3 | the name (and value) of the first parameter, use {{=}} to add an equal sign | String | वैकल्पिक |
parameter 2 | 4 | the name (and value) of the second parameter, use {{=}} to add an equal sign | String | वैकल्पिक |
parameter 3 | 5 | the name (and value) of the third parameter, use {{=}} to add an equal sign | String | वैकल्पिक |