IcyPhantom(留言 | 贡献) 无编辑摘要 |
RealCuervo(留言 | 贡献) (重新起用,但暂时不显示后三列,也未使用lua模块) |
||
第1行: | 第1行: | ||
+ | <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><!-- |
||
− | <includeonly><div class="error">本Wiki尚未启用{{tl|Sound table}},请使用页面对应的Infobox模板的{{p|sound}}参数。</div>[[分类:使用未启用模板的页面]]</includeonly><noinclude>{{Documentation}}</noinclude> |
||
+ | -->{{#if: {{#var: dungeons|}} |<th>|<th>}}音效</th><!-- |
||
+ | -->{{#if: {{#var: bedrockordungeons|}} ||<th>[[字幕]]</th>}}<!-- |
||
+ | -->{{#if: {{#var: bedrockordungeons|}} ||<th>{{tooltip|分类|此音效所属的分类,由音乐与音效菜单中对应的滑条控制}}</th>}}<!-- |
||
+ | -->{{#if: {{#var: dungeons|}} |<th>|<th>}}{{tooltip|描述|游戏呼叫此声音事件的情况}}</th><!-- |
||
+ | -->{{#if: {{#var: dungeons|}} |<th>|<th>}}{{#if: {{#var: dungeons|}} |文件|[[命名空间ID]]}}</th><!-- |
||
+ | -->{{#if: {{#var: bedrockordungeons|}} ||<th>翻译关键字</th>}}<!-- |
||
+ | {{#if: {{#var: dungeons|}} ||<th>Volume</th>}} |
||
+ | {{#if: {{#var: dungeons|}} ||<th>Pitch</th>}} |
||
+ | {{#if: {{#var: bedrockordungeons|}} ||<th>Attenuation<br>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:音效缺失的页面]]}} }} }}</td><!-- |
||
+ | -->{{#if: {{#var: bedrockordungeons|}} ||<td>{{#ifeq: {{{sound|}}} | - | 无<ref group="音效" name="emptyevent">空事件不具有此参数。</ref> | {{#ifeq: {{{subtitle|}}} | - | 无<ref group="音效" 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 MC-91042]</ref> | {{#ifeq: {{{translationkey|}}} | - | 无{{#tag: ref|{{bug|{{{subtitle}}}}}|group="音效"|name="bug{{{subtitle}}}"}} | {{{subtitle|?{{#ifeq: {{#var: nocat | 0 }} | 1 || [[Category:音效缺失字幕的页面]]}} }}} }} }} }}</td>}}<!-- |
||
+ | -->{{#if: {{#var: bedrockordungeons|}} ||<td>{{{source|?{{#ifeq: {{#var: nocat | 0 }} | 1 || [[Category:音效缺失来源的页面]]}} }}}</td>}}<!-- |
||
+ | --><td>{{{description|?{{#ifeq: {{#var: nocat | 0 }} | 1 || [[Category:音效缺失描述的页面]]}} }}}</td><!-- |
||
+ | --><td>{{#if: {{{id|}}} | {{nowrap|{{code|{{{id|}}}}}}} | ?{{#ifeq: {{#var: nocat | 0 }} | 1 || [[Category:音效缺失ID的页面]]}} }}</td><!-- |
||
+ | -->{{#if: {{#var: bedrockordungeons|}} ||<td>{{#ifeq: {{{sound|}}} | - | 无<ref group="音效" name="emptyevent">空事件不具有此参数。</ref> | {{#ifeq: {{{subtitle|}}} | - | 无<ref group="音效" 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 MC-91042]</ref> | {{#ifeq: {{{translationkey|}}} | - | 无{{#tag: ref|{{bug|{{{subtitle}}}}}|group="音效"|name="bug{{{subtitle}}}"}} | {{#if: {{{translationkey|}}} | {{code|{{{translationkey}}}}} | ?{{#ifeq: {{#var: nocat | 0 }} | 1 || [[Category:音效缺失翻译关键字的页面]]}} }} }} }} }}</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|音效}}}}</includeonly><noinclude>{{documentation}}</noinclude> |
2020年11月26日 (四) 09:23的版本
自动生成音效表格的模板。
Java版的表格:
音效 | 字幕 | 分类 | 描述 | 命名空间ID | 翻译关键字 |
---|---|---|---|---|---|
? | ? | ? | ? | ? | ? |
基岩版的表格:
音效 | 描述 | 命名空间ID |
---|---|---|
? | ? | ? |
音效 | 描述 | 文件 |
---|---|---|
? | ? | ? |
参数
参数 | 功能 |
---|---|
type |
bedrock (基岩版)或dungeons (Minecraft Dungeons)。指定后,可以插入用于基岩版或Minecraft Dungeons的音效表格,样式可见上方给出的样例。此参数必须在首次调用中指定才有效,且无需在后续调用中指定。
|
nocat |
不将音效表格列入相关分类中。此参数必须在首次调用中指定才有效,且无需在后续调用中指定。 |
sound |
音效,没有时填入“-”。 |
sound2 -sound50 |
额外音效。 |
subtitle |
字幕,没有时填入“-”。 |
source |
此音效所属的类型,由音乐与音效菜单中对应的滑条控制。应为下列内容之一:
|
description |
何时游戏会调用此声音事件。 |
id |
音效命名空间ID(针对Java版与基岩版)或音效文件(针对Minecraft Dungeons)(自动添加代码格式)。 |
typeid |
此音效所属的系统音效事件类型ID(基岩版独有)。 |
soundstream |
此音效是否流式播放(基岩版独有)。 |
soundpreload |
此音效是否预载(基岩版独有)。 |
sounddelay |
播放延时(基岩版独有,默认0),需要在音效表第一行使用usedelay=1 参数以启用该列。
|
translationkey |
字幕的本地化键名(自动添加代码格式),没有时填入“-”。 |
soundvolume |
音效音量(默认1.0)。 |
soundpitch |
音效音高(默认1.0)。 |
sounddistance |
衰减距离(默认16)。 |
foot |
插入表尾,永远应在创建的表格最后一次调用模板时定义。 |