• 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
no edit summary
Line 28: Line 28:  
! style="width: 24px; text-align: center; vertical-align: middle; background-color: forestgreen;" | ${fuel}
 
! style="width: 24px; text-align: center; vertical-align: middle; background-color: forestgreen;" | ${fuel}
 
! style="width: 24px; text-align: center; vertical-align: middle; background-color: darkgoldenrod;" | ${ammo}
 
! style="width: 24px; text-align: center; vertical-align: middle; background-color: darkgoldenrod;" | ${ammo}
! class="eliteshipskai-detailed" style="text-align:left;" | Notes]],
+
! class="toggle-target-eliteshipskai-detail" style="text-align:left;" | Notes]],
 
_column_cell_templates = {
 
_column_cell_templates = {
 
luck = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;" | ${values.luck}(${values.luck_max})]],
 
luck = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;" | ${values.luck}(${values.luck_max})]],
 
id = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;${extra_style}" |${values.value}]],
 
id = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;${extra_style}" |${values.value}]],
 
notes = [[| class="${class}" colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;" |<small>${values.value}</small>]],
 
notes = [[| class="${class}" colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;" |<small>${values.value}</small>]],
["!"] = [[| class="${class}" colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;${extra_style}" |${values.value}]]
+
["!"] = [[| class="${class}" colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;" |${values.value}]]
 
},
 
},
 
_night_battle_header_cell = [[! style="width: 24px; text-align: center; vertical-align: middle; background-color: slategrey;" | ${firepower}${torpedo}
 
_night_battle_header_cell = [[! style="width: 24px; text-align: center; vertical-align: middle; background-color: slategrey;" | ${firepower}${torpedo}
Line 58: Line 58:  
},
 
},
 
_no_remodel_level = "-",
 
_no_remodel_level = "-",
_simple_class = "eliteshipskai-simple",
+
_simple_class = "toggle-anti-target-eliteshipskai-detail",
_detailed_class = "eliteshipskai-detailed hidden",
+
_detailed_class = "toggle-target-eliteshipskai-detail hidden",
_detailed_start = '<span class="eliteshipskai-detailed hidden" style="display:none;">',
+
_detailed_start = '<span class="toggle-target-eliteshipskai-detail hidden">',
 
_detailed_end = '</span>',
 
_detailed_end = '</span>',
_display_none_style = " display: none;",
   
_name_style = {["max-width"] = "150px"},
 
_name_style = {["max-width"] = "150px"},
 
_detailed_columns = 1,
 
_detailed_columns = 1,
_detail_toggle = '<p id="eliteshipskai-detailed-toggle" class="eliteshipskai-detailed-toggle hidden" style="display: none;">[[#eliteshipskai-detailed-toggle|Show details]][[#eliteshipskai-detailed-hidden|Hide details]]</p>',
+
_detail_toggle = '<div class="toggle" data-target="eliteshipskai-detail" data-anti-target="eliteshipskai-detail" data-default="hide" style="display: none;"><span class="toggle-show" style="cursor: pointer; color: #006cb0;">☑ Show details</span><span class="toggle-hide" style="cursor: pointer; color: #006cb0;">☒ Show details</span></div>',
 
_nickname_template = "''${nick} ${japanese_nick}''",
 
_nickname_template = "''${nick} ${japanese_nick}''",
 
_kekkon_max_template = "Maximum after marriage: ${value}",
 
_kekkon_max_template = "Maximum after marriage: ${value}",
Line 298: Line 297:  
function EliteShipsKai:append_custom_row(custom_row_key)
 
function EliteShipsKai:append_custom_row(custom_row_key)
 
table.insert(self._rows,  
 
table.insert(self._rows,  
format{self._column_cell_templates["!"] or self._cell,  
+
format{self._column_cell_templates["!"] or self._cell,
 
class = self._detailed_class,
 
class = self._detailed_class,
extra_style = "",
+
colspan = #self._columns, rowspan = 1,
colspan = #self._columns, rowspan = 1,  
+
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,
 
values = {
 
values = {
Line 310: Line 308:  
)
 
)
 
table.insert(self._rows,  
 
table.insert(self._rows,  
format{self._column_cell_templates["!"] or self._cell,  
+
format{self._column_cell_templates["!"] or self._cell,
 
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_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,
 
values = {
 
values = {
Anonymous user

Navigation menu