Terraria Wiki
Registrieren
Advertisement
Terraria Wiki
Diese Vorlage ist synchronisiert-lokalisiert, d. h. sie ist mit der Version des englischen Terraria Wikis identisch. Änderungen an dieser Vorlage sollten zunächst dort vorgenommen werden.
Siehe Vorlage:Sound/l10n für die Lokalisierung dieser Vorlage.
Template-info Dokumentation Die folgende Dokumentation stammt von der Seite Vorlage:Sound/Dokumentation. (bearbeiten | Versionsgeschichte)
Siehe auch die englische Vorlagenseite: Template:Sound. Sie enthält möglicherweise umfassendere oder aktuellere Informationen.
Important Diese Seite ist nicht oder unvollständig übersetzt.
Hilf mit, indem du den Text übersetzt und anschließend diesen Hinweis entfernst. Dies entfernt diese Seite auch aus der Liste von Seiten mit unzureichender Übersetzung.

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 script and styles are provided by the sound gadget (MediaWiki:Gadget-sound.js, MediaWiki:Gadget-sound.css, MediaWiki:Gadget-sound-styles.css).

The template was ported from the Minecraft Wiki.

Usage[]

{{ sound | <description> | <audio file> | nofallback = 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:.

nofallback

Hides the fallback audio player, so the sound can only be played if JavaScript and the sound gadget are 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 who disabled the sound gadget.

Examples[]

Disable the sound gadget to see how the fallback looks.

Basic:
{{sound|Play my mixtape 🔥|Music-Overworld Day.mp3}}

Play my mixtape 🔥


Inline with a link instead of a fallback player:
The {{sound|[[Media:Roar_0.wav|characteristic roar]]|Roar_0.wav|nofallback=y}} announces the spawn of a [[boss]].

The characteristic roar announces the spawn of a boss.

Advertisement