Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Calc
(view source)
Revision as of 20:42, 29 October 2017
5 bytes added
,
6 years ago
m
no edit summary
Line 130:
Line 130:
local special_functions = {
local special_functions = {
−
apply = function(
args
)
+
apply = function(
args_
)
−
local template =
args
[2]
+
local template =
args_
[2]
local values = {}
local values = {}
−
for i = 3, #
args
do
+
for i = 3, #
args_
do
−
table.insert(values,
frame:preprocess(
format{
+
table.insert(values, format{
'{{${template}|${arg}}}',
'{{${template}|${arg}}}',
template = template,
template = template,
−
arg =
args
[i]
+
arg =
args_
[i]
−
}
)
)
+
})
end
end
−
return table.concat(values, args.concat or "")
+
return
frame:preprocess(
table.concat(values, args.concat or ""
)
)
end
end
}
}
Line 171:
Line 171:
function Calc.test()
function Calc.test()
+
end
end
return Calc
return Calc
がか
cssedit, gkautomate
7,060
edits