Module:List: Difference between revisions
Jump to navigation
Jump to search
m>Mr. Stradivarius replace "numbered" with "ordered" |
m>Mr. Stradivarius add ol_style as a possible parameter for backwards compatibility with {{ordered list}} |
||
Line 103: | Line 103: | ||
local class = getClass(listType, args.class) or '' | local class = getClass(listType, args.class) or '' | ||
local style = getStyle(listType, args.indent, args.style) or '' | local style = getStyle(listType, args.indent, args.style) or '' | ||
local list_style = args.list_style or args.ul_style -- ul_style | local list_style = args.list_style or args.ul_style or args.ol_style -- ul_style and ol_style are included for backwards compatibility. No distinction is made for ordered or unordered lists. | ||
list_style = list_style and (' style="' .. list_style .. '"') or '' | list_style = list_style and (' style="' .. list_style .. '"') or '' | ||
return mw.ustring.format( | return mw.ustring.format( |