Minecraft Wiki

Fandom의 이 Minecraft 위키(모든 언어판)는 더 이상 공식 위키가 아닙니다. 자세한 사항은 이곳을 참조해 주시기 바랍니다.

현재 위키 개선 프로젝트가 진행중입니다! 해당 문서를 통하여 자세한 정보를 확인해보세요!

새로 오신 분들은 길라잡이위키 규칙을 꼭 읽어주세요.

문서 작성번역을 도와주시면 이 위키에 큰 힘이 됩니다.


Minecraft Wiki
BSkyWcloud (토론 | 기여)
(새 문서: <span class="sound"><span class="sound-title">{{{1}}}</span>{{#if: {{{nofallback|}}} | <span style="display:none"> }}[[File:{{{2}}}|class=sound-audio]]{{#if: {{{nofallback|}}} | </spa...)
BSkyWcloud (토론 | 기여)
1번째 줄: 1번째 줄:
<span class="sound"><span class="sound-title">{{{1}}}</span>{{#if: {{{nofallback|}}} | <span style="display:none"> }}[[File:{{{2}}}|class=sound-audio]]{{#if: {{{nofallback|}}} | </span> }}</span><noinclude>
<span class="sound"><span class="sound-title">{{{1}}}</span>{{#if: {{{nofallback|}}} | <span style="display:none"> }}[[File:{{{2}}}|class=sound-audio]]{{#if: {{{nofallback|}}} | </span> }}</span><!--
-->{{#vardefine: i | 3 }}{{#while:
| {{{ {{#var: i}} |}}}
| <span class="sound"><span class="sound-title"></span><span style="display:none">[[File:{{{ {{#var: i}} }}}|class=sound-audio]]</span></span><!--
-->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}
<!-- Put categories/interwiki on the documentation page -->
<!-- Put categories/interwiki on the documentation page -->

2019년 5월 26일 (일) 13:39 판


[보기 | 편집 | 역사 | 캐시 제거]설명문서

This template is used to provide a button to play a sound effect, with a HTML audio player as a fallback if JS is disabled. This is intended primarily for short sound effects, as there is no seeking ability.

The script and styles are provided by the sound gadget (MediaWiki:Gadget-sound.js, MediaWiki:Gadget-sound.css, MediaWiki:Gadget-sound-styles.css), with a fallback style in the site gadget (MediaWiki:Gadget-site-styles.css).


  • {{{1}}} is the 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.
  • {{{2}}} is the name of the audio file to play.
  • {{{3}}}, {{{4}}} and additional unnamed parameters specify additional audio files and display additional speaker icons. The fallback audio player will not show for these additional files, in order to prevent infoboxes from becoming very long if JS or the sound gadget is disabled.
  • {{{nofallback}}} hides the fallback audio player, so the sound can only be played if JS and the sound gadget is enabled. This is good for placing the sound button inline with text, as the fallback audio player is not inline, and would otherwise be too big to include within a sentence. In this case, you should set the displayed text to be a link to the file so it can still be played by no-js users and users which disabled the sound gadget.


(Disable the sound gadget to see how the fallback looks)

{{sound|Play my mixtape 🔥|Calm4.ogg}}

Play my mixtape 🔥

Inline with a link instead of a fallback player
{{sound|'''[[Media:HerobrinePronunciation.ogg|Herobrine]]'''|HerobrinePronunciation.ogg|nofallback=1}} is the subject of a community-made [[wikipedia:Creepypasta|creepypasta]].

Herobrine is the subject of a community-made creepypasta.

In an infobox
* {{sound|'''Idle'''|Villager1.ogg|Villager idle2.ogg|Villager idle3.ogg}}
* {{sound|'''Hurt'''|Villagerhurt1.ogg|Villager hurt2.ogg|Villager hurt3.ogg|Villager hurt4.ogg}}
* {{sound|'''Die'''|Villagerdead.ogg}} 
* {{sound|'''Trading'''|Villagertrade1.ogg|Villagertrade2.ogg|Villagertrade3.ogg}}
* {{sound|'''Trading complete'''|Villageraccept1.ogg|Villager accept2.ogg}}
* {{sound|'''Trading denied'''|Villagerdeny1.ogg|Villagerdeny2.ogg}}
[보기 | 편집 | 역사 | 캐시 제거]위 설명문서는 틀:Sound/doc에서 왔습니다.