• 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
m
no edit summary
Line 18: Line 18:     
     local kanji, form
 
     local kanji, form
local baseName = mw.ustring.find(shipmodule.data["name"][1], "改")
+
local baseName = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "改")
 
if baseName == nil then  
 
if baseName == nil then  
kanji = shipmodule.data["name"][1]
+
kanji = shipmodule.data[shipNum]["name"][1]
 
form = ""
 
form = ""
 
else
 
else
kanji = mw.ustring.sub(ship.Name.Ja, 1, baseName - 1)
+
kanji = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], 1, baseName - 1)
form = mw.ustring.sub(ship.Name.Ja, baseName , -1)
+
form = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], baseName , -1)
 
end
 
end
local JaName = frame:expandTemplate{ title = 'ruby-ja', args = { kanji , shipmodule.data["name"][2] } } .. form
+
local JaName = frame:expandTemplate{ title = 'ruby-ja', args = { kanji , shipmodule.data[shipNum]["name"][2] } } .. form
    
     local row2 = '<tr><th colspan="2">' .. JaName .. '</th><th colspan="2">' .. shipmodule.data[shipNum]["name"][3] .. '</th></tr>'
 
     local row2 = '<tr><th colspan="2">' .. JaName .. '</th><th colspan="2">' .. shipmodule.data[shipNum]["name"][3] .. '</th></tr>'
5,421

edits

Navigation menu