Jump to content

Module:List: Difference between revisions

11 bytes removed ,  11 years ago
fix indent parameter
m>Mr. Stradivarius
(convert to Module:HtmlBuilder and fix list-style-type support)
m>Mr. Stradivarius
(fix indent parameter)
Line 59: Line 59:
root.addClass(args.class)
root.addClass(args.class)
if listType == 'horizontal' or listType == 'horizontal_ordered' then
if listType == 'horizontal' or listType == 'horizontal_ordered' then
local indent = args.indent and tonumber(indent)
local indent = tonumber(args.indent)
indent = tostring((indent and indent * 1.6) or 0)
indent = tostring((indent and indent * 1.6) or 0)
root.css('margin-left', indent .. 'em')
root.css('margin-left', indent .. 'em')
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.