Jump to content

Module:Message box: Difference between revisions

only add id when cfg.useId is true
m>Mr. Stradivarius on tour
(make args.all work)
m>Mr. Stradivarius
(only add id when cfg.useId is true)
Line 186: Line 186:


     -- Add attributes, classes and styles.
     -- Add attributes, classes and styles.
     self.id = args.id
     if cfg.useId then
        self.id = args.id
    end
     self:addClass(cfg.usePlainlinksParam and yesno(args.plainlinks or true) and 'plainlinks')
     self:addClass(cfg.usePlainlinksParam and yesno(args.plainlinks or true) and 'plainlinks')
     for _, class in ipairs(cfg.classes or {}) do
     for _, class in ipairs(cfg.classes or {}) do
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.