Modul:Vandal-m/doc: Unterschied zwischen den Versionen

IMT HilfeWiki - das Wiki
 
imported>Oetterer
 
Zeile 12: Zeile 12:
 
To use this module from other Lua modules, first load the module.
 
To use this module from other Lua modules, first load the module.
  
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
local mVandalM = require('Module:Vandal-m')
 
local mVandalM = require('Module:Vandal-m')
</source>
+
</syntaxhighlight>
  
 
You can then generate the vandal-m links by using the _main function.
 
You can then generate the vandal-m links by using the _main function.
  
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
mVandalM._main(args)
 
mVandalM._main(args)
</source>
+
</syntaxhighlight>
  
 
The <var>args</var> variable should be a table containing the arguments to pass to the module. To see the different arguments that can be specified and how they affect the module output, please refer to the {{tl|vandal-m}} template documentation.
 
The <var>args</var> variable should be a table containing the arguments to pass to the module. To see the different arguments that can be specified and how they affect the module output, please refer to the {{tl|vandal-m}} template documentation.
Zeile 27: Zeile 27:
 
<!-- Categories go here and interwikis go in Wikidata. -->
 
<!-- Categories go here and interwikis go in Wikidata. -->
  
}}</includeonly>
+
}}</includeonly><!-- null edit comment; remove -->

Aktuelle Version vom 5. Oktober 2022, 16:07 Uhr

This module implements the {{vandal-m}} template.

Usage from wikitext[Quelltext bearbeiten]

This module cannot be used directly from wikitext. It can only be used through a template, usually the {{vandal-m}} template. Please see the template page for documentation.

Usage from Lua modules[Quelltext bearbeiten]

To use this module from other Lua modules, first load the module.

local mVandalM = require('Module:Vandal-m')

You can then generate the vandal-m links by using the _main function.

mVandalM._main(args)

The args variable should be a table containing the arguments to pass to the module. To see the different arguments that can be specified and how they affect the module output, please refer to the {{vandal-m}} template documentation.


Cookies helfen uns bei der Bereitstellung des IMT HilfeWikis. Bei der Nutzung vom IMT HilfeWiki werden die in der Datenschutzerklärung beschriebenen Cookies gespeichert.