Module:List: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
add support for horizontal numbered lists
(add support for start and type attributes in ordered lists)
(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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu