• 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
m
no edit summary
Line 19: Line 19:  
     _added_cell_template = [[| colspan="6" style="background: ${bg_color}; text-align: center; font-weight: bold;" |${content}]],
 
     _added_cell_template = [[| colspan="6" style="background: ${bg_color}; text-align: center; font-weight: bold;" |${content}]],
 
     _ship_template = [[| rowspan="4" style="background: ${bg_color};" |${ship_card}]],
 
     _ship_template = [[| rowspan="4" style="background: ${bg_color};" |${ship_card}]],
 +
    _ship_text_template = [[| rowspan="4" style="background: ${bg_color};" |${ship_name}]],
 
     _equip_template = [[| style="background-color: ${icon_bg_color}; width: 15px;" |${equip_icon}
 
     _equip_template = [[| style="background-color: ${icon_bg_color}; width: 15px;" |${equip_icon}
     | style="background-color: ${equip_bg_color}; width: 175px;text-align: center;" |${equip_link}]],
+
    | style="background-color: ${equip_bg_color}; width: 175px; text-align: center;" |${equip_link}]],
 +
    _equip_text_template = [[| style="background-color: ${icon_bg_color}; width: 15px;" | -
 +
     | style="background-color: ${equip_bg_color}; width: 175px; text-align: center;" |${equip_link}]],
 
      
 
      
 
     _header_bg = "#98D2F0",
 
     _header_bg = "#98D2F0",
Line 119: Line 122:  
         ship_card = Formatting:format_image{self._blank, size = self._size}
 
         ship_card = Formatting:format_image{self._blank, size = self._size}
 
     end
 
     end
     table.insert(self._rows, format{self._ship_template,
+
     if self._args["text_only"] then
        bg_color = self._ship_card_bg,
+
        table.insert(self._rows, format{self._ship_text_template,
        ship_card = ship_card,
+
            bg_color = self._ship_card_bg,
    })
+
            ship_name = ship:name() or "No Name Given",
 +
        })
 +
    else
 +
        table.insert(self._rows, format{self._ship_template,
 +
            bg_color = self._ship_card_bg,
 +
            ship_card = ship_card,
 +
        })
 +
    end
 
end
 
end
   Line 143: Line 153:  
         equip_link = Formatting:format_link(equip:link())
 
         equip_link = Formatting:format_link(equip:link())
 
     end
 
     end
     table.insert(self._rows, format{self._equip_template,
+
     if self._args["text_only"] then
        icon_bg_color = self._equip_icon_bg,
+
        table.insert(self._rows, format{self._equip_text_template,
        equip_icon = equip_icon,
+
            icon_bg_color = self._equip_icon_bg,
        equip_bg_color = equip_bg_color,
+
            equip_bg_color = equip_bg_color,
        equip_link = equip_link,
+
            equip_link = equip_link,
    })
+
        })
 +
    else
 +
        table.insert(self._rows, format{self._equip_template,
 +
            icon_bg_color = self._equip_icon_bg,
 +
            equip_icon = equip_icon,
 +
            equip_bg_color = equip_bg_color,
 +
            equip_link = equip_link,
 +
        })
 +
    end
 
end
 
end
  
48

edits

Navigation menu