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. | ||
− | < | + | <syntaxhighlight lang="lua"> |
local mVandalM = require('Module:Vandal-m') | local mVandalM = require('Module:Vandal-m') | ||
− | </ | + | </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. | ||
− | < | + | <syntaxhighlight lang="lua"> |
mVandalM._main(args) | mVandalM._main(args) | ||
− | </ | + | </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, 15:07 Uhr
This is a documentation subpage for Modul:Vandal-m. It contains usage information, categories and other content that is not part of the original modul page. |
This module is rated as ready for general use. It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing. |
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.