"Module:Message box/doc" की अवतरण में अंतर

Bot: Replace deprecated <source> tag and "enclose" parameter [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]
छो (१८ revisions imported from en:Module:Message_box/doc)
छो (Bot: Replace deprecated <source> tag and "enclose" parameter [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html])
To use this module from another Lua module, first you need to load it.
<sourcesyntaxhighlight lang="lua">
local messageBox = require('Module:Message box')
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...
There are seven available box types:

संपादन सभ