imported>Oetterer K (Schützte „Modul:Lua banner/doc“ ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt))) |
|||
Zeile 2: | Zeile 2: | ||
{{module rating|release}} | {{module rating|release}} | ||
{{module rating|protected}} | {{module rating|protected}} | ||
+ | {{Lua|Module:Yesno|Module:TableTools|Module:Util|Module:Message box|Module:List}} | ||
This module implements the {{tl|lua}} template. | This module implements the {{tl|lua}} template. | ||
Zeile 13: | Zeile 14: | ||
To use this module from other Lua modules, first load the module. | To use this module from other Lua modules, first load the module. | ||
− | + | {{code|lang=lua|code=local mLuaBanner = require('Module:Lua banner')}} | |
− | local mLuaBanner = require('Module:Lua banner') | ||
− | |||
You can then generate a side box using the _main function. | You can then generate a side box using the _main function. | ||
− | + | {{code|lang=lua|code=mLuaBanner._main(args)}} | |
− | mLuaBanner._main(args) | ||
− | |||
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|lua}} 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|lua}} template documentation. | ||
Zeile 28: | Zeile 25: | ||
<!-- 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 7. Oktober 2022, 17:52 Uhr
This is a documentation subpage for Modul:Lua banner. 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 is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
This module depends on the following other modules: |
This module implements the {{lua}} template.
Usage from wikitext[Quelltext bearbeiten]
This module cannot be used directly from wikitext. It can only be used through the {{lua}} 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 mLuaBanner = require('Module:Lua banner')
You can then generate a side box using the _main function.
mLuaBanner._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 {{lua}} template documentation.