Modul:Message box: Unterschied zwischen den Versionen

allow all templates to disable the plainlinks class
(move the removal notice inline)
(allow all templates to disable the plainlinks class)
Zeile 158: Zeile 158:
-- Add attributes, classes and styles.
-- Add attributes, classes and styles.
self.id = args.id
self.id = args.id
self:addClass(
if yesno(args.plainlinks) ~= false then
cfg.usePlainlinksParam and yesno(args.plainlinks or true) and 'plainlinks'
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)
Anonymer Benutzer