Module:Message box/doc: ke revisions ke biich ke antar
Content deleted Content added
Panna jisme "{{High-risk|4,200,000+}} {{module rating|p}} This is a meta-module that implements the message box templates {{tl|mbox}}, {{tl|ambox}}, {{tl|cmbox}}, {{..." hae ke banae dewa gais hae. |
m Bot: Replace deprecated <source> tag and "enclose" parameter [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html] |
||
Rekha 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,
Rekha 20:
-- More parameters...
})
</syntaxhighlight>
There are seven available box types:
|