Module:Sandbox/Ajuanca/Names: Difference between revisions

Content deleted Content added
Testing
Testing
Line 244:
if(connector == actualName) then
firstSurname = d
--for z, lastConnector in ipairs(connectors) do
-- if(fullNameTable[#fullNameTable-1] == lastConnector and (not(firstSurname =~= #fullNameTable-1))) then
-- lastSurname = #fullNameTable-1
-- end
-- if(fullNameTable[#fullNameTable-2] == lastConnector and (not(firstSurname =~= #fullNameTable-2))) then
-- lastSurname = #fullNameTable-2
-- end
--end
end
end
if(not(firstSurname=~=0)) then
if(not(lastSurname=~=0))then
table.insert(name.familyNames, table.concat(fullNameTable, " ", firstSurname, lastSurname-1))
table.insert(name.familyNames, table.concat(fullNameTable, " ", lastSurname))