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')
  box:tag('tr')
      :tag('td')
    :tag('td')
      :addClass('ooo-infobox__caption')
    :addClass('ooo-infobox__caption')
      :attr('colspan','2')
    :attr('colspan','2')
      :wikitext(caption)
    :wikitext('Description: ' .. caption)
  end
end


   -- -------------------------------------------------------------------------
   -- -------------------------------------------------------------------------
Line 224: Line 224:
   -- -------------------------------------------------------------------------
   -- -------------------------------------------------------------------------


   add_group(box,'General',{
   add_group(box,'General Information',{
     {'Art Number', art},
     {'Art Number', art},
     {'Category',  pick(args,data,'category')},
     {'Category',  pick(args,data,'category')},
Line 275: Line 275:


   add_group(box,'Dimensions',{
   add_group(box,'Dimensions',{
     {'Overall', join_dims(size_w,size_l,size_h,U.m), 'Width × Length × Height'},
     {'Overall (W × H × L)', join_dims(size_w,size_l,size_h,U.m), 'Width × Height × Length'},
     {'Note',    size_note},
     {'Note',    size_note},
   })
   })