local p = {}
function p.main(frame)
local parent = frame:getParent()
local text = frame.args.texto or parent.args.texto
local image = frame.args.imagem or parent.args.imagem
local box = mw.html.create()
:tag('table')
:css('margin', '0 10%')
:css('border', '1px solid #a2a9b1')
:css('background-color', '#fbfbfb')
:css('border-left', '10px solid #b50014')
:addClass('mbox')
local row = box:tag('tr')
local imageLeftCell = row:tag('td'):addClass('mbox-image'):css('padding', '2px 0 2px 0.5em')
imageLeftCell:tag('div'):css('width', '52px'):wikitext(image or '[[File:Lenin open arms circle.png|52px|link=|alt=]]')
local textCell = row:tag('td'):addClass('mbox-text'):css('padding', '0.25em 0.5em')
:css('width', '100%')
:tag('div'):wikitext(texto)
return tostring(box)
end
return p