Module:Navbox: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(switch to mw.html per talk page (no objections))
(Remove cellspacing attribute (obsolete), cell-spacing CSS moved to Common.css.)
Line 296: Line 296:
local function renderMainTable()
local function renderMainTable()
local tbl = mw.html.create('table')
local tbl = mw.html.create('table')
:attr('cellspacing', 0)
:addClass('nowraplinks')
:addClass('nowraplinks')
:addClass(args.bodyclass)
:addClass(args.bodyclass)
Line 306: Line 305:
end
end
tbl:css('border-spacing', 0)
if border == 'subgroup' or border == 'child' or border == 'none' then
if border == 'subgroup' or border == 'child' or border == 'none' then
tbl
tbl
Line 359: Line 357:
res
res
:tag('table')
:tag('table')
:attr('cellspacing', 0)
:addClass('navbox')
:addClass('navbox')
:css('border-spacing', 0)
:cssText(args.bodystyle)
:cssText(args.bodystyle)
:cssText(args.style)
:cssText(args.style)