Changes

Module:Message box

131 bytes added, 11:26, 21 December 2018
add class using template name, code requested by User:SD0001
-- Add attributes, classes and styles.
self.id = args.id
self.name = args.name
if self.name then
self:addClass('box-' .. string.gsub(self.name,' ','_'))
end
if yesno(args.plainlinks) ~= false then
self:addClass('plainlinks')
and cfg.templateCategoryRequireName
then
self.name = args.name
if self.name then
local templateName = mw.ustring.match(
and mw.title.equals(self.title, self.templateTitle)
end
-- Process data for collapsible text fields. At the moment these are only
-- used in {{ambox}}.
end
if date then
self.date = string.format(" <smallclass='date-container'>''(<span class='date'>%s</span>)''</small>", date)
end
self.info = args.info
Anonymous user