• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
test #2
Line 22: Line 22:     
     local kanji, form
 
     local kanji, form
local formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "[改甲航(zwei)(drei)(due)]")
+
local formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "[改甲航]")
 
if formNum == nil then  
 
if formNum == nil then  
kanji = shipmodule.data[shipNum]["name"][1]
+
if mw.ustring.find(shipmodule.data[shipNum]["name"][1], "zwei") ~= nil then
form = ""
+
formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "zwei")
 +
kanji = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], 1, formNum - 1)
 +
form = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], formNum , -1)
 +
elseif mw.ustring.find(shipmodule.data[shipNum]["name"][1], "drei") ~= nil then
 +
formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "drei")
 +
kanji = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], 1, formNum - 1)
 +
form = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], formNum , -1)
 +
elseif mw.ustring.find(shipmodule.data[shipNum]["name"][1], "due") ~= nil then
 +
formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "due")
 +
kanji = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], 1, formNum - 1)
 +
form = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], formNum , -1)
 +
else
 +
kanji = shipmodule.data[shipNum]["name"][1]
 +
form = ""
 +
end
 
else
 
else
 
kanji = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], 1, formNum - 1)
 
kanji = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], 1, formNum - 1)
5,421

edits

Navigation menu