Jump to content

Module:Infobox: Difference between revisions

add rowstyle and remove the cellspacing attribute, per protected edit requests by User:Frietjes and User:Rezonansowy
m>Mr. Stradivarius
(update to use mw.html instead of Module:HtmlBuilder - conversion courtesy of User:WOSlinker)
m>Mr. Stradivarius
(add rowstyle and remove the cellspacing attribute, per protected edit requests by User:Frietjes and User:Rezonansowy)
Line 45: Line 45:
             :tag('tr')
             :tag('tr')
                 :addClass(rowArgs.rowclass)
                 :addClass(rowArgs.rowclass)
                :cssText(rowArgs.rowstyle)
                 :attr('id', rowArgs.rowid)
                 :attr('id', rowArgs.rowid)
                 :tag('th')
                 :tag('th')
Line 180: Line 181:
             class = args['class' .. tostring(num)],
             class = args['class' .. tostring(num)],
             rowclass = args['rowclass' .. tostring(num)],
             rowclass = args['rowclass' .. tostring(num)],
            rowstyle = args['rowstyle' .. tostring(num)],
             dataid = args['dataid' .. tostring(num)],
             dataid = args['dataid' .. tostring(num)],
             labelid = args['labelid' .. tostring(num)],
             labelid = args['labelid' .. tostring(num)],
Line 229: Line 231:
             :addClass('infobox')
             :addClass('infobox')
             :addClass(args.bodyclass)
             :addClass(args.bodyclass)
            :attr('cellspacing', 3)
             :css('border-spacing', '3px')
             :css('border-spacing', '3px')
              
              
Line 374: Line 375:
         {prefix = 'data', depend = {'label'}},
         {prefix = 'data', depend = {'label'}},
         {prefix = 'rowclass'},
         {prefix = 'rowclass'},
        {prefix = 'rowstyle'},
         {prefix = 'class'},
         {prefix = 'class'},
         {prefix = 'dataid'},
         {prefix = 'dataid'},
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.