Module:Navbox: Difference between revisions
clarify
m>Toohool (don't need a special function for the list1 row, and fix for border=none) |
m>Toohool (clarify) |
||
Line 314: | Line 314: | ||
-- render the appropriate wrapper around the navbox, depending on the border param | -- render the appropriate wrapper around the navbox, depending on the border param | ||
local res = HtmlBuilder.create() | local res = HtmlBuilder.create() | ||
if border == 'subgroup' or border == 'child' then | if border == 'none' then | ||
res.node(tbl) | |||
elseif border == 'subgroup' or border == 'child' then | |||
res | res | ||
.tag('/div', {unclosed = true}) | .tag('/div', {unclosed = true}) | ||
.done() | |||
.node(tbl) | .node(tbl) | ||
.tag('div', {unclosed = true}) | .tag('div', {unclosed = true}) | ||
else | |||
res | res | ||
.tag('table') | .tag('table') | ||
Line 332: | Line 334: | ||
.css('padding', '2px') | .css('padding', '2px') | ||
.node(tbl) | .node(tbl) | ||
end | end | ||