• 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 85: Line 85:  
boss = boss,
 
boss = boss,
 
final = final,
 
final = final,
formation = Formatting:format_image{formation, caption = item_key, align = "center", valign = "center"},
+
formation = formation,
 
fleet = fleet,
 
fleet = fleet,
 
as = air_string,
 
as = air_string,
Line 93: Line 93:  
function NodeInfo:create_items()
 
function NodeInfo:create_items()
 
     local mode = 1
 
     local mode = 1
     local node, time, boss, final, formation_image, fleet, as_rating = nil, nil, false, false, nil, "", 0
+
     local node, time, boss, final, formation, fleet, as_rating = nil, nil, false, false, nil, "", 0
 
for index, item_key in ipairs(self._args) do
 
for index, item_key in ipairs(self._args) do
 
if item_key == "-" or mw.ustring.find(item_key, "#") then
 
if item_key == "-" or mw.ustring.find(item_key, "#") then
 
    if mode == 3 then
 
    if mode == 3 then
        self:insert_item(node, time, boss, final, formation_image, fleet, as_rating, item_key)
+
        self:insert_item(node, time, boss, final, formation, fleet, as_rating, item_key)
 
    end
 
    end
 
table.insert(self._items, "break")
 
table.insert(self._items, "break")
 
 
node, time, boss, final, formation_image, fleet, as_rating = nil, nil, false, false, nil, "", 0
+
node, time, boss, final, formation, fleet, as_rating = nil, nil, false, false, nil, "", 0
 
mode = 1
 
mode = 1
 
 
Line 134: Line 134:  
    mode = 2
 
    mode = 2
 
    elseif mode == 2 then
 
    elseif mode == 2 then
        formation_image = item_key:gsub("%s", "") .. ".jpg"
+
        formation = item_key
 
        mode = 3
 
        mode = 3
 
    else
 
    else
Line 161: Line 161:  
     end
 
     end
 
     if mode == 3 then
 
     if mode == 3 then
         self:insert_item(node, time, boss, final, formation_image, fleet, as_rating, item_key)
+
         self:insert_item(node, time, boss, final, formation, fleet, as_rating, item_key)
 
     end
 
     end
 
end
 
end
48

edits

Navigation menu