Saltar al contento

Patrono:Ml/doc

De Wikipedia, le encyclopedia libere
Iste patrono usa Module:Separated entries.

{{Ml}} monstra le nomine de un modulo como ligamine circumferite per accolladas con le function del analysator syntactic Patrono:((#invokePatrono:)). Isto monstra le nomine del modulo como codice ma non de facto lo invoca. Iste patrono es utile in instruction e documentation pro referer se a un modulo per su nomine sin invocar lo. Illo etiam supporta le definition de un function e parametros.

Exemplos

[modificar fonte]
Codice Resultato Notas
{{ml|Example}} {{#invoke:Example|function}} Usage without function name. This does not produce a usable invocation.
{{ml|Example|hello}} {{#invoke:Example|hello}} Usage with a function name.
{{ml|Example|count_fruit|4=bananas=10|5=kiwis=5}} {{#invoke:Example|count_fruit|bananas=10|kiwis=5}} Usage with a function name and parameters.
{{ml|Example|count_fruit|Fred|bananas{{=}}10|apples{{=}}5}} {{#invoke:Example|count_fruit|Fred|bananas=10|apples=5}} Usage with a function name and parameters, using Patrono:((=Patrono:)).
{{ml|Example}} {{#invoke:Example}} Omits the function name

TemplateData

[modificar fonte]

Patrono:TemplateData header

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.

Parametros del patrono

ParametroDescriptionTypoStato
module name1

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

Catenaobligatori
function name2

the function name within the module to call

Catenaobligatori
parameter 13

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

Catenaoptional
parameter 24

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

Catenaoptional
parameter 35

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

Catenaoptional

Vide etiam

[modificar fonte]
  • {{tl}} - Un version de iste patrono pro patronos in loco de modulos.