Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Message box: Difference between revisions

From ProleWiki, the proletarian encyclopedia
mNo edit summary
mNo edit summary
Line 4: Line 4:
:tag('table')
:tag('table')
:css('border-left', '10px solid #b50014')
:css('border-left', '10px solid #b50014')
:addClass('mbox-table')
:css('margin', '0 10%')
:css('border', '1px solid #a2a9b1')
:css('background-color', '#fbfbfb')
:addClass('mbox')
local row = box:tag('tr')
local row = box:tag('tr')
local imageLeftCell = row:tag('td'):addClass('mbox-image')
local imageLeftCell = row:tag('td'):addClass('mbox-image')

Revision as of 17:53, 14 November 2021

local p = {}
function p.main(frame)
	local box = mw.html.create()
	:tag('table')
	:css('border-left', '10px solid #b50014')
	:css('margin', '0 10%')
	:css('border', '1px solid #a2a9b1')
	:css('background-color', '#fbfbfb')
	:addClass('mbox')
	local row = box:tag('tr')
	local imageLeftCell = row:tag('td'):addClass('mbox-image')
	imageLeftCell:tag('div'):css('width', '52px')
	imageLeftCell:wikitext('[[File:Lenin citation-needed.svg|52px|link=|alt=]]')
	local textCell = row:tag('td'):addClass('mbox-text')
	:wikitext(frame.args.text)
	return tostring(box)
end
return p