Module:List: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(fix horizontal numbered list style) |
(replace "numbered" with "ordered") |
||
Line 1:
-- This module outputs different kinds of lists. At the moment, bulleted, unbulleted,
-- horizontal,
local p = {}
Line 41:
local function getClass(listType, class)
local classes = {}
if listType == 'horizontal' or listType == '
table.insert(classes, 'hlist')
elseif listType == 'unbulleted' then
Line 56:
local function getStyle(listType, indent, style)
local styles = {}
if listType == 'horizontal' or listType == '
indent = indent and tonumber(indent)
indent = tostring((indent and indent * 1.6) or 0)
Line 87:
local listTag = 'ul'
local startAttr, typeAttr
if listType == '
listTag = 'ol'
startAttr = args.start
Line 134:
end
local funcNames = {'bulleted', 'unbulleted', 'horizontal', '
for _, funcName in ipairs(funcNames) do
|