Content deleted Content added
sync |
add image classes (for example, to add "skin-invert") |
||
Line 188:
-- Set text style.
self.textstyle = args.textstyle
-- Set image classes.
self.imageRightClass = args.imagerightclass or args.imageclass
self.imageLeftClass = args.imageleftclass or args.imageclass
-- Find if we are on the template page or not. This functionality is only
Line 519 ⟶ 523:
imageLeftCell = imageLeftCell:tag('div'):addClass('mbox-image-div')
end
imageLeftCell
:addClass(self.imageLeftClass)
:wikitext(self.imageLeft or nil)
elseif self.imageEmptyCell then
-- Some message boxes define an empty cell if no image is specified, and
Line 574 ⟶ 580:
end
imageRightCell
:addClass(self.imageRightClass)
:wikitext(self.imageRight or nil)
end
|