此模板基于以下Lua模块编写:
本模板提供从国际音标符号到求闻百科条目名之间的转换。
所生成的条目名应该存在。本模板可输入多个字符,或者IPA的编号。
使用
本模板有一个强制使用的参数,须输入国际音标符号。不能使用模板链接:{{IPA}}
输入太多的文字。
{{IPAsym|m}}
→ 双唇鼻音{{IPAsym|ɡ͡b}}
→ 浊唇软颚塞音
可能的错误
- 必须输入第一个参数,否则会产生错误讯息:
模板链接:{{IPAsym|}}
→ Error using {{IPAsym}}: No input
- 输入方式不在模板中所列,会生成错误信息:
模板链接:{{IPAsym|xyz}}
→ Error using {{IPA symbol}}: "xyz" not found in list
这会说明您的输入有错,或者模板内置的列表不存在这个写法。编者可以附加链接。
- 使用
模板链接:{{IPA}}
会影响模板使用:
模板链接:{{IPAsym|{{IPA|p}}}}
→ Error using {{IPA symbol}}: "p" not found in list
- 另外,错误的文本可以由参数从默认的红色错误提醒替换成任意文字(包括空白):
模板链接:{{IPAsym|xyz}}
→ Error using {{IPA symbol}}: "xyz" not found in list模板链接:{{IPAsym|xyz|unknown}}
→ unknown模板链接:{{IPAsym|xyz|blank}}
→
出错的页面会列入分类:需要注意的国际音标页面。
输入测试
- Template:IPA symbol/check all测试所有现有的输出选项。不应包含红字。
- Template:IPA symbol/check audio显示与条目相关联的音频文件。
注意
- 直接使用本模板可能意义不大,但是可以用在其他模板之中,如模板链接:{{IPAlink}}。这是一个元模板。
扩充本模板
请前往Module:IPA symbol/data修订列表。
技术说明
- 以下是英语求闻百科的统计:
- As of November 2010, there are 566 lines (i.e. 566 recognised inputs). Of these, 181 are IPA numbers. The 566 inputs lead to 201 outputs (201 Wikipedia article names, that are also the phnonetic descriptions).
- As of October 2011, there are 726 lines (i.e. 726 recognised inputs). The 726 inputs lead to 249 outputs (249 Wikipedia article names, that are also the phnonetic descriptions).
- As of July 2012, after a cleanup, there are 940 input symbols recognised, into 277 Wikipedia aricle names.
- As of December 22, 2012 (before any cleanup), there are 1043 rows of input leading to 306 article names. No double names detected.
参见
- 模板链接:{{IPAlink}}——显示与之条目链接相对应的国际音标符号:β → β
- 模板链接:{{IPAblink}}——如同[[|]],并用方括号括起来:[β]
- 模板链接:{{IPAslink}}——如同[[|]],并用斜杠括起来:/β/
- 模板链接:{{IPA audio filename}}——生成对应的音频文件链接
- 分类:需要注意的国际音标页面