Anonymous user
Module:Message box/doc: Difference between revisions
From The Kodiak Republic Wiki
m
change source to syntaxhighlight
m (change source to syntaxhighlight) |
|||
Line 9:
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,
Line 21:
-- More parameters...
})
</syntaxhighlight>
There are seven available box types:
|