Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Fleet
(view source)
Revision as of 23:03, 23 June 2019
304 bytes added
,
5 years ago
no edit summary
Line 101:
Line 101:
return string.format('{{tooltip|~/%s|%s}}', maxHp, U.ijoin(hps, ', '))
return string.format('{{tooltip|~/%s|%s}}', maxHp, U.ijoin(hps, ', '))
end
end
+
end
+
+
local function formatVoice(e)
+
return string.format('{{audio|file=Ship Voice %s Spring 2019 Event Friend Fleet %s.ogg}}', e.ship, e.voice)
end
end
Line 149:
Line 153:
if fleet.p2w and fleet.p2w > 0 then
if fleet.p2w and fleet.p2w > 0 then
fleetNote = fleetNote .. ", '''{{color|red|{{tooltip|Powerful|" .. fleet.p2w .. " samples}}}}'''"
fleetNote = fleetNote .. ", '''{{color|red|{{tooltip|Powerful|" .. fleet.p2w .. " samples}}}}'''"
+
end
+
if table.getn(fleet.voices) > 0 then
+
fleetNote = fleetNote .. ' ' .. U.ijoin(U.imap(fleet.voices[1], formatVoice))
end
end
table.insert(result, fleetNote)
table.insert(result, fleetNote)
がか
cssedit, gkautomate
7,060
edits