Module:List: Difference between revisions

add support for horizontal numbered lists
Enwikipedia>Mr. Stradivarius
(add support for start and type attributes in ordered lists)
Enwikipedia>Mr. Stradivarius
(add support for horizontal numbered lists)
Line 40:
local function getClass(listType, class)
local classes = {}
if listType == 'horizontal' or listType == 'horizontal_numbered' then
table.insert(classes, 'hlist')
elseif listType == 'unbulleted' then
Line 86:
local listTag = 'ul'
local startAttr, typeAttr
if listType == 'numbered' or listType == 'horizontal_numbered' then
listTag = 'ol'
startAttr = args.start
Line 133:
end
 
local funcNames = {'bulleted', 'unbulleted', 'horizontal', 'numbered', 'horizontal_numbered'}
 
for _, funcName in ipairs(funcNames) do