Line 10: |
Line 10: |
| local EquipmentListKai = BaseTable{ | | local EquipmentListKai = BaseTable{ |
| _item_class = Equipment, | | _item_class = Equipment, |
| + | _table_start = [[{| class="wikitable typography-xl-optout" style="width: -moz-fit-content; width: -webkit-fit-content; width: fit-content; text-align: center; padding: 5px 5px 5px 5px;"]], |
| _header_template = [=[! No. | | _header_template = [=[! No. |
| ! Rarity | | ! Rarity |
Line 20: |
Line 21: |
| ! style="white-space:nowrap;" | Notes]=], | | ! style="white-space:nowrap;" | Notes]=], |
| _column_cell_templates = { | | _column_cell_templates = { |
− | name = [[| colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:5px 5px 5px 5px;" |${values.name}<br />${values.icon} ${values.japanese_name}]] | + | name = [[| style="${text_align}; background-color: ${bg_color};" |${values.name}<br />${values.icon} ${values.japanese_name}]] |
| }, | | }, |
| _columns = { | | _columns = { |
Line 37: |
Line 38: |
| | | |
| function EquipmentListKai:id(equipment) | | function EquipmentListKai:id(equipment) |
− | return {values = {value = Formatting:format_stat(equipment:id())}, bg_color = self._transparent, text_align = self._center_align} | + | return {values = {value = Formatting:format_stat(equipment:id())}, bg_color = self._transparent, text_align = ""} |
| end | | end |
| | | |
| function EquipmentListKai:rarity(equipment) | | function EquipmentListKai:rarity(equipment) |
− | return {values = {value = Formatting:tooltip(Formatting:format_stars(equipment:stars()), Formatting:format_equipment_rarity(equipment:rarity()), nil, Formatting._display_inline_block_css)}, bg_color = self._transparent, text_align = self._center_align} | + | return {values = {value = Formatting:tooltip(Formatting:format_stars(equipment:stars()), Formatting:format_equipment_rarity(equipment:rarity()), nil, Formatting._display_inline_block_css)}, bg_color = self._transparent, text_align = ""} |
| end | | end |
| | | |
Line 51: |
Line 52: |
| }, | | }, |
| bg_color = self._transparent, | | bg_color = self._transparent, |
− | text_align = self._start_align, | + | text_align = "text-align: " .. self._start_align, |
| } | | } |
| end | | end |
| | | |
| function EquipmentListKai:equipment_type(equipment) | | function EquipmentListKai:equipment_type(equipment) |
− | return {values = {value = Formatting:format_equipment_types(equipment)}, bg_color = self._transparent, text_align = self._center_align} | + | return {values = {value = Formatting:format_equipment_types(equipment)}, bg_color = self._transparent, text_align = ""} |
| end | | end |
| | | |
Line 79: |
Line 80: |
| }, | | }, |
| bg_color = self._transparent, | | bg_color = self._transparent, |
− | text_align = self._start_align, | + | text_align = "text-align: " .. self._start_align, |
| } | | } |
| end | | end |
| | | |
| function EquipmentListKai:compatibility(equipment) | | function EquipmentListKai:compatibility(equipment) |
− | return {values = {value = Formatting:format_ship_compatibility(equipment:equippable())}, bg_color = self._transparent, text_align = self._start_align} | + | return {values = {value = Formatting:format_ship_compatibility(equipment:equippable())}, bg_color = self._transparent, text_align = "text-align: " .. self._start_align} |
| end | | end |
| | | |
| function EquipmentListKai:buildable(equipment) | | function EquipmentListKai:buildable(equipment) |
− | return {values = {value = Formatting:format_boolean_short(equipment:buildable())}, bg_color = self._transparent, text_align = self._center_align} | + | return {values = {value = Formatting:format_boolean_short(equipment:buildable())}, bg_color = self._transparent, text_align = ""} |
| end | | end |
| | | |
| function EquipmentListKai:improvable(equipment) | | function EquipmentListKai:improvable(equipment) |
− | return {values = {value = Formatting:format_boolean_short(equipment:improvable())}, bg_color = self._transparent, text_align = self._center_align} | + | return {values = {value = Formatting:format_boolean_short(equipment:improvable())}, bg_color = self._transparent, text_align = ""} |
| end | | end |
| | | |