Module:Sidebar: Difference between revisions

use Module:Arguments
Removing obsolete HTML attributes
Line 32: Line 32:
.addClass(args.wraplinks ~= 'true' and 'nowraplinks')
.addClass(args.wraplinks ~= 'true' and 'nowraplinks')
.addClass(args.bodyclass or args.class)
.addClass(args.bodyclass or args.class)
.attr('cellspacing', args.cellspacing or 5)
.attr('cellpadding', args.cellpadding or 0)
.css('float', args.float or 'right')
.css('float', args.float or 'right')
.css('clear', (args.float == 'none' and 'both') or args.float or 'right')
.css('clear', (args.float == 'none' and 'both') or args.float or 'right')