Jump to content

Module:Navbox: Difference between revisions

add \n to make navboxes with class hlist work for fist item in list
m>Toohool
(fix errors)
m>WOSlinker
(add \n to make navboxes with class hlist work for fist item in list)
Line 63: Line 63:
     if args.title then add(gutterRow) end
     if args.title then add(gutterRow) end
     add('<tr><td class="navbox-abovebelow ', args.aboveclass, '" style="', args.basestyle, ';', args.abovestyle, '" colspan="', getAboveBelowColspan(args), '">')
     add('<tr><td class="navbox-abovebelow ', args.aboveclass, '" style="', args.basestyle, ';', args.abovestyle, '" colspan="', getAboveBelowColspan(args), '">')
     add('<div>', args.above, '</div></td></tr>')
     add('<div>\n', args.above, '</div></td></tr>')
end
end
function renderBelowRow(args)
function renderBelowRow(args)
Line 69: Line 69:
         if args.title or args.above or #listnums > 0 then add(gutterRow) end
         if args.title or args.above or #listnums > 0 then add(gutterRow) end
         add('<tr><td class="navbox-abovebelow ', args.belowclass, '" style="', args.basestyle, ';', args.belowstyle, '"  colspan="', getAboveBelowColspan(args), '">')
         add('<tr><td class="navbox-abovebelow ', args.belowclass, '" style="', args.basestyle, ';', args.belowstyle, '"  colspan="', getAboveBelowColspan(args), '">')
         add('<div>', args.below, '</div></td></tr>')
         add('<div>\n', args.below, '</div></td></tr>')
     end
     end
end
end
Line 106: Line 106:
     end
     end
     add(' ', args.listclass, '">')
     add(' ', args.listclass, '">')
     add('<div style="padding:', args.list1padding or args.listpadding or '0em 0.25em', '">')
     add('<div style="padding:', args.list1padding or args.listpadding or '0em 0.25em', '">\n')
     add(args.list1)
     add(args.list1)
     add('</div></td>')
     add('</div></td>')
Line 148: Line 148:
     add(' ', args.listclass, '">')
     add(' ', args.listclass, '">')
      
      
     add('<div style="padding:', args.listpadding or '0em 0.25em', '">', args['list' .. listnum], '</div></td></tr>')
     add('<div style="padding:', args.listpadding or '0em 0.25em', '">\n', args['list' .. listnum], '</div></td></tr>')
end
end


Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.