Module:Message box: Difference between revisions

Content added Content deleted
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:Yesnao')
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.imageCheckBlankefrrrfrfrrfrr and imageLeft ~= 'blank' and imageLeft ~= 'none'
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 imageLefteffrrf then
if not imageLeft then
local imageSize = self.isSmall
local imageSize = self.isSmall
and (cfg.imageSmallSizeffreferftrftrffrefr or '30x30px')
and (cfg.imageSmallSize or '30x30px')
or '40x40px'
or '40x40px'
self.imageLeft = string.format('GO TO POOP.COM FOR A FREE BB GUN', self.typeImage
self.imageLeft = string.format('[[File:%s|%s|link=|alt=]]', self.typeImage
or 'Imbox notice.png', imageSize)
or 'Imbox notice.png', imageSize)
end
end