Line 11: |
Line 11: |
| local NodeInfo = BaseTable({ | | local NodeInfo = BaseTable({ |
| _item_class = EnemyShip, | | _item_class = EnemyShip, |
− | _table_start = [[{|class="wikitable" style="width:100%"]], | + | _table_start = [[{|class="wikitable"]], |
− | _table_start_style = [[{|class="wikitable" style="width:100%%;margin-bottom:%spx !important"]], | + | _table_start_style = [[{|class="wikitable" style="margin-bottom:%spx !important"]], |
| _header_template = [[!# | | _header_template = [[!# |
− | !style="width:150px"|Formation | + | !Formation |
| !${node_type} | | !${node_type} |
| !AD/AP<br>AS/AS+]], | | !AD/AP<br>AS/AS+]], |
Line 25: |
Line 25: |
| !AD/AP<br>AS/AS+]], | | !AD/AP<br>AS/AS+]], |
| _column_cell_templates = { | | _column_cell_templates = { |
− | node = [[|colspan="${colspan}" rowspan="${rowspan}" style="text-align:center;color:${color};background-color:${bg_color}"|${values.node}]], | + | node = [[|rowspan="${rowspan}" style="text-align:center;color:${color};background-color:${bg_color}"|${values.node}]], |
| formation = [[|style="text-align:center;background-color:${bg_color};color:${color}"|${values.formation}]], | | formation = [[|style="text-align:center;background-color:${bg_color};color:${color}"|${values.formation}]], |
− | fleet = [[|style="background-color:${bg_color};"|<div style="display:table-row;font-size:0px">${values.fleet}</div>]], | + | fleet = [[|style="background-color:${bg_color};font-size:0px"|${values.fleet}]], |
− | as = [[|style="text-align:center;background-color:${bg_color};color:${color};"|${values.as}]], | + | as = [[|style="text-align:center;background-color:${bg_color};color:${color}"|${values.as}]], |
| }, | | }, |
| _column_cell_templates_basexp = { | | _column_cell_templates_basexp = { |
− | node = [[|colspan="${colspan}" rowspan="${rowspan}" style="text-align:center;color:${color};background-color:${bg_color}"|${values.node}]], | + | node = [[|rowspan="${rowspan}" style="text-align:center;color:${color};background-color:${bg_color}"|${values.node}]], |
| formation = [[|style="text-align:center;background-color:${bg_color};color:${color}"|${values.formation}]], | | formation = [[|style="text-align:center;background-color:${bg_color};color:${color}"|${values.formation}]], |
− | basexp = [[|style="text-align:center;background-color:${bg_color};color: ${color}"|${values.basexp}]], | + | basexp = [[|style="text-align:center;background-color:${bg_color};color:${color}"|${values.basexp}]], |
− | fleet = [[|style="background-color:${bg_color}"|<div style="display:table-row;font-size:0px">${values.fleet}</div>]], | + | fleet = [[|style="background-color:${bg_color};font-size:0px"|${values.fleet}]], |
− | as = [[|style="text-align:center;background-color:${bg_color};color: ${color}" |${values.as}]], | + | as = [[|style="text-align:center;background-color:${bg_color};color:${color}"|${values.as}]], |
| }, | | }, |
| | | |
| _simple_node_template = [[|style="text-align:center"|${node} | | _simple_node_template = [[|style="text-align:center"|${node} |
− | |colspan="3" style="text-align:center"|<span lang="ja">${ja}</span><br>${en}]], | + | |style="text-align:center"|<span lang="ja">${ja}</span><br>${en}]], |
| | | |
| _empty_node_en = 'Must be my imagination./No enemy spotted./Calm seas./Calm straits./Be alert./Peaceful seas.', | | _empty_node_en = 'Must be my imagination./No enemy spotted./Calm seas./Calm straits./Be alert./Peaceful seas.', |
Line 51: |
Line 51: |
| | | |
| _resource_node_template = [[|style="text-align:center;background-color:${values.bg_color};color:${values.color}"|${values.node} | | _resource_node_template = [[|style="text-align:center;background-color:${values.bg_color};color:${values.color}"|${values.node} |
− | |colspan="3" style="text-align:center;background-color:${values.bg_color};color:${values.color}"|${values.text}]], | + | |style="text-align:center;background-color:${values.bg_color};color:${values.color}"|${values.text}]], |
| | | |
| _collapser_template = [[<div class="mw-customtoggle-${toggle_id} wikia-menu-button">${button_display}</div> | | _collapser_template = [[<div class="mw-customtoggle-${toggle_id} wikia-menu-button">${button_display}</div> |
Line 113: |
Line 113: |
| function NodeInfo:formation(row) | | function NodeInfo:formation(row) |
| if row.tags.final then | | if row.tags.final then |
− | row.formation = row.formation .. "<br /><div style='font-weight:bold; color:red;'>(Final)</div>" | + | row.formation = row.formation .. "<br /><div style='font-weight:bold;color:red'>(Final)</div>" |
| end | | end |
| if row.tags.clear then | | if row.tags.clear then |
− | row.formation = row.formation .. "<br /><div style='font-weight:bold; color:blue;'>(Clear)</div>" | + | row.formation = row.formation .. "<br /><div style='font-weight:bold;color:blue'>(Clear)</div>" |
| end | | end |
| if row.tags.has_lbas_ha_bomber then | | if row.tags.has_lbas_ha_bomber then |