Module:Message box: Difference between revisions
m
1 revision imported: importing from sister site
(move the removal notice inline) |
m (1 revision imported: importing from sister site) |
||
(21 intermediate revisions by 8 users not shown) | |||
Line 158:
-- Add attributes, classes and styles.
self.id = args.id
if yesno(args.plainlinks) ~= false then
for _, class in ipairs(cfg.classes or {}) do
self:addClass(class)
Line 495:
-- collapsible. At the moment, only ambox uses this.
textCell:cssText(self.textstyle or nil)
local
textCellDiv
:addClass('mbox-text-span')
:wikitext(self.issue or nil)
if (self.talk or self.fix) and not self.isSmall then
:addClass('hide-when-compact')
:wikitext(self.talk and (' ' .. self.talk) or nil)
:wikitext(self.fix and (' ' .. self.fix) or nil)
end
if self.info and not self.isSmall then
textCellDiv
:tag('span')
:addClass('hide-when-compact')
Line 513:
end
if self.removalNotice then
:addClass('hide-when-compact')
:tag('i')
|