×
Create a new article
Write your page title here:
We currently have 10,681 articles on Polandball Wiki. Type your article name above or create one of the articles listed here!



    Polandball Wiki

    Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Lua banner.tab.

    Template:Lt is used to display a module name as a link surrounded by braces with the Template:((#invokeTemplate:)) 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|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 Template:((=Template:)).
    {{ml|Example|}} {{#invoke:Example}} Omits the function name

    TemplateData

    This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

    TemplateData for Ml

    <templatedata>{ "description": "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.", "params": {

     "1": {
       "label": "module name",
       "description": "the module name without the namespace prefix “Module:”, which is added automatically",
       "type": "string",
       "required": true
     },
     "2": {
       "label": "function name",
       "description": "the function name within the module to call",
       "type": "string",
       "required": true
     },
     "3": {
       "label": "parameter 1",
       "description": "the name (and value) of the first parameter, use = to add an equal sign",
       "type": "string"
     },
     "4": {
       "label": "parameter 2",
       "description": "the name (and value) of the second parameter, use = to add an equal sign",
       "type": "string"
     },
     "5": {
       "label": "parameter 3",
       "description": "the name (and value) of the third parameter, use = to add an equal sign",
       "type": "string"
     }
    

    }}</templatedata>

    See also

    • {{mlx}} - Similar function but surrounded in Template:Tag tags.
    • {{tl}} - A version of this template for templates instead of modules.

    Template:Template-linking templates


    Cookies help us deliver our services. By using our services, you agree to our use of cookies.

    Recent changes

  • Okslangyan • 1 hour ago
  • Okslangyan • 1 hour ago
  • Okslangyan • 1 hour ago
  • Okslangyan • 1 hour ago
  • Cookies help us deliver our services. By using our services, you agree to our use of cookies.