Module:Navbox: Difference between revisions

From Test Wiki
Content deleted Content added
clarify
add comment
Line 317: Line 317:
res.node(tbl)
res.node(tbl)
elseif border == 'subgroup' or border == 'child' then
elseif border == 'subgroup' or border == 'child' 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
res
.tag('/div', {unclosed = true})
.tag('/div', {unclosed = true})