Difference between revisions of "Module:Message box"

Jump to navigation Jump to search
146 bytes added ,  12:24, 29 September 2013
allow small=left for ambox
>Mr. Stradivarius
(remove a not where a not should not be)
>Mr. Stradivarius
(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.
Anonymous user

Navigation menu