සැකිල්ල:IPAsym/documentation
This template provides a simple conversion table from an IPA symbol (which may consist of multiple characters) to a Wikipedia article name for the corresponding sound.
Usage
[සංස්කරණය]This template has a parameter that is mandatory. The parameter can be an IPA symbol, or an IPA-number. If the argument does not exist in the table, then an error message is returned.
- {{IPAsym|m}} → bilabial nasal
- {{IPAsym|114}} → bilabial nasal
- {{IPAsym|ɡ͡b}} → voiced labial-velar plosive
- {{IPAsym|pʰɪk}} → Template:IPAsym - Error: Entry "pʰɪk" not found
The latter is normally more an example of accidental misuse than intentional use, or it could be a message that the symbol is not (yet) in this table.
- Optionally, when the input characters are unknown, the returned text can be altered from the default by using the second parameter:
- {{IPAsym|pʰɪk}} → Template:IPAsym - Error: Entry "pʰɪk" not found
- {{IPAsym|pʰɪk|unknown}} → unknown (parameter 2 used)
- {{IPAsym|pʰɪk|}} → (empty string)
Notes
[සංස්කරණය]- Its direct use is probably not too meaningful, but it can be useful inside other templates, e.g.
{{IPAlink}}
.
- One might expect a template-name here like "IPAarticle", since usually the output is significant to the template used.
Editing: extending this template
[සංස්කරණය]If you want to add a new symbol-to-soundarticle 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
[සංස්කරණය]