Template:Sound/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 15: Line 15:


==Examples==
==Examples==
{{Code|<nowiki>{{sound}}</nowiki>}}
{{Code|<nowiki>{{Sound}}</nowiki>}}
{{Doc/PreviewBlock|{{sound}}}}
{{Capsule|{{Sound}}}}




{{Code|<nowiki>{{sound|buttons/button1.wav}}</nowiki>}}
{{Code|<nowiki>{{Sound|buttons/button1.wav}}</nowiki>}}
{{Doc/PreviewBlock|{{sound|buttons/button1.wav}}}}
{{Capsule|{{Sound|buttons/button1.wav}}}}




{{Code|<nowiki>{{sound|src=hl2ep2|music/vlvx_song24.mp3}}</nowiki>}}
{{Code|<nowiki>{{Sound|src=hl2ep2|music/vlvx_song24.mp3}}</nowiki>}}
{{Doc/PreviewBlock|{{sound|src=hl2ep2|music/vlvx_song24.mp3}}}}
{{Capsule|{{Sound|src=hl2ep2|music/vlvx_song24.mp3}}}}




{{Code|<nowiki>{{sound|link=https://example.github.io/sound|buttons/button1.wav}}</nowiki>}}
{{Code|<nowiki>{{Sound|link=https://example.com/sound|buttons/button1.wav}}</nowiki>}}
{{Doc/PreviewBlock|{{sound|link=https://example.github.io/sound|buttons/button1.wav}}}}
{{Capsule|{{Sound|link=https://example.com/sound|buttons/button1.wav}}}}

Revision as of 09:48, 14 March 2023

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Edit-copy.png
This is a documentation subpage for Template:Sound.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

This template allows you to add a link to the sound located in the remote storage to the article.

Parameters

{{{1}}} - text that will be responsible for the end of the link and its name (file location and name with format).

{{{storage}}} - selection of available remote storage.

{{{src}}} - selecting a folder with the sounds of a specific game (if this sorting method is used in storage).

{{{link}}} - specifying a custom storage directly in the article (no slash at the end).

Available Storage

Examples

{{Sound}}

Sound not specified


{{Sound|buttons/button1.wav}}

buttons/button1.wav


{{Sound|src=hl2ep2|music/vlvx_song24.mp3}}

music/vlvx_song24.mp3


{{Sound|link=https://example.com/sound|buttons/button1.wav}}

buttons/button1.wav