Module:Foreach

-- Splits a split on %% and return it in format for wiki tables

local p = {}

function p.w(frame) local string_separator = '%%' local table_separator = '| ' local results = '' for key,value in pairs(frame.args) do --actualcode line = '' for str in string.gmatch(frame.args[key], "([^"..string_separator.."]+)") do	       line = line..'| '..str..'\n' end line = line..'|-\n' results = results..line end return results end

return p