Module:Ruby

local p = {}

function p.split( frame ) local args = frame:getParent.args if not args[1] then return end args[1] = mw.text.trim( args[1] ) if not mw.ustring.find( args[1], '([^<]*)' or '([^<]*)'

for i=1, #parts do       parts[i] = mw.ustring.match( parts[i], match ) .. mw.ustring.match( parts[i], ' (.*)$' ) end return table.concat( parts, '' ) end

return p