More languages
More actions
mNo edit summary |
mNo edit summary |
||
Line 12: | Line 12: | ||
imageLeftCell:tag('div'):css('width', '52px'):wikitext('[[File:Lenin open arms circle.png|52px|link=|alt=]]') | imageLeftCell:tag('div'):css('width', '52px'):wikitext('[[File:Lenin open arms circle.png|52px|link=|alt=]]') | ||
local textCell = row:tag('td'):addClass('mbox-text') | local textCell = row:tag('td'):addClass('mbox-text') | ||
:css('width', '100%') | :css('width', '100%') | ||
:tag('div'):wikitext(frame.args.text) | |||
return tostring(box) | return tostring(box) | ||
end | end | ||
return p | return p |
Revision as of 18:04, 14 November 2021
local p = {}
function p.main(frame)
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')
imageLeftCell:tag('div'):css('width', '52px'):wikitext('[[File:Lenin open arms circle.png|52px|link=|alt=]]')
local textCell = row:tag('td'):addClass('mbox-text')
:css('width', '100%')
:tag('div'):wikitext(frame.args.text)
return tostring(box)
end
return p