Module:List: Difference between revisions

Created page with "-- This module outputs different kinds of lists. At the moment, bulleted, -- unbulleted, horizontal, ordered, and horizontal ordered lists are supported. local libUtil = requ..."
(xfer from sandbox per edit request on talk page)
 
(Created page with "-- This module outputs different kinds of lists. At the moment, bulleted, -- unbulleted, horizontal, ordered, and horizontal ordered lists are supported. local libUtil = requ...")
Line 4: Line 4:
local libUtil = require('libraryUtil')
local libUtil = require('libraryUtil')
local checkType = libUtil.checkType
local checkType = libUtil.checkType
local mTableTools = require('Module:TableTools')
local m_TableTools = require('Module:TableTools')


local p = {}
local p = {}
Line 87: Line 87:
data.itemStyle = args.item_style or args.li_style
data.itemStyle = args.item_style or args.li_style
data.items = {}
data.items = {}
for i, num in ipairs(mTableTools.numKeys(args)) do
for i, num in ipairs(m_TableTools.numKeys(args)) do
local item = {}
local item = {}
item.content = args[num]
item.content = args[num]