Difference between revisions of "Module:Message box"
allow all templates to disable the plainlinks class
>Mr. Stradivarius (move the removal notice inline) |
>Mr. Stradivarius (allow all templates to disable the plainlinks class) |
||
Line 158: | Line 158: | ||
-- Add attributes, classes and styles. | -- Add attributes, classes and styles. | ||
self.id = args.id | self.id = args.id | ||
if yesno(args.plainlinks) ~= false then | |||
self:addClass('plainlinks') | |||
end | |||
for _, class in ipairs(cfg.classes or {}) do | for _, class in ipairs(cfg.classes or {}) do | ||
self:addClass(class) | self:addClass(class) |