Jump to content

Module:Lua banner/doc

From Consumer Rights Wiki
Revision as of 04:36, 13 August 2025 by ConsciousCode (talk | contribs) (Importing from Wikipedia:Module:Lua_banner/doc)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Lua banner

Script error: No such module "High-use".

This module implements the {{Lua }} template.

Usage from wikitext[edit source]

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[edit source]

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

<syntaxhighlight lang="lua"> local mLuaBanner = require('Module:Lua banner') </syntaxhighlight>

You can then generate a side box using the _main function.

<syntaxhighlight lang="lua"> mLuaBanner._main(args) </syntaxhighlight>

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.

Tracking category[edit source]