Шаблон:Звук

Матеріал з Terraria Wiki
Перейти до навігації Перейти до пошуку
Цей шаблон i18n-ready, що означає, що його легко локалізувати для різних мов. Будь ласка, ознайомтеся з i18n та l10n для шаблонів, щоб дізнатися більше.
Див. «Шаблон:Звук/l10n» для локалізації цього шаблону.
Template-info.svg Документація Наведена нижче документація запозичена з «Шаблон:Звук/doc». (редагувати | історія)
Для більш повної чи актуальної інформації ви можете переглянути документацію англійською.

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)}}

Підземелля Загнивання Підземелля Загнивання (Otherworld)