• 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 1: Line 1:  
local _ = require('Module:Core')
 
local _ = require('Module:Core')
local Data = require('Module:Data')
+
-- local Data = require('Module:Data')
local View = require('Module:View')
+
-- local View = require('Module:View')
 +
 
 +
local p = {}
 +
 
 +
p.cache = {}
    
-- [[Category:Todo]]:
 
-- [[Category:Todo]]:
Line 46: Line 50:  
   local result = {}
 
   local result = {}
 
   for i, category in ipairs(args.explicit) do
 
   for i, category in ipairs(args.explicit) do
    local data = Data.load('Quest', category)
+
  if not p.cache[category] then
 +
  p.cache[category] = require('Module:Data/Quest/' .. category)
 +
end
 +
local data = p.cache[category]
 
     table.insert(result, _.format(table_header, { category = category }))
 
     table.insert(result, _.format(table_header, { category = category }))
 
     for i, q in ipairs(data) do
 
     for i, q in ipairs(data) do
Line 91: Line 98:  
end
 
end
   −
return View(render)
+
p.render = render
 +
 
 +
return p
cssedit, gkautomate
7,064

edits

Navigation menu