Modul:Lua banner/doc: Unterschied zwischen den Versionen

ZIM HilfeWiki - das Wiki
 
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.
  
<source lang="lua">
+
{{code|lang=lua|code=local mLuaBanner = require('Module:Lua banner')}}
local mLuaBanner = require('Module:Lua banner')
 
</source>
 
  
 
You can then generate a side box using the _main function.
 
You can then generate a side box using the _main function.
  
<source lang="lua">
+
{{code|lang=lua|code=mLuaBanner._main(args)}}
mLuaBanner._main(args)
 
</source>
 
  
 
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 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.


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