[ utwórz | historia | odśwież ]Dokumentacja
W tym module nie ma dokumentacji. Jeśli wiesz jak używać tego modułu, proszę, podaj odpowiednie informacje.
local p = {}
function p.grid( data )
	local str = data.args[1]
	local num = data.args[2]
	str = string.gsub(str,',',';')
	
	local result = ""
	local strPos = 1
	local numPos = 1
	if num or false then
		while string.find(string.sub(num,numPos,-1),',') > 0 do
			result = result..string.sub(str,strPos,string.find(str,';'))..','
			strPos = string.find(str,';') + 1
			result = result..string.sub(num,numPos,string.find(num,','))..';'
			numPos = string.find(num,',') + 1
		end
	end
	result = result..string.sub(str,strPos,-1)
	return result
end
return p