- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Difference between revisions of "Module:Core"
Jump to navigation
Jump to search
m |
m |
||
Line 5: | Line 5: | ||
local m = require("Module:" .. frame.args[1]) | local m = require("Module:" .. frame.args[1]) | ||
local f = frame.args[2] | local f = frame.args[2] | ||
− | return m[f](m, unpack( | + | local args = {} |
+ | for k, v in pairs(frame.args) do | ||
+ | if type(k) == "number" and k >= 3 and type(v) == "string" then | ||
+ | table.insert(args, v) | ||
+ | end | ||
+ | end | ||
+ | return m[f](m, unpack(args)) | ||
end | end | ||
return Utils | return Utils |
Revision as of 18:29, 27 November 2015
Documentation for this module may be created at Module:Core/doc
local Utils = {}
function Utils.method(frame)
local m = require("Module:" .. frame.args[1])
local f = frame.args[2]
local args = {}
for k, v in pairs(frame.args) do
if type(k) == "number" and k >= 3 and type(v) == "string" then
table.insert(args, v)
end
end
return m[f](m, unpack(args))
end
return Utils