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 19:58, 16 September 2018
281 bytes removed
,
6 years ago
m
no edit summary
Line 105:
Line 105:
return format_lua(U.imap(ship._equipment or {}, function (e) return e and e.size or '?' end))
return format_lua(U.imap(ship._equipment or {}, function (e) return e and e.size or '?' end))
end,
end,
−
+
equips = function(ship)
equips = function(ship)
return U.ijoin(U.imap(ship._equipment or {}, function (e)
return U.ijoin(U.imap(ship._equipment or {}, function (e)
Line 115:
Line 115:
end
end
local eq = Equipment(e.equipment)
local eq = Equipment(e.equipment)
−
local icon = eq:icon()
+
return Formatting:format_image
(
{ Formatting:format_equipment_icon(
eq:
icon
(
)) }
)
−
local eqType = eq:type()
−
if type(icon) ~= 'string' or type(eqType) ~= 'string' then
−
return '(?)'
−
end
−
return Formatting:format_image{
−
Formatting:format_equipment_icon(icon)
,
−
caption = Formatting:format_equipment_type(eqType
)
−
}
end))
end))
end,
end,
がか
cssedit, gkautomate
7,064
edits