Module:Message box/sandbox: Difference between revisions

Content deleted Content added
Fix for night mode
sync
Line 155:
self.typeClass = typeData.class
self.typeImage = typeData.image
self.typeImageNeedsLink = typeData.imageNeedsLink
 
-- Find if the box has been wrongly substituted.
Line 168 ⟶ 169:
self.id = args.id
self.name = args.name
-- Use same style in night mode.
self:addClass('notheme')
if self.name then
self:addClass('box-' .. string.gsub(self.name,' ','_'))
Line 331 ⟶ 330:
and (cfg.imageSmallSize or '30x30px')
or '40x40px'
self.imageLeft = string.format('[[File:%s|%s|link=%s|alt=]]', self.typeImage
or 'Information icon4.svg', imageSize, self.typeImageNeedsLink and "" or "|link=" )
end
end