Template:IPA symbol/doc
This is a documentation subpage for Template:IPA symbol. It may contain usage information, categories and other content that is not part of the original template page. |
This template provides a simple conversion table from IPA symbols (which may consist of one or more characters) to Wikipedia article names for the corresponding sound.
Its direct use is probably not too meaningful, but it can be useful inside other templates, e.g. {{IPAlink}}.
Usage
This template has one parameter which is numbered and mandatory. The parameter can be an IPA symbol, or an IPA-number. If the argument does not exist in the table, then by default Error using {{IPA symbol}}: "this is definitely not in the table" not found in list is returned (but please note that a change to this is under discussion).
- {{IPAsym|m}} → Voiced bilabial nasal
- {{IPAsym|114}} → Error using {{IPA symbol}}: "114" not found in list
- {{IPAsym|ɡ͡b}} → Voiced labial–velar plosive
- {{IPAsym|pʰɪk}} → Aspirated consonant
The latter is normally more an example of accidental misuse than intentional use, or it could be a sign that a symbol is missing from this table.
Optionally, when the input characters are unknown, the returned text can be altered from "IPA" by using the second parameter:
- {{IPAsym|pʰɪk}} → Aspirated consonant (regular, default)
- {{IPAsym|pʰɪk|unknown}} → Aspirated consonant (parameter 2 used)
- {{IPAsym|pʰɪk|}} → Aspirated consonant (empty string)
Extending this template
If you want to add a new symbol-to-sound mapping, simply add a new row in the table, using the existing rows as examples.
It is possible to map more than one symbol to the same sound. IPA-numbers for the symbol should be added in the same fashion. To avoid duplication, please make them "fall through" to the last case, like this:
... | 424 | ɑ̃ | ɛ̃ | œ̃ | ɔ̃ = nasal vowel ...
See also
- {{IPAlink}} – Displays an IPA symbol which is automatically linked to its sound article: β
- {{IPAblink}} – As {{IPAlink}}, enclosed in square brackets: [β]
- {{infobox IPA}}, which uses the IPA-number here to provide the (linked) name of the corresponding article.