For faster navigation, this Iframe is preloading the Wikiwand page for Template:IPA audio filename.

Template:IPA audio filename

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

本模板生成IPA录音的文件名。这取决于所输入的符号。例如:((IPA audio filename|m))Bilabial nasal.ogg。本模板还可以输入非默认的音频文件名,因此可以用非默认的音频文件播放。另外本模板还可以检测是否存在对应的文件,错误提示可替换成文本或者空白。

用法

[编辑]

全部参数如下:

((IPA audio filename
| ipa symbol =
| soundfile  =
| checkexist =
| errortext  =
))
匿名参数1ipa symbol= 这个参数可以输入国际音标符号。这个符号可以对应相应的音频文件名(使用 ((IPA symbol)) 中的列表)。若不用此参数应用参数 soundfile=
((IPA audio filename|ʒ))Voiced palato-alveolar sibilant.ogg
soundfile='(可选,默认为none)本参数允许输入任意文件名。可以替换参数1生成的结果。这参数可用于输入 ((IPA symbol)) 里面不存在的文件名。
((IPA audio filename|ʒ|soundfile=Accordian chords-01.ogg))Accordian chords-01.ogg
checkexist=(可选,默认为no)输入 yes 或 no 即可。输入 yes 就能测试文件是否存在,若不存在就会出错误提示。
((IPA audio filename|n̪|checkexist=yes))文件“dental nasal.ogg”不存在
errortext=(可选,默认为none)提示错误的文本在此可以替换成任何提示文字。若没有错误就不会使用此参数。错误提示可以留空,像是 ((IPA audio filename|m|errortext=))
((IPA audio filename|abc|errortext=文件名有问题))文件名有问题

可能存在的错误

[编辑]

三种出错的情况包括:

  • 没有输入国际音标符号:
((IPA audio filename))
  • 国际音标符号在 ((IPA symbol)) 里面不存在:
((IPA audio filename|abc))Error using ((IPA symbol)): "abc" not found in list
  • Checkexist=yes 已输入,而且文件名不存在:
((IPA audio filename|ⱱ̟|checkexist=yes))文件“”不存在

这些错误的输出可以用 errortext= 替换。这个参数可以为空白。这只对输出有影响,而不是替换已经出现的错误。

问题

[编辑]
  • Todo: 本模板须要输入|ipa symbol=...替换当前匿名参数1。

使用的子模板

参见

[编辑]
{{bottomLinkPreText}} {{bottomLinkText}}
Template:IPA audio filename
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?