VOOZH about

URL: https://minecraft.wiki/w/Module:Sound

⇱ Module:Sound – Minecraft Wiki


Module:Sound

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]Jump to code ↴

This module implements {{Sound}}.

[view] [edit] [history] [purge]The above documentation is transcluded from Module:Sound/doc.
require('strict')
localp={}
localtemplate=
'<span class="sound">'..
'<span class="sound-title">%s</span>'..
'<span style="display:none">[[File:%s|class=sound-audio]]</span>'..
'</span>'
functionp.main(f)
localargs=f:getParent().args
localresult={}
localout=template
ifargs.nofallbackandargs.nofallback~=''then
out=out:gsub('display:none','')
end
table.insert(result,mw.ustring.format(out,mw.text.trim(args[1]or''),mw.text.trim(args[2]or'')))
fori,arginipairs(args)do
arg=mw.text.trim(argor'')
ifi>2andarg~=''then
table.insert(result,mw.ustring.format(template,'',arg))
end
end
returntable.concat(result)
end
returnp
Retrieved from "https://minecraft.wiki/w/Module:Sound?oldid=3199836"

Navigation menu