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 13:58, 18 December 2019
39 bytes added
,
5 years ago
no edit summary
Line 104:
Line 104:
local function formatVoice(e)
local function formatVoice(e)
−
if
type(e.voice) == 'number' and e.voice < 10
then
+
local file =
type(e.voice) == 'number' and e.voice < 10
and
−
return
string.format('
{{audio|file=
Ship Voice %s Spring 2019 Event Friend Fleet %s.ogg
}}
', e.ship, e.voice)
+
string.format('Ship Voice %s Spring 2019 Event Friend Fleet %s.ogg', e.ship, e.voice)
or
−
else
+
string.format('Ship Voice %s %s.ogg', e.ship, e.voice)
−
return
string.format('
{{audio|file=
Ship Voice %s %s.ogg
}}
', e.ship, e.voice)
+
return string.format('<span data-voice="%s">{{audio|file=%s}}</span>', file, file)
−
end
end
end
がか
cssedit, gkautomate
7,064
edits