Module:Navbox: Difference between revisions
add support for list1padding param
m>Toohool (correct fix for empty args) |
m>Toohool (add support for list1padding param) |
||
Line 240: | Line 240: | ||
.addClass(args.listclass) | .addClass(args.listclass) | ||
.tag('div') | .tag('div') | ||
.css('padding', args.listpadding or '0em 0.25em') | .css('padding', (listnum == 1 and args.list1padding) or args.listpadding or '0em 0.25em') | ||
.newline() | .newline() | ||
.wikitext(args['list' .. listnum]) | .wikitext(args['list' .. listnum]) |