• 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
var name change
Line 18: Line 18:     
     local kanji, form
 
     local kanji, form
local baseName = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "[改甲航]")
+
local formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "[改甲航]")
if baseName == nil then  
+
if formNum == nil then  
 
kanji = shipmodule.data[shipNum]["name"][1]
 
kanji = shipmodule.data[shipNum]["name"][1]
 
form = ""
 
form = ""
 
else
 
else
kanji = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], 1, baseName - 1)
+
kanji = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], 1, formNum - 1)
form = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], baseName , -1)
+
form = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], formNum , -1)
 
end
 
end
 
local JaName = frame:expandTemplate{ title = 'ruby-ja', args = { kanji , shipmodule.data[shipNum]["name"][2] } } .. form
 
local JaName = frame:expandTemplate{ title = 'ruby-ja', args = { kanji , shipmodule.data[shipNum]["name"][2] } } .. form
5,421

edits

Navigation menu