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
← Older edit
Newer edit →
Module:Calc
(view source)
Revision as of 20:42, 29 October 2017
5 bytes added
,
7 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,064
edits
Navigation menu
Personal tools
Log in
Request account
Namespaces
Module
Discussion
Variants
Views
Read
View source
View history
More
Search
Content Navigation
Kancolle Wiki
Random page
Recent changes
Batch Uploading
Current Mini-event
Naval District Saury Festival
Sortie
Sortie
World 1 (Naval Base Waters)
World 2 (Nansei Island Waters)
World 3 (Northern Waters)
World 7 (South Western Waters)
World 4 (Western Waters)
World 5 (Southern Waters)
World 6 (Central Waters)
Events
Shortcuts
Expeditions
Quests
Ships Maximum Status
Equipment
Construction
Development
Akashi's Improvement Arsenal
Shop
Inventory
Combat Mechanics
Glossary
Drop List
Interviews
Tutorials
How to Register
How To Play
Leveling
Resource Farming
Ship Priority
Equipment Setup
Akashi Upgrades
Event Preparation
Troubleshooting
FAQ
Community
Help
Sandbox
Tools
Upload file
Special pages
Printable version