• 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
Try to add japanese text back as detail
Line 57: Line 57:  
_simple_class = "eliteshipskai-simple",
 
_simple_class = "eliteshipskai-simple",
 
_detailed_class = "eliteshipskai-detailed",
 
_detailed_class = "eliteshipskai-detailed",
_detailed_space = '<span class="eliteshipskai-detailed" style="display:none;"> </span>',
+
_detailed_start = '<span class="eliteshipskai-detailed" style="display:none;">',
_detailed_break = '<span class="eliteshipskai-detailed" style="display:none;"><br /></span>',
+
_detailed_end = '</span>',
_display_none_style = {display = "none"},
+
_display_none_style = " display: none;",
_display_none_style_text = " display: none;",
   
_detailed_columns = 1,
 
_detailed_columns = 1,
 
_detail_toggle = '<p id="eliteshipskai-detailed-toggle" class="eliteshipskai-detailed-toggle" style="display: none;">[[#eliteshipskai-detailed-toggle|Show details]][[#eliteshipskai-detailed-hidden|Hide details]]</p>',
 
_detail_toggle = '<p id="eliteshipskai-detailed-toggle" class="eliteshipskai-detailed-toggle" style="display: none;">[[#eliteshipskai-detailed-toggle|Show details]][[#eliteshipskai-detailed-hidden|Hide details]]</p>',
_nickname_template = [[<span class="eliteshipskai-detailed" style="display:none;">Nicknamed ''${nickname}''</span>]],
+
_nickname_template = [[Nicknamed ''${nickname}'']],
 
_item_class = Ship,
 
_item_class = Ship,
 
})
 
})
Line 71: Line 70:  
local value = {Formatting:inline_block(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, self._detailed_space)
+
table.insert(value, self._detailed_start)
-- table.insert(value, Formatting:inline_block(Formatting:format_stat(japanese_name), self._detailed_class, self._display_none_style))
+
table.insert(value, " ")
--end
+
table.insert(value, self._detailed_end)
 +
table.insert(value, self._detailed_start)
 +
table.insert(value, Formatting:inline_block(Formatting:format_stat(japanese_name)))
 +
table.insert(value, self._detailed_end)
 +
end
 
local nickname = ship:nick()
 
local nickname = ship:nick()
 
if nickname then
 
if nickname then
table.insert(value, self._detailed_break)
+
table.insert(value, self._detailed_start)
 +
table.insert(value, "<br />")
 +
table.insert(value, self._detailed_end)
 +
table.insert(value, self._detailed_start)
 
table.insert(value, format{self._nickname_template, nickname = Formatting:inline_block(Formatting:format_stat(nickname))})
 
table.insert(value, format{self._nickname_template, nickname = Formatting:inline_block(Formatting:format_stat(nickname))})
 +
table.insert(value, self._detailed_end)
 
end
 
end
 
return {values = {value = table.concat(value)}, bg_color = self._transparent, text_align = self._center_align}
 
return {values = {value = table.concat(value)}, bg_color = self._transparent, text_align = self._center_align}
Line 271: Line 278:  
class = self._simple_class,
 
class = self._simple_class,
 
colspan = #self._columns - self._detailed_columns, rowspan = 1,  
 
colspan = #self._columns - self._detailed_columns, rowspan = 1,  
extra_style = self._display_none_style_text,
+
extra_style = self._display_none_style,
 
text_align = self._args[self._custom_row_prefix .. custom_row_key .. self._text_align_suffix] or self._start_align,  
 
text_align = self._args[self._custom_row_prefix .. custom_row_key .. self._text_align_suffix] or self._start_align,  
 
bg_color = self._args[self._custom_row_prefix .. custom_row_key .. self._bg_color_suffix] or self._transparent,
 
bg_color = self._args[self._custom_row_prefix .. custom_row_key .. self._bg_color_suffix] or self._transparent,
Anonymous user

Navigation menu