Module:Message box/div: Difference between revisions

Content deleted Content added
move the exportDiv
pretty sure we don't need empty cells any more
Line 515:
if self.imageLeft then
local imageLeftCell = mbox:tag('div'):addClass('mbox-image')
if self.imageCellDiv then
-- If we are using a div, redefine imageLeftCell so that the image
-- is inside it. Divs use style="width: 52px;", which limits the
-- image width to 52px. If any images in a div are wider than that,
-- they may overlap with the text or cause other display problems.
imageLeftCell = imageLeftCell:tag('div'):addClass('mbox-image-div')
end
imageLeftCell:wikitext(self.imageLeft or nil)
--[[
-- we're not sure if this block is necessary in a div future
-- review later
--
elseif self.imageEmptyCell then
-- Some message boxes define an empty cell if no image is specified, and
-- some don't. The old template code in templates where empty cells are
-- specified gives the following hint: "No image. Cell with some width
-- or padding necessary for text cell to have 100% width."
mbox:tag('td')
:addClass('mbox-empty-cell')
]]
end