Documentation for this module may be created at Module:Mbox/doc
local Mbox = {} local function createMessageBox(args) local mw = require('mw') -- Default styles local styles = { ['border-left-color'] = args.bordercolor or 'black', ['background-color'] = args.bgcolor or 'white' } -- Create HTML structure local container = mw.html.create('div') :addClass('mbox') :css(styles) :wikitext(args.text or '') return container end function Mbox.main(frame) local args = require('Dev:Arguments').getArgs(frame) -- Create the message box local mbox = createMessageBox(args) return tostring(mbox) end return Mbox