- 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
Line 221:
Line 221:
− +
− +
break between name and japanese name first
function ShipModernizationListKai:name(ship)
function ShipModernizationListKai:name(ship)
local link, text, section = ship:link()
local link, text, section = ship:link()
local value = {Formatting:format_link(link, text, section)}
local value = {Formatting:inline_block(Formatting:format_link(link, text, section))}
local japanese_name = ship:japanese_name()
local japanese_name = ship:japanese_name()
if japanese_name and (text or link) ~= japanese_name then
if japanese_name and (text or link) ~= japanese_name then
table.insert(value, Formatting:format_stat(ship:japanese_name()))
table.insert(value, Formatting:inline_block(Formatting:format_stat(ship:japanese_name())))
end
end
return {values = {value = table.concat(value, " ")}, bg_color = self._transparent, text_align = self._start_align}
return {values = {value = table.concat(value, " ")}, bg_color = self._transparent, text_align = self._start_align}