אונטערשייד צווישן ווערסיעס פון "יחידה:Message box"

95 בייטן צוגעלייגט ,  פֿאַר 1 יאָר
ק
1 רעוויזיע אימפארטירט פון wikipedia:en:Module:Message_box
אין תקציר עריכה
ק (1 רעוויזיע אימפארטירט פון wikipedia:en:Module:Message_box)
 
(איין מיטלסטע ווערסיע פון איין אנדער באַניצער נישט געוויזן.)
שורה 1: שורה 1:
--require('strict')
require('strict')
local getArgs
local getArgs
local yesno = require('Module:Yesno')
local yesno = require('Module:Yesno')
שורה 155: שורה 155:
self.typeClass = typeData.class
self.typeClass = typeData.class
self.typeImage = typeData.image
self.typeImage = typeData.image
self.typeImageNeedsLink = typeData.imageNeedsLink


-- Find if the box has been wrongly substituted.
-- Find if the box has been wrongly substituted.
שורה 329: שורה 330:
and (cfg.imageSmallSize or '30x30px')
and (cfg.imageSmallSize or '30x30px')
or '40x40px'
or '40x40px'
self.imageLeft = string.format('[[File:%s|%s|link=|alt=]]', self.typeImage
self.imageLeft = string.format('[[File:%s|%s%s|alt=]]', self.typeImage
or 'Imbox notice.png', imageSize)
or 'Information icon4.svg', imageSize, self.typeImageNeedsLink and "" or "|link=" )
end
end
end
end