Module:Navbox/sandbox: Difference between revisions

Content deleted Content added
m slimming outer div's padding a bit to better match previous layout
checking something with broken divs
Line 248:
end
listCell
:css('padding', (index == 1 and args.list1padding) or args.listpadding or '0px0em 0.25em')
:cssText(args.liststyle)
:cssText(rowstyle)
Line 255:
:addClass('navbox-' .. oddEven)
:addClass(args.listclass)
:wikitext(processItem(listText, args.nowrapitems))
:tag('div')
:css('padding', (index == 1 and args.list1padding) or args.listpadding or '0em 0.25em')
:wikitext(processItem(listText, args.nowrapitems))
 
if index == 1 and args.image then
Line 399 ⟶ 397:
end
elseif border == 'subgroup' then
-- We assume that this navbox is being rendered in a list cell of a parent navbox, and is
-- therefore inside a div with padding:0em 0.25em. We start with a </div> to avoid the
-- padding being applied, and at the end add a <div> to balance out the parent's </div>
res
:wikitext('</div>')
:node(tbl)
:wikitext('<div>')
else
local nav = res:tag('div')