• 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 38: Line 38:  
-- * Ship iterators.
 
-- * Ship iterators.
   −
function Iterator.shipsByNo(context, n)
+
function Iterator.shipsByNo(context)
     local extra = stringKey('extra', context, n)
+
     local extra = stringKey('extra', context)
 
     local function prefix(i)
 
     local function prefix(i)
 
         if extra then
 
         if extra then
 
             i = i + 1300
 
             i = i + 1300
 
         end
 
         end
         return (i - 1) % 10 == 0 and string.format('!%d-%d', i, i - 1 + 10)
+
         if (i - 1) % 10 == 0 then
 +
            local key = 'key' .. i
 +
            context[key] = string.format('===No.%d-%d===', i, i - 1 + 10)
 +
            return '!' .. key
 +
        end
 
     end
 
     end
 
     local collection = require('Module:Collection/ShipsByNo' .. (extra and 2 or 1))
 
     local collection = require('Module:Collection/ShipsByNo' .. (extra and 2 or 1))
cssedit, gkautomate
7,064

edits

Navigation menu