Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Core
(view source)
Revision as of 18:12, 27 November 2015
115 bytes removed
,
8 years ago
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