(removed deprecated arguments) |
(Updated to use module, please report any problems to me) Tag: Replaced |
||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | <includeonly>{{#invoke: Sound table | table }}</includeonly><noinclude>{{Documentation}}</noinclude> |
||
− | <includeonly>{{#ifeq: {{#var: soundstable | 0 }} | 1 || {{#vardefine: soundstable | 1 }}{{#ifeq: {{{nocat|}}} || |{{#vardefine: nocat | 1 }}}}{{#ifeq: {{{bedrock|}}} || |{{#vardefine: bedrock | 1 }}{{#vardefine: bedrockordungeons | 1 }}}}{{#ifeq: {{{dungeons|}}} || |{{#vardefine: dungeons | 1 }}{{#vardefine: bedrockordungeons | 1 }}}}<table class="wikitable"><tr><!-- |
||
− | --><th>Sound</th><!-- |
||
− | -->{{#if: {{#var: bedrockordungeons|}} ||<th>[[Subtitle]]</th>}}<!-- |
||
− | -->{{#if: {{#var: bedrockordungeons|}} ||<th>{{abbr|Source|The category this sound falls into; what volume slider controls this sound in the Music and Sounds menu.}}</th>}}<!-- |
||
− | --><th>Description</th><!-- |
||
− | --><th>{{#if: {{#var: dungeons|}} |File|[[Namespaced ID]]}}</th><!-- |
||
− | -->{{#if: {{#var: bedrockordungeons|}} ||<th>Translation key</th>}}<!-- |
||
− | -->{{#if: {{#var: dungeons|}} ||<th>Volume</th>}}<!-- |
||
− | -->{{#if: {{#var: dungeons|}} ||<th>Pitch</th>}}<!-- |
||
− | -->{{#if: {{#var: bedrockordungeons|}} ||<th>Attenuation distance</th>}}<!-- |
||
− | --></tr>}}<tr><!-- |
||
− | --><td>{{#ifeq: {{{sound|}}} | - | - | {{#if: {{{sound|}}} | {{Sound||{{{sound}}}|{{{sound2|}}}|{{{sound3|}}}|{{{sound4|}}}|{{{sound5|}}}|{{{sound6|}}}|{{{sound7|}}}|{{{sound8|}}}|{{{sound9|}}}|{{{sound10|}}}|{{{sound11|}}}|{{{sound12|}}}|{{{sound13|}}}|{{{sound14|}}}|{{{sound15|}}}|{{{sound16|}}}|{{{sound17|}}}|{{{sound18|}}}|{{{sound19|}}}|{{{sound20|}}}}} | ?{{#ifeq: {{#var: nocat | 0 }} | 1 || [[Category:Pages missing sounds]]}} }} }}</td><!-- |
||
− | -->{{#if: {{#var: bedrockordungeons|}} ||<td>{{#ifeq: {{{sound|{{{1|}}}}}} | - | ''None''<ref group="sound" name="emptyevent">Empty events have no subtitle.</ref> | {{#ifeq: {{{subtitle|}}} | - | ''None''<ref group="sound" name="nosubtitle">[https://bugs.mojang.com/browse/MC-91042?jql=text%20~%20%22sound%20missing%22%20and%20resolution%20not%20in%20(%22Fixed%22%2C%20%22Cannot%20Reproduce%22%2C%20Duplicate%2C%20Invalid)%20and%20project%20%3D%20%22Minecraft%3A%20Java%20Edition%22 Reports on Mojira].</ref> | {{{subtitle|?{{#ifeq: {{#var: nocat | 0 }} | 1 || [[Category:Pages missing subtitles]]}} }}} }} }}</td>}}<!-- |
||
− | -->{{#if: {{#var: bedrockordungeons|}} ||<td>{{{source|?{{#ifeq: {{#var: nocat | 0 }} | 1 || [[Category:Pages missing sound source]]}} }}}</td>}}<!-- |
||
− | --><td>{{{description|?{{#ifeq: {{#var: nocat | 0 }} | 1 || [[Category:Pages missing sound description]]}} }}}</td><!-- |
||
− | --><td>{{#if: {{{id|}}} | {{code|{{{id|}}}}} | ?{{#ifeq: {{#var: nocat | 0 }} | 1 || [[Category:Pages missing sound ID]]}} }}</td><!-- |
||
− | -->{{#if: {{#var: bedrockordungeons|}} ||<td>{{#ifeq: {{{sound|}}} | - | ''None''<ref group="sound" name="emptyevent">Empty events have no subtitle.</ref> | {{#ifeq: {{{subtitle|}}} | - | ''None''<ref group="sound" name="nosubtitle">[https://bugs.mojang.com/browse/MC-91042?jql=text%20~%20%22sound%20missing%22%20and%20resolution%20not%20in%20(%22Fixed%22%2C%20%22Cannot%20Reproduce%22%2C%20Duplicate%2C%20Invalid)%20and%20project%20%3D%20%22Minecraft%3A%20Java%20Edition%22 Reports on Mojira].</ref> | {{#ifeq: {{{translationkey|}}} | - | {{{subtitle|}}} | {{#if: {{{translationkey|}}} | {{code|{{{translationkey}}}}} |?{{#ifeq: {{#var: nocat | 0 }} | 1 || [[Category:Pages missing subtitle key]]}} }} }} }} }}</td>}}<!-- |
||
− | -->{{#if: {{#var: dungeons|}} ||<td>{{{volume|?{{#ifeq: {{#var: nocat | 0 }} | 1 || [[Category:Pages missing sound volume]]}} }}}</td>}}<!-- |
||
− | -->{{#if: {{#var: dungeons|}} ||<td>{{{pitch|?{{#ifeq: {{#var: nocat | 0 }} | 1 || [[Category:Pages missing sound pitch]]}} }}}</td>}}<!-- |
||
− | -->{{#if: {{#var: bedrockordungeons|}} ||<td>{{{distance|?{{#ifeq: {{#var: nocat | 0 }} | 1 || [[Category:Pages missing sound attenuation distance]]}} }}}</td>}}<!-- |
||
− | --></tr>{{#if: {{{foot|}}} | {{#vardefine: soundstable|}}{{#vardefine: nocat|}}{{#vardefine: bedrock|}}{{#vardefine: dungeons|}}{{#vardefine: bedrockordungeons|}}</table>{{notelist|sound}}}}</includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 21:51, 5 October 2020
A template that automatically generates a table for sounds.
Java Edition table:
Sound | Subtitles | Source | Description | Resource location | Translation key | Volume | Pitch | Attenuation distance |
---|---|---|---|---|---|---|---|---|
? | ? | ? | ? | ? | ? | ? | ? | ? |
Historical table:
Sound | Source | Description | Resource location | Volume | Pitch | Attenuation distance |
---|---|---|---|---|---|---|
? | ? | ? | ? | ? | ? | ? |
Bedrock Edition table:
Sound | Source | Description | Resource location | Volume | Pitch |
---|---|---|---|---|---|
? | ? | ? | ? | ? | ? |
Minecraft Dungeons and Minecraft Legends table:
Sound | Description |
---|---|
? | ? |
Arguments
Parameter | Function |
---|---|
type |
bedrock , dungeons , legends or historical . Inserting a table with a type parameter, see above for corresponding output, if defined has to be defined in the first call (no need to define it on consecutive calls).
|
forcecollapsed |
Forces the table to begin collapsed. If defined, it must be defined in the first call (no need to define it on consecutive calls). |
nocat |
Stops table from inserting categories, if defined has to be defined in the first call (no need to define it on consecutive calls). |
sound |
The sound, set to "-" if none in this event. |
sound2 - sound20 |
Additional sounds. |
rowspan |
How many rows the Sound column for this row should take up. |
subtitle |
The subtitle, set to "-" if none in this event. |
source |
The sound category (slider in the sounds menu). Should be one of the following:
"Sound" is exclusive to Bedrock Edition and historical Java Edition versions. "Entity-Dependent" is for entities that play sounds, such as footsteps, using their own sound sources. "None" is exclusive to unused sound events. |
overridesource |
Set to any value for the source to use what is given to the template, rather than one of the values above.
|
description |
When the sound plays. |
id |
The sound event/resource location (code formatting automatically added). Do not add anything other than the id here; that goes in idnote .
|
idnote |
Text, such as a reference, to be added after the id, without code formatting. |
translationkey |
The subtitle key/translation key (code formatting automatically added), set to "-" if none in this event. Do not add anything other than the translation key here; that goes in translationkeynote .
|
translationkeynote |
Text, such as a reference, to be added after the translation key, without code formatting. |
volume |
The volume the game plays this sound event at. |
pitch |
The pitch the game plays this sound event at. |
distance |
The attenuation distance the game plays this sound event at. |
foot |
Inserting the table end, always has to be defined in the last call. |
Predefined tables
[view | edit | history | purge]The above documentation is transcluded from Template:Sound table/doc.