Line 10: |
Line 10: |
| local EliteShipsKai = BaseTable({ | | local EliteShipsKai = BaseTable({ |
| _table_start = [[{| class="wikitable typography-xl-optout" style="width: -moz-max-content; width: -webkit-max-content; width: max-content;"]], | | _table_start = [[{| class="wikitable typography-xl-optout" style="width: -moz-max-content; width: -webkit-max-content; width: max-content;"]], |
− | _header_template = [[! style="background-color: #EAECF0; color: black;" | No. | + | _header_template = [[!No. |
− | ! style="background-color: #EAECF0; color: black;" | Name | + | !Name |
− | ! style="background-color: #EAECF0; color: black;" | Class | + | !Class |
− | ! style="background-color: #EAECF0; white-space:nowrap;" | ${remodel} | + | ! style="white-space:nowrap;" | ${remodel} |
| ! style="width: 24px; text-align: center; vertical-align: middle; background-color: lightcoral;" | ${firepower} | | ! style="width: 24px; text-align: center; vertical-align: middle; background-color: lightcoral;" | ${firepower} |
| ! style="width: 24px; text-align: center; vertical-align: middle; background-color: lightskyblue;" | ${torpedo} | | ! style="width: 24px; text-align: center; vertical-align: middle; background-color: lightskyblue;" | ${torpedo} |
Line 27: |
Line 27: |
| ! 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="toggle-target-eliteshipskai-detail" style="text-align:left; background-color: #EAECF0; color: black;" | 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}; color: black; 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}; color: black; 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}; color: black; 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;" |<div style="max-width: 600px; color: black;">${values.value}</div>]] | + | ["!"] = [[| class="${class}" colspan="${colspan}" rowspan="${rowspan}" style="text-align: ${text_align}; background-color: ${bg_color}; padding:3px;" |<div style="max-width: 600px;">${values.value}</div>]] |
| }, | | }, |
| _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} |
| ]], | | ]], |
− | _range_header_cell = [[! style="background-color: #EAECF0; width: 24px; text-align: center; vertical-align: middle;" | ${range} | + | _range_header_cell = [[! style="width: 24px; text-align: center; vertical-align: middle;" | ${range} |
| ]], | | ]], |
| _base_columns = { --gets copied to self._columns in create_table_prep so we can mutate it. Don't mutate base_columns! | | _base_columns = { --gets copied to self._columns in create_table_prep so we can mutate it. Don't mutate base_columns! |