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 01:40, 9 June 2020
6 bytes added
,
4 years ago
m
no edit summary
Line 134:
Line 134:
equips = function(ship)
equips = function(ship)
−
return U.ijoin(U.imap(ship._equipment or {}, function (e)
+
return
'style="text-align:left"|' ..
U.ijoin(U.imap(ship._equipment or {}, function (e)
if not e or e.equipment == nil then
if not e or e.equipment == nil then
return '(?)'
return '(?)'
Line 143:
Line 143:
local icon = type(e.equipment) == 'string' and Equipment(e.equipment):icon() or e.equipment:icon()
local icon = type(e.equipment) == 'string' and Equipment(e.equipment):icon() or e.equipment:icon()
local link = type(e.equipment) == 'string' and e.equipment or e.equipment:name()
local link = type(e.equipment) == 'string' and e.equipment or e.equipment:name()
−
return string.format('
style="text-align:left"|
%s [[%s]]', Formatting:format_image{Formatting:format_equipment_icon(icon), link = link }, link)
+
return string.format('%s [[%s]]', Formatting:format_image{Formatting:format_equipment_icon(icon), link = link }, link)
end), "<br>")
end), "<br>")
end,
end,
がか
cssedit, gkautomate
7,064
edits