Changes

infobox: Mk.II update
Line 62: Line 62:  
kanji = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], 1, formNum - 1)
 
kanji = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], 1, formNum - 1)
 
form = " два"
 
form = " два"
 +
elseif mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sMk.II") ~= nil then
 +
formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sMk.II")
 +
kanji = mw.ustring.sub(shipmodule.data[shipNum]["name"][1], 1, formNum - 1)
 +
form = " Mk.II"
 
elseif mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sреволюция") ~= nil then -- Gangut "Kai" exception
 
elseif mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sреволюция") ~= nil then -- Gangut "Kai" exception
 
kanji = mw.text.split(shipmodule.data[shipNum]["name"][1], "%s")[1] .. '<br/>' .. mw.text.split(shipmodule.data[shipNum]["name"][1], "%s")[2]
 
kanji = mw.text.split(shipmodule.data[shipNum]["name"][1], "%s")[1] .. '<br/>' .. mw.text.split(shipmodule.data[shipNum]["name"][1], "%s")[2]
5,421

edits