साँचा:IPAsym/doc
यह प्रलेखन उपपृष्ठ साँचा:IPAsym के लिए है। इसमें उपयोग विधि की जानकारी, श्रेणियाँ और वह वस्तुएँ हैं जो कि असली साँचा के पृष्ठ पर नही हैं। |
This template provides a simple conversion table from an IPA symbol to a Wikipedia article name.
The resulting article name should exist. The input symbol may be multiple characters, or may be a sequence of IPA-numbers.
Usage
संपादित करेंThis template has one parameter that is mandatory. The parameter can be an IPA symbol, or an IPA-number. Do not use template {{IPA}}
for the input character.
- {{IPAsym|m}} → bilabial nasal
- {{IPAsym|114}} → bilabial nasal
- {{IPAsym|ɡ͡b}} → voiced labial-velar plosive
Possible errors
संपादित करें- The first parameter is required:
- If the input argument does not exist in the IPAsym internal list, an error message is returned.
This may indicate that you have mistyped the input, or that the translation is not (yet) present in the IPAsym list. An editor can add the link.
- Using the
{{IPA}}
template will break the workings:
- Optionally, an error text can be altered from the default red error message to any text (including a blank) by using the second parameter:
{{IPAsym|pʰɪk}}
→ Error using {{IPAsym}}: IPA symbol "pʰɪk" not found in list{{IPAsym|pʰɪk|unknown}}
→ unknown (parameter 2 used){{IPAsym|pʰɪk||}}
→ (empty string)- Input position 3 overrules only the errormessage "no input", the other one will show unchanged.
{{IPAsym|||input to be checked}}
→ input to be checked (using input position #3)
Notes
संपादित करें- Its direct use is probably not too meaningful, but it can be useful inside other templates, e.g. {{IPAlink}}
Editing: extending this template
संपादित करेंRequested additions (changes) can be added at the top of this page. |
If you want to add a new symbol-to-phonetic-article mapping, you or a nother editor can add a new row to the table. Existing row can be an example.
Note: any symbol (that is, the single bunch of letters and diacritics) may only appear once in the template. Else you might get unexpected results.
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. For clarity, please make them "fall through" to the last case, like this:
| 424 | ɑ̃ | ɛ̃ | œ̃ | ɔ̃ = nasal vowel
Important note on changing names
Most of the current output names correspond with the default soundfile name for that IPA-symbol:
- bilabial nasal → साँचा:IPA audio filename/filename
If a name change away from e.g. this 'bilabial nasal' is needed, for example when the article has moved to another name, one should also add that change to ^^tlx>IPA audio filename}}, or change the name of the soundfile (source itself), using {{media rename}}
at the file Media:bilabial nasal.ogg. If this is omitted, the soundfile wil not be found any more, and a soundbutton is broken.
Technical notes
संपादित करेंJust statistics:
- 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).
See also
संपादित करें- {{IPAlink}} – Displays an IPA symbol which is automatically linked to its sound article: β → β
- {{IPAblink}} – As {{IPAlink}}, enclosed in square brackets: [β]
- {{IPAslink}} – As {{IPAlink}}, enclosed in slashes: /β/
- {{IPA soundbox}} - Create a box with an sound sample link to an IPA-symbol (sound)
- {{IPA audio filename}} - Produces the name of the soundfile
- {{infobox IPA}}, which uses the IPA-number here to provide the name of the corresponding article.