imported>Sarai Blanco
No edit summary
 
(No difference)

Latest revision as of 12:53, 23 November 2018

Documentation for this module may be created at Module:Sandbox/Sarai Blanco/Names/doc

--hello
local p = {} 

p.names=function (frame)
for i=1,4 do
	num1 = string.match(reco, "(%w+)") or ""
		posnum1=string.find(reco,num1) end
		if num1~="" then
			pos=string.find(reco,num1)
			if string.len(num1)==1 then pos=pos+1 end
			if string.len(num1)==2 then pos=pos+2 end
			if string.len(num1)==3 then pos=pos+3 end
			if string.len(num1)==4 then pos=pos+4 end
			if string.len(num1)==5 then pos=pos+5 end
			if string.len(num1)==6 then pos=pos+6 end
			if string.len(num1)==7 then pos=pos+7 end
			if string.len(num1)==8 then pos=pos+8 end
			if string.len(num1)==9 then pos=pos+9 end
			if string.len(num1)==10 then pos=pos+10 end
			if string.len(num1)==11 then pos=pos+11 end
			reco=string.sub(reco,pos)
			table.insert(numeros,num1)
		end 
end