틀:Sound/doc
< 틀:Sound
둘러보기로 이동
검색으로 이동
This template is used to provide a button to play a sound effect, with a HTML audio player as a fallback if JavaScript is disabled. This is intended primarily for short sound effects, as there is no seeking ability.
The template was ported from the Minecraft Wiki.
Usage
{{ sound | <description> | <audio file> | iconfirst = y (optional) }}
- First unnamed parameter
Displayed wikitext. A speaker icon is displayed next to it indicating the playing status. Clicking the text (if not a link) or icon will stop any other sounds, and start/stop this sound.
- Second unnamed parameter
Name of the audio file, without [[File:
.
- iconfirst
Display speaker icon before description text.
Examples
- Basic:
{{sound|Play my mixtape 🔥|Music-Overworld Day.mp3}}
Play my mixtape 🔥
- Icon first:
The {{sound|[[Media:Roar_0.wav|characteristic roar]]|Roar_0.wav|iconfirst=y}} announces the spawn of a [[boss]].
The characteristic roar announces the spawn of a boss.
- "Auto" mode:
{{sound|track=Underground Corruption}} {{sound|track=Underground Corruption (Otherworldly)}}
Underground Corruption Underground Corruption (Otherworldly)
분류:
- Pages using DynamicPageList3 dplvar parser function
- Template documentation