• 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 362: Line 362:  
     local args = getArgs{frame = frame:getParent()}
 
     local args = getArgs{frame = frame:getParent()}
 
     local season, type = args[1], args[2]
 
     local season, type = args[1], args[2]
 +
    local only = args.only
 
     local result = {
 
     local result = {
 
         "|-",
 
         "|-",
Line 368: Line 369:  
     local seasonal_data = require(string.format("Module:Seasonal/%s", season))
 
     local seasonal_data = require(string.format("Module:Seasonal/%s", season))
 
     for _, ship in ipairs(seasonal_data.index[type]) do
 
     for _, ship in ipairs(seasonal_data.index[type]) do
         if not Utils.find(args, ship) then
+
         if only and Utils.find(args, ship) or not only and not Utils.find(args, ship) then
 
             local ship_data = seasonal_data.ships[ship]
 
             local ship_data = seasonal_data.ships[ship]
 
             local quotes = Utils.ifilter(ship_data, function(quote)
 
             local quotes = Utils.ifilter(ship_data, function(quote)
cssedit, gkautomate
6,928

edits

Navigation menu