• 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 70: Line 70:  
     end
 
     end
 
     return { values = { as = row.as }, color = color }
 
     return { values = { as = row.as }, color = color }
 +
end
 +
 +
function NodeInfo:upcase(str)
 +
    str = "here you have a long list of words"
 +
    return str:gsub("(%l)(%w*)", function(a, b) return string.upper(a) .. b end)
 
end
 
end
   Line 152: Line 157:  
        local ship_name, ship_suffix
 
        local ship_name, ship_suffix
 
        if split then
 
        if split then
            ship_name = mw.ustring.sub(item_key, 1, split - 1)
+
            ship_name = self:upcase(mw.ustring.sub(item_key, 1, split - 1))
            ship_suffix = mw.ustring.sub(item_key, split + 1)
+
            ship_suffix = self:upcase(mw.ustring.sub(item_key, split + 1))
 
        else
 
        else
            ship_name = item_key
+
            ship_name = self:upcase(item_key)
 
            ship_suffix = ""
 
            ship_suffix = ""
 
        end
 
        end
48

edits

Navigation menu