Module:Message box: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m Reverted edits by 192.185.83.191 (talk) to last revision by MacFan4000 |
||
Line 5: | Line 5: | ||
require('Module:No globals') | require('Module:No globals') | ||
local getArgs | local getArgs | ||
local yesno = require('Module: | local yesno = require('Module:Yesno') | ||
-- Get a language object for formatDate and ucfirst. | -- Get a language object for formatDate and ucfirst. | ||
Line 308: | Line 308: | ||
-- Left image settings. | -- Left image settings. | ||
local imageLeft = self.isSmall and args.smallimage or args.image | local imageLeft = self.isSmall and args.smallimage or args.image | ||
if cfg. | if cfg.imageCheckBlank and imageLeft ~= 'blank' and imageLeft ~= 'none' | ||
or not cfg.imageCheckBlank and imageLeft ~= 'none' | or not cfg.imageCheckBlank and imageLeft ~= 'none' | ||
then | then | ||
self.imageLeft = imageLeft | self.imageLeft = imageLeft | ||
if not | if not imageLeft then | ||
local imageSize = self.isSmall | local imageSize = self.isSmall | ||
and (cfg. | and (cfg.imageSmallSize or '30x30px') | ||
or '40x40px' | or '40x40px' | ||
self.imageLeft = string.format(' | self.imageLeft = string.format('[[File:%s|%s|link=|alt=]]', self.typeImage | ||
or 'Imbox notice.png', imageSize) | or 'Imbox notice.png', imageSize) | ||
end | end |