Template:X2i

維基詞典,自由的多語言詞典
跳到导航 跳到搜索
文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

This template, which should be substituted when used, allows users to type in XSAMPA characters and have them automatically converted to IPA. It should generally be used inside {{IPA}} or {{IPAchar}}. For example, the typed string

* {{IPA|/{{subst:x2i|"dIkS@nEr\i}}/|lang=en}}

automatically converts to

* {{IPA|/ˈdɪkʃənɛɹi/|lang=en}}

when the “Save page” button is clicked.

For an easier-to-use X-SAMPA-to-IPA conversion template, see {{X2IPA}}.