Module:Sandbox/Ajuanca/Names: Difference between revisions

Content deleted Content added
Testing
Testing
Line 239:
local lastSurname = 0
table.insert(name.givenNames, fullNameTable[1])
table.remove(fullNameTable[1])
for d, actualName in ipairs(fullNameTable)do
for x, connector in ipairs(connectors) do
Line 253 ⟶ 254:
end
end
end
if(firstSurname~=0) then
if(lastSurname~=0)then
table.insert(name.familyNames, table.concat(fullNameTable, " ", firstSurname, lastSurname))
Line 263 ⟶ 265:
end
else
if(#fullNameTable==1) then
table.insert(name.familyNames, fullnameTable[1])
return
else
table.insert(name.givenNames, fullNameTable[1])
table.insert(name.familyNames, fullNameTable[2])
return name
end
end
end