• 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 152: Line 152:  
     end
 
     end
 
     return table.concat(result_ships, "<br />"), table.concat(result_days, "\n")
 
     return table.concat(result_ships, "<br />"), table.concat(result_days, "\n")
 +
end
 +
 +
-- not doing Formatting:advanced_tooltip
 +
function equipment_tooltip(text, equipment_card)
 +
    return format{
 +
        [=[<span class="advanced-tooltip explain">${text}<div class="tooltip-contents">[[File:${equipment_card}]]</div></span>]=],
 +
        text = text,
 +
        equipment_card = equipment_card,
 +
    }
 
end
 
end
   Line 161: Line 170:  
                 return tostring(amount)
 
                 return tostring(amount)
 
             elseif equipment then
 
             elseif equipment then
                 -- TODO: equipment icons
+
                 local equipment_card = Equipment(equipment):card()
                 return tostring(amount)
+
                 return equipment_tooltip(amount, equipment_card)
 
             end
 
             end
 
         elseif resources.equipment == false then
 
         elseif resources.equipment == false then
cssedit, gkautomate
7,064

edits

Navigation menu