Changes

no edit summary
Line 325: Line 325:  
end
 
end
 
--Prinz/Graf/Teste check (for ship names that are 2 or more words)
 
--Prinz/Graf/Teste check (for ship names that are 2 or more words)
if mw.text.split(shipname, '%s')[2] ~= nil and mw.text.split(shipname, '%s')[2] ~= "Kai" then
+
if mw.text.split(shipname, '%s')[2] ~= nil and not (mw.text.split(shipname, '%s')[2] == "Kai" or
shipbasename = shipbasename .. mw.text.split(shipname, '%s')[2]
+
mw.text.split(shipname, '%s')[2] == "A" or mw.text.split(shipname, '%s')[2] == "zwei" or
 +
mw.text.split(shipname, '%s')[2] == "drei" or mw.text.split(shipname, '%s')[2] == "Due") then
 +
shipbasename = shipbasename .. ' ' .. mw.text.split(shipname, '%s')[2]
 
end
 
end
 
pagename = shipbasename
 
pagename = shipbasename
5,421

edits