سانچہ:Module link
![]() | اس سانچے میں حسب ذیل لوا ماڈیول زیر استعمال ہے: |
سانچہ:Ml (ترمیم | تبادلۂ خیال | تاریخچہ | روابط | زیر نظر | نوشتہ جات) 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 |
---|---|---|
{{mlاسکرپٹ نقص: «params» کے نام سے کوئی ماڈیول نہیں ہے۔}} | {{#invoke:Example|function}} | Usage without function name. This does not produce a usable invocation. |
{{mlاسکرپٹ نقص: «params» کے نام سے کوئی ماڈیول نہیں ہے۔}} | {{#invoke:Example|hello}} | Usage with a function name. |
{{mlاسکرپٹ نقص: «params» کے نام سے کوئی ماڈیول نہیں ہے۔}} | {{#invoke:Example|count_fruit|bananas=10|kiwis=5}} | Usage with a function name and parameters. |
{{mlاسکرپٹ نقص: «params» کے نام سے کوئی ماڈیول نہیں ہے۔}} | {{#invoke:Example|count_fruit|Fred|bananas=10|apples=5}} | Usage with a function name and parameters, using {{=}}. |
{{mlاسکرپٹ نقص: «params» کے نام سے کوئی ماڈیول نہیں ہے۔}} | {{#invoke:Example}} | Omits the function name |
TemplateData
[ترمیم]معلومات سانچہ 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.
پیرامیٹر | وضاحت | طرز | حالت | |
---|---|---|---|---|
module name | 1 | the module name without the namespace prefix “Module:”, which is added automatically | اِسٹرنگ | مطلوب |
function name | 2 | the function name within the module to call | اِسٹرنگ | مطلوب |
parameter 1 | 3 | the name (and value) of the first parameter, use {{=}} to add an equal sign | اِسٹرنگ | اختیاری |
parameter 2 | 4 | the name (and value) of the second parameter, use {{=}} to add an equal sign | اِسٹرنگ | اختیاری |
parameter 3 | 5 | the name (and value) of the third parameter, use {{=}} to add an equal sign | اِسٹرنگ | اختیاری |
See also
[ترمیم]- {{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.
سانچہ:Template-linking templates
اوپر دی گئی دستاویز صفحہ سانچہ:Module link/دستاویز سے شامل کی گئی ہے۔ (ترمیم | تاریخچہ) صارفین سانچہ کے تختہ مشق (تخلیق | آئینہ) اور ثابتات (تخلیق) میں تجربات کرسکتے ہیں۔ براہ کرم /دستاویز کے ذیلی صفحہ پر زمرہ جات شامل فرمائیں۔ اس سانچہ کے ذیلی صفحات۔ |