Module:Infobox: Difference between revisions

    m>Mr. Stradivarius
    (remove extra newline from the below row, use a div tag instead of a span tag for image captions, per talk)
    m>Mr. Stradivarius
    (make rowclass apply to headers as well as data cells, per protected edit request)
    Line 46: Line 46:
             root
             root
                 .tag('tr')
                 .tag('tr')
                    .addClass(rowArgs.rowclass)
                     .tag('th')
                     .tag('th')
                         .attr('colspan', 2)
                         .attr('colspan', 2)
    Line 365: Line 366:
         preprocessArgs({
         preprocessArgs({
             {prefix = 'header'},
             {prefix = 'header'},
             {prefix = 'data', depend = {'label', 'rowclass'}},
             {prefix = 'data', depend = {'label'}},
            {prefix = 'rowclass'},
             {prefix = 'class'}
             {prefix = 'class'}
         }, 50)
         }, 50)