• 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 2: Line 2:  
local Utils = {}
 
local Utils = {}
   −
function Utils._apply(fn, args)
+
function _method(m, f, ...)
return fn(unpack(args))
+
m = require("Module:" .. m)
end
+
return m[f](m, ...)
 
  −
function Utils._method(module, mth, ...)
  −
local module = require("Module:" .. module)
  −
return module[mth](module, ...)
   
end
 
end
    
function Utils.method(frame)
 
function Utils.method(frame)
return Utils._apply(Utils._method, frame.args)
+
return _method(unpack(frame.args))
 
end
 
end
    
return Utils
 
return Utils
cssedit, gkautomate
7,064

edits

Navigation menu