Jump to content

Template:Ml/doc: Difference between revisions

From Ferret Software Wiki
Gorasuhl (talk | contribs)
Created page with "{{doc/start}} This template is used to display (and link) a module without actually using it. If parameters should be displayed as well, use {{tl|mlx}} instead. Ml is short for <code>Module link</code>. == Usage == To use place {{tlx|ml|module|function}} on the page. === Parameters === {| class="wikitable" ! colspan=2 | Parameter<ref group="note">Placeholders refer to the names used in the syntax above. For documentation purposes positioned parameters often have a ps..."
 
Gorasuhl (talk | contribs)
m format
 
Line 43: Line 43:


=== With additional parameters ===
=== With additional parameters ===
{{tlx|ml|Notice|main|file=beans.png}} produces: {{ml|Notice|main|file=beans.png}}
{{tlx|ml|Notice|main|file{{=}}beans.png}} produces: {{ml|Notice|main|file=beans.png}}





Latest revision as of 15:33, 17 June 2025

Documentation

This template is used to display (and link) a module without actually using it. If parameters should be displayed as well, use {{mlx}} instead.

Ml is short for Module link.

Usage

To use place {{ml|module|function}} on the page.

Parameters

Parameter[note 1] Data Type Status Default Value Description
Position or name Placeholder
1 module Required String - Name of the module that should be displayed.
2 function Required String - Name of the function that has to be used.

Notes

  1. Placeholders refer to the names used in the syntax above. For documentation purposes positioned parameters often have a pseudo name instead of their number to improve readabilty, e.g. module instead of 1.


Examples

Normal usage

{{ml|Notice|main}} produces: {{#invoke:Notice|main}}

With additional parameters

{{ml|Notice|main|file=beans.png}} produces: {{#invoke:Notice|main}}


See also