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

From Subnautica Wiki
m (Zone of Endless moved page Template:SoundTable/doc (BZ) to Template:SoundTable (BZ)/doc without leaving a redirect: Fixing subpage name to match parent page rename)
m (6 revisions imported: importing from Below Zero wiki)
 
(One intermediate revision by the same user not shown)
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 (BZ)/Row}}</nowiki> template, which can be written as <nowiki>{{str (BZ)}}</nowiki> to save time. Each <nowiki>{{str (BZ)}}</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==
==Example==
===HTML===
===HTML===
<pre><nowiki>
<pre><nowiki>
{{SoundTable|
{{SoundTable (BZ)|
{{str|Sfx creature chelicerate bite 01|Bite}}
{{str (BZ)|Sfx creature chelicerate bite 01|Bite}}
{{str|Sfx creature chelicerate roar 01|Roar}}
{{str (BZ)|Sfx creature chelicerate roar 01|Roar}}
}}</nowiki></pre>
}}</nowiki></pre>


===Output===
===Output===
{{SoundTable|
{{SoundTable (BZ)|
{{str|Sfx creature chelicerate bite 01|Bite}}
{{str (BZ)|Sfx creature chelicerate bite 01|Bite}}
{{str|Sfx creature chelicerate roar 01|Roar}}
{{str (BZ)|Sfx creature chelicerate roar 01|Roar}}
}}
}}

Latest revision as of 13:50, 6 August 2021

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 (BZ)/Row}} template, which can be written as {{str (BZ)}} to save time. Each {{str (BZ)}} 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 (BZ)|
{{str (BZ)|Sfx creature chelicerate bite 01|Bite}}
{{str (BZ)|Sfx creature chelicerate roar 01|Roar}}
}}

Output