Module:Message box: Difference between revisions

Jump to navigation Jump to search
Undo revision 50870 by Hb1290 (talk)
imported>Hb1290
No edit summary
imported>Hb1290
(Undo revision 50870 by Hb1290 (talk))
Line 152: Line 152:
local args = self.args
local args = self.args
local cfg = self.cfg
local cfg = self.cfg
 
-- Get type data.
self.type = args.type
local typeData = cfg.types[self.type]
self.invalidTypeError = cfg.showInvalidTypeError
and self.type
and not typeData
typeData = typeData or cfg.types[cfg.default]
self.typeClass = typeData.class
self.typeImage = typeData.image
 
-- Find if the box has been wrongly substituted.
-- Find if the box has been wrongly substituted.
self.isSubstituted = cfg.substCheck and args.subst == 'SUBST'
self.isSubstituted = cfg.substCheck and args.subst == 'SUBST'
Anonymous user

Navigation menu