Module:Message box: Difference between revisions
m
1 revision imported
CL>MSGJ (add class using template name, code requested by User:SD0001) |
Michaeldakin (talk | contribs) m (1 revision imported) |
||
Line 160:
-- Add attributes, classes and styles.
self.id = args.id
self.name = args.name▼
if yesno(args.plainlinks) ~= false then
self:addClass('plainlinks')
Line 189 ⟶ 185:
and cfg.templateCategoryRequireName
then
if self.name then
local templateName = mw.ustring.match(
Line 200 ⟶ 197:
and mw.title.equals(self.title, self.templateTitle)
end
-- Process data for collapsible text fields. At the moment these are only
-- used in {{ambox}}.
Line 283 ⟶ 280:
end
if date then
self.date = string.format(" <small
end
self.info = args.info
|