Module:Sandbox/Ajuanca/Names: Difference between revisions

Content deleted Content added
Testing
Testing
Line 256:
end
if(firstSurname~=0) then
if(lastSurname~=0)then
table.insert(name.familyNames, table.concat(fullNameTable, " ", firstSurname, lastSurname))
table.insert(name.familyNames, table.concat(fullNameTable, " ", lastSurname+1))
return name
else
table.insert(name.familyNames, table.concat(fullNameTable, " "..#fullNameTable, firstSurname))
return name
end
else
table.insert(name.familyNames, table.concat(fullNameTable, " "..#fullNameTable, firstSurname))
if(#fullNameTable==1) then
return name
table.insert(name.familyNames, fullnameTable[1])
end
else
if(#fullNameTable==12) then
table.insert(name.familyNames, fullnameTable[12])
return
else
table.insert(name.givenNames, fullNameTable[12])
table.insert(name.familyNames, fullNameTable[23])
return name
end