Verskil tussen weergawes van "Module:Message box/doc"

k
Bot: Vervang de verouderde <source> tag
(Moduledokumentasie, moet nog vertaal word)
 
k (Bot: Vervang de verouderde <source> tag)
 
To use this module from another Lua module, first you need to load it.
 
<sourcesyntaxhighlight lang="lua">
local messageBox = require('Module:Message box')
</syntaxhighlight>
</source>
 
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.
 
<sourcesyntaxhighlight lang="lua">
local box = messageBox.main( boxType, {
param1 = param1,
-- More parameters...
})
</syntaxhighlight>
</source>
 
There are seven available box types:
47 694

wysigings