• 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 5: Line 5:  
local Formatting = require('Module:Formatting')
 
local Formatting = require('Module:Formatting')
 
local format = require('Module:StringInterpolation').format
 
local format = require('Module:StringInterpolation').format
 +
 +
local route_taken = ""
    
local NanaminFleet = BaseTable({
 
local NanaminFleet = BaseTable({
Line 31: Line 33:  
     _elos = 0,
 
     _elos = 0,
 
     _fighter_power = 0,
 
     _fighter_power = 0,
     _hq_lvl = 0,
+
     _hq_lvl = 0
    _route_taken = ""
   
})
 
})
   Line 114: Line 115:  
         elseif mw.ustring.find(item_key, '!route') then
 
         elseif mw.ustring.find(item_key, '!route') then
 
             local split = mw.ustring.find(item_key, '=')
 
             local split = mw.ustring.find(item_key, '=')
             self._route_taken = mw.ustring.sub(item_key, split + 1)
+
             route_taken = mw.ustring.sub(item_key, split + 1)
 
         else
 
         else
 
             if mw.ustring.find(item_key, '/') then
 
             if mw.ustring.find(item_key, '/') then
Line 243: Line 244:  
             table.insert(self._rows, self._row_starter)
 
             table.insert(self._rows, self._row_starter)
 
             table.insert(self._rows, format{self._route_cell_template,
 
             table.insert(self._rows, format{self._route_cell_template,
                 route_taken = self._route_taken
+
                 route_taken = route_taken
 
             })
 
             })
 
end
 
end
48

edits

Navigation menu