Module:Message box/doc: Verskil tussen weergawes
Content deleted Content added
Wawiel (besprekings | bydraes) Moduledokumentasie, moet nog vertaal word |
Xqbot (besprekings | bydraes) k Bot: Vervang de verouderde <source> tag |
||
Lyn 8:
To use this module from another Lua module, first you need to load it.
<
local messageBox = require('Module:Message box')
</syntaxhighlight>
To create a message box, use the <code>main</code> function. It takes two parameters: the first is the box type (as a string), and the second is a table containing the message box parameters.
<
local box = messageBox.main( boxType, {
param1 = param1,
Lyn 20:
-- More parameters...
})
</syntaxhighlight>
There are seven available box types:
|