Module:Message box: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(remove a not where a not should not be)
(allow small=left for ambox)
Line 181: Line 181:


-- Find whether we are using a small message box.
-- Find whether we are using a small message box.
self.isSmall = cfg.allowSmall and (args.small == 'yes' or args.small == true) and true or false
if cfg.allowSmall and (
cfg.smallParam and args.small == cfg.smallParam
or not cfg.smallParam and yesno(args.small)
)
then
self.isSmall = true
else
self.isSmall = false
end


-- Add attributes, classes and styles.
-- Add attributes, classes and styles.