Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:View/Expedition
(view source)
Revision as of 15:56, 18 July 2019
315 bytes added
,
5 years ago
no edit summary
Line 137:
Line 137:
end
end
−
local function render(args)
+
local tabberTemplate = [=[Total yield = ${total}
+
{{!}}-{{!}}
+
Hourly yield = ${hourly}
+
{{!}}-{{!}}
+
Requirements = ${requirements}]=]
+
+
local function render(args
, frame
)
local world = tonumber(args.explicit.world)
local world = tonumber(args.explicit.world)
local es = U.ifilter(data, function(e) return e.maparea_id == world end)
local es = U.ifilter(data, function(e) return e.maparea_id == world end)
−
return
U.format{
+
+
local total =
U.format{
tableHeader,
tableHeader,
icon = isons[world],
icon = isons[world],
Line 166:
Line 173:
}
}
end)) .. "\n|}"
end)) .. "\n|}"
+
+
return not frame and total or frame:callParserFunction('#tag:tabber', U.format{
+
tabberTemplate,
+
total = total,
+
hourly = '',
+
requirements = '',
+
})
end
end
がか
cssedit, gkautomate
7,064
edits