Module:BulletList

From Goober Games
Revision as of 04:09, 20 May 2024 by Goober (talk | contribs) (Written by arrows)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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