Module:Message box: Difference between revisions
Jump to navigation
Jump to search
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 |