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

CamNet - das Wiki
imported>Oetterer
KKeine Bearbeitungszusammenfassung
imported>Oetterer
Keine Bearbeitungszusammenfassung
 
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.

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

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

Usage from wikitext

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

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.