سانچہ:Module link expanded

آزاد دائرۃ المعارف، ویکیپیڈیا سے

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

سانچہ:Module link expanded (ترمیم | تبادلۂ خیال | تاریخچہ | روابط | زیر نظر | نوشتہ جات) (often abbreviated {{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[ترمیم]

ذیل میں اس سانچہ کی معلومات سانچہ دستاویز درج ہے جنہیں بصری خانہ ترمیم اور دیگر آلات استعمال کرتے ہیں۔

معلومات سانچہ Module link expanded

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.

محددات سانچہ[انتظام TemplateData]

پیرامیٹروضاحتطرزحالت
module name1

the module name without the namespace prefix “Module:”, which is added automatically

اِسٹرنگمطلوب
function name2

the function name within the module to call

اِسٹرنگمطلوب
parameter 13

the name (and value) of the first parameter, use {{=}} to add an equal sign

اِسٹرنگاختیاری
parameter 24

the name (and value) of the second parameter, use {{=}} to add an equal sign

اِسٹرنگاختیاری
parameter 35

the name (and value) of the third parameter, use {{=}} to add an equal sign

اِسٹرنگاختیاری

See also[ترمیم]

  • {{ml}} – similar function but not surrounded in <code>...</code> tags
  • {{tlx}} – a version of this template for templates instead of modules

سانچہ:Template-linking templates