Module:OOOInfoBox: Difference between revisions

mNo edit summary
mNo edit summary
Line 213: Line 213:


   if caption and caption ~= '' then
   if caption and caption ~= '' then
   box:tag('tr')
 
    :tag('td')
  -- Section title
    :addClass('ooo-infobox__caption')
   add_group_header(box, 'Description')
    :attr('colspan','2')
 
    :wikitext('Description: ' .. caption)
  -- Section content
  local tr = box:tag('tr')
  tr:tag('td')
    :attr('colspan','2')
    :addClass('ooo-infobox__muted')
    :wikitext(caption)
 
end
end