From ProventusNova DeveloperWiki

local p = {}

function p.split(frame)

   local input = frame.args[1] or ""
   local delimiter = frame.args[2] or ","
   local result = {}
   for word in string.gmatch(input, '([^' .. delimiter .. ']+)') do
       table.insert(result, word)
   end
   return table.concat(result, "\n")

end

return p