साँचा:IPAsym/doc

मुक्त ज्ञानकोश विकिपीडिया से
< साँचा:IPAsym
imported>Kutchkutch द्वारा परिवर्तित ०३:१७, ३ अक्टूबर २०११ का अवतरण (नया पृष्ठ: {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> {{SpecialChars}} This template provides a simple conversion table from a...)
(अन्तर) ← पुराना अवतरण | वर्तमान अवतरण (अन्तर) | नया अवतरण → (अन्तर)
नेविगेशन पर जाएँ खोज पर जाएँ

{{

 साँचा:namespace detect

| type = notice | image = | imageright = | class = | style = margin-bottom:1.0em; | textstyle = | text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }}

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 साँचा:tlx 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:
साँचा:tlxसाँचा:error
  • If the input argument does not exist in the IPAsym internal list, an error message is returned.
साँचा:tlxसाँचा:error

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.

साँचा:tlxसाँचा:error
  • Optionally, an error text can be altered from the default red error message to any text (including a blank) by using the second parameter:
साँचा:tlxसाँचा:error
साँचा:tlx → unknown (parameter 2 used)
साँचा:tlx → (empty string)
Input position 3 overrules only the errormessage "no input", the other one will show unchanged.
साँचा:tlx → 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. साँचा:tl

Editing: extending this template

साँचा:ambox 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:

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 साँचा:tlx 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

साँचा:navbox