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
(First stub of Message box template)
 
mNo edit summary
Line 1: Line 1:
local p = {}
local p = {}
args = frame.args
function p.main(frame)
function p.main(frame)
local box = mw.html.create()
local box = mw.html.create()
Line 10: Line 9:
imageLeftCell:wikitext('[[File:Lenin citation-needed.svg|52px|link=|alt=]]')
imageLeftCell:wikitext('[[File:Lenin citation-needed.svg|52px|link=|alt=]]')
local textCell = row:tag('td'):addClass('mbox-text')
local textCell = row:tag('td'):addClass('mbox-text')
:wikitext(args.text)
:wikitext(frame.args.text)
return box
return box
end
end

Revision as of 17:44, 14 November 2021

local p = {}
function p.main(frame)
	local box = mw.html.create()
	:tag('table')
	:attr('border-left', '10px solid #b50014')
	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 box
end