• 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 50: Line 50:  
formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%szwei")
 
formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%szwei")
 
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 = " zwei"
+
form = " zwei"
 
elseif mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sdrei") ~= nil then
 
elseif mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sdrei") ~= nil then
 
formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sdrei")
 
formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sdrei")
 
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 = " drei"
+
form = " drei"
 
elseif mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sdue") ~= nil then
 
elseif mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sdue") ~= nil then
 
formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sdue")
 
formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sdue")
 
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 = " due"
+
form = " due"
 
elseif mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sдва") ~= nil then
 
elseif mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sдва") ~= nil then
 
formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sдва")
 
formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sдва")
 
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
 
elseif mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sMk.II") ~= nil then
 
             if mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sMk.II Mod.2") ~= nil then
 
             if mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sMk.II Mod.2") ~= nil then
 
                 formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sMk.II Mod.2")
 
                 formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sMk.II Mod.2")
 
    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 = " Mk.II Mod.2"
+
    form = " Mk.II Mod.2"
 
             else
 
             else
 
    formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sMk.II")
 
    formNum = mw.ustring.find(shipmodule.data[shipNum]["name"][1], "%sMk.II")
 
    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 = " Mk.II"
+
    form = " Mk.II"
 
                 end
 
                 end
 
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
Line 87: Line 87:  
local JaName = ""
 
local JaName = ""
 
if shipNum == "147" or shipNum == "311" or shipNum == "312" or shipNum == "313" or shipNum == "313a" or shipNum == "316" then --Russian ship markup
 
if shipNum == "147" or shipNum == "311" or shipNum == "312" or shipNum == "313" or shipNum == "313a" or shipNum == "316" then --Russian ship markup
JaName = '<ruby lang="ru" xml:lang="ru"><rb>' .. kanji .. '</rb><rp> (</rp><rt lang="ja">' .. shipmodule.data[shipNum]["name"][2] .. '</rt><rp>) </rp></ruby>' .. frame:expandTemplate{ title = 'lang', args = { ru , form } }
+
JaName = '<ruby lang="ru" xml:lang="ru"><rb>' .. kanji .. '</rb><rp> (</rp><rt lang="ja">' .. shipmodule.data[shipNum]["name"][2] .. '</rt><rp>) </rp></ruby>' .. frame:expandTemplate{ title = 'lang', args = { 'ru' , form } }
 
else
 
else
JaName = frame:expandTemplate{ title = 'ruby-ja', args = { kanji , shipmodule.data[shipNum]["name"][2] } } .. frame:expandTemplate{ title = 'lang', args = { ja , form } }
+
JaName = frame:expandTemplate{ title = 'ruby-ja', args = { kanji , shipmodule.data[shipNum]["name"][2] } } .. frame:expandTemplate{ title = 'lang', args = { 'ja' , form } }
 
end
 
end
  
cssedit, gkautomate
6,916

edits

Navigation menu