Module:Message box: Difference between revisions

Copy from sandbox per request
 
m 1 revision imported
 
(2 intermediate revisions by one other user not shown)
Line 335: Line 335:
or '40x40px'
or '40x40px'
self.imageLeft = string.format('[[File:%s|%s%s|alt=]]', self.typeImage
self.imageLeft = string.format('[[File:%s|%s%s|alt=]]', self.typeImage
or 'Information icon4.svg', imageSize, self.typeImageNeedsLink and "" or "|link=" )
or 'Information icon4.png', imageSize, self.typeImageNeedsLink and "" or "|link=" )
end
end
end
end
Line 436: Line 436:
if self.invalidTypeError then
if self.invalidTypeError then
local allSort = (self.title.namespace == 0 and 'Main:' or '') .. self.title.prefixedText
local allSort = (self.title.namespace == 0 and 'Main:' or '') .. self.title.prefixedText
self:addCat('all', 'Wikipedia message box parameter needs fixing', allSort)
self:addCat('all', 'Chabadpedia message box parameter needs fixing', allSort)
end
end
if self.isSubstituted then
if self.isSubstituted then