Template:SoundTable (BZ)/doc: Difference between revisions

From Subnautica Wiki
No edit summary
(Undo revision 72802 by AirOne01 (talk))
Line 1: Line 1:
This template creates a Sounds Table on which a fauna or flora's in-game sounds can be linked and named. It requires use of the <nowiki>{{SoundTable/Row}}</nowiki> template, which can be written as <nowiki>{{str}}</nowiki> to save time. Each <nowiki>{{str}}</nowiki> template represents one row of the table, and requires two parameters to be filled; the first is the name of the OGG file of the sound (not including .ogg) and the second is the name of the sound, which is up to the editor's discretion.
This template creates a Sounds Table on which a fauna or flora's in-game sounds can be linked and named. It requires use of the <nowiki>{{SoundTable/Row}}</nowiki> template, which can be written as <nowiki>{{str}}</nowiki> to save time. Each <nowiki>{{str}}</nowiki> template represents one row of the table, and requires two parameters to be filled; the first is the name of the OGG file of the sound (not including .ogg) and the second is the name of the sound, which is up to the editor's discretion.


==Example==
Ce modèle crée une table de sons sur laquelle les sons de faune ou de flore peuvent être liés et nommés. Il nécessite l'utilisation du modèle <nowiki>{{SoundTable/Row}}</nowiki>, qui peut être écrit <nowiki>{{str}}</nowiki> pour gagner du temps. Chaque modèle <nowiki>{{str}}</nowiki> représente une ligne du tableau et nécessite le remplissage de deux paramètres; le premier est le nom du fichier OGG du son (sans comprendre .ogg) et le second est le nom du son, qui dépends du choix de l'auteur.

==Exemple==
===HTML===
===HTML===
<pre><nowiki>
<pre><nowiki>
{{SoundTable|
{{SoundTable|
{{str|Sfx créature chelicéré mord 01|Mord}}
{{str|Sfx creature chelicerate bite 01|Bite}}
{{str|Sfx créature chelicéré rugit 01|Rugis}}
{{str|Sfx creature chelicerate roar 01|Roar}}
}}</nowiki></pre>
}}</nowiki></pre>


===Résultat===
===Output===
{{SoundTable|
{{SoundTable|
{{str|Sfx créature chelicéré mord 01|Mord}}
{{str|Sfx creature chelicerate bite 01|Bite}}
{{str|Sfx créature chelicéré rugit 01|Rugis}}
{{str|Sfx creature chelicerate roar 01|Roar}}
}}
}}

Revision as of 19:10, 27 December 2020

This template creates a Sounds Table on which a fauna or flora's in-game sounds can be linked and named. It requires use of the {{SoundTable/Row}} template, which can be written as {{str}} to save time. Each {{str}} template represents one row of the table, and requires two parameters to be filled; the first is the name of the OGG file of the sound (not including .ogg) and the second is the name of the sound, which is up to the editor's discretion.

Example

HTML

{{SoundTable|
{{str|Sfx creature chelicerate bite 01|Bite}}
{{str|Sfx creature chelicerate roar 01|Roar}}
}}

Output