Module:Seplist

-- Module to implement an unordered list with a generalised separator. Use TemplateStyles with an associated template to style the list. It will recognise "hr" as the horizontal rule. --

p = {}

p.makelist = function(frame) local args = frame.args if not args[1] then args = frame:getParent.args if not args[1] then return end end local sep = (args.sep or "") if sep == "hr" then sep = " " end local out = {} for k, v in ipairs(args) do		v = mw.text.trim(v) table.insert(out, "" .. v .. "") end if #out > 0 then return ' ' .. table.concat(out, sep) .. '' end end

return p