Anonymous user
Module:Message box: Difference between revisions
m
11 revisions imported: importing all languages
Enwikipedia>MSGJ (add class using template name, code requested by User:SD0001) |
m (11 revisions imported: importing all languages) |
||
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
|