Module:Message box: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
சி Updated |
add class using template name, code requested by SD0001 |
||
வரிசை 160:
-- Add attributes, classes and styles.
self.id = args.id
if self.name then
self:addClass('box-' .. string.gsub(self.name,' ','_'))
end
if yesno(args.plainlinks) ~= false then
self:addClass('plainlinks')
வரி 185 ⟶ 189:
and cfg.templateCategoryRequireName
then
▲ self.name = args.name
if self.name then
local templateName = mw.ustring.match(
வரி 197 ⟶ 200:
and mw.title.equals(self.title, self.templateTitle)
end
-- Process data for collapsible text fields. At the moment these are only
-- used in {{ambox}}.
வரி 280 ⟶ 283:
end
if date then
self.date = string.format(" <small class='date-container'>''(<span class='date'>%s</span>)''</small>", date)
end
self.info = args.info
| |||