Jump to content

Module:Navbox: Difference between revisions

16 bytes removed ,  11 years ago
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()
                .done()
             .node(tbl)
             .node(tbl)
             .tag('div', {unclosed = true})
             .tag('div', {unclosed = true})
     elseif border ~= 'none' then
     else
         res
         res
             .tag('table')
             .tag('table')
Line 332: Line 334:
                         .css('padding', '2px')
                         .css('padding', '2px')
                         .node(tbl)
                         .node(tbl)
    else -- border == 'none'
        res.node(tbl)
     end
     end
   
   
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.