Module:BulletList

From Goober Games

local p = {}

function p.main(frame)

   local text = frame.args[1]
   local separator = frame.args[2]
   
   local textList = mw.text.split(text, separator)
   local bulletList = ""
   for _, item in ipairs(textList) do
       bulletList = bulletList.. "* ".. item.. "\n"
   end
   
   return bulletList

end

return p