Template:IPA symbol: Difference between revisions
extend |
extend |
||
Line 285: | Line 285: | ||
| 111 + 401 |
| 111 + 401 |
||
| qʼ = uvular ejective |
| qʼ = uvular ejective |
||
| 132 401 |
|||
| 132 + 401 |
|||
| 132 401 |
| 132 401 |
||
| 132 + 401 |
| 132 + 401 |
||
| sʼ = alveolar ejective fricative |
| sʼ = alveolar ejective fricative |
||
| 105 401 |
|||
| 105 + 401 |
|||
| ʈʼ = retroflex ejective |
| ʈʼ = retroflex ejective |
||
| 128 401 |
|||
| 128 + 401 |
|||
| fʼ = labiodental ejective fricative |
| fʼ = labiodental ejective fricative |
||
| 130 401 |
|||
| 130 + 401 |
|||
| θʼ = dental ejective fricative |
| θʼ = dental ejective fricative |
||
| 148 401 |
|||
| 148 + 401 |
|||
| ɬʼ = alveolar lateral ejective fricative |
| ɬʼ = alveolar lateral ejective fricative |
||
| 140 401 |
|||
| 140 + 401 |
|||
| xʼ = velar ejective fricative |
| xʼ = velar ejective fricative |
||
| 142 401 |
|||
| 142 + 401 |
|||
| χʼ = uvular ejective fricative |
| χʼ = uvular ejective fricative |
||
<!-- AFFRICATES --> |
<!-- AFFRICATES --> |
Revision as of 08:35, 17 September 2012
![]() | This template uses Lua: |
This template provides a simple conversion table from an IPA symbol to a Wikipedia article name. Its direct use is probably not too meaningful, but it can be useful inside other templates, e.g. {{IPA link}}. It is a meta-template.
The resulting article name should exist. The input symbol may be multiple characters.
Usage
This template has one parameter that is mandatory. The parameter must be an IPA symbol or a sequence of IPA symbols. A formatting template like {{IPA}} is not necessary.
{{IPA symbol|m}}
→ bilabial nasal{{IPA symbol|ɡ͡b}}
→ voiced labial-velar stop
Use output=
to specify the type of the output: "name", "symbol", "article", or "audio".
{{IPA symbol|t̪|output=name}}
→ voiceless dental stop{{IPA symbol|t̪|output=article}}
→ voiceless dental stop{{IPA symbol|t̪|output=audio}}
→ voiceless dental stop{{IPA symbol|w̥|output=symbol}}
→ Error using {{ IPAsym}}: IPA symbol "w̥" not found in list (returns the primarily defined symbol)
Certain symbols such as the tie bars, length marks, and dotted circle in the input are ignored so long as the rest of the input matches a definition, so that the below do not result in errors even though these individual combinations are not defined in the data.
{{IPA symbol|aː}}
→ open front unrounded vowel{{IPA symbol|◌ʰ}}
→ aspiration (phonetics)
If no direct match is found, the template will then look for the earliest instance of a diacritic in the input string.
{{IPA symbol|pʰ}}
→ aspiration (phonetics){{IPA symbol|pʰæ̃}}
→ Error using {{ IPAsym}}: IPA symbol "pʰæ̃" not found in list{{IPA symbol|pæ̃}}
→ Error using {{ IPAsym}}: IPA symbol "pæ̃" not found in list
A two-character diacritic takes precedence over a one-character one should they be found at the same position.
{{IPA symbol|ʰa}}
→ Error using {{ IPAsym}}: IPA symbol "ʰa" not found in list{{IPA symbol|ʰpa}}
→ Error using {{ IPAsym}}: IPA symbol "ʰpa" not found in list
Some symbols in the input are automatically replaced by the more suitable counterparts.
{{IPA symbol|’|output=symbol}}
(right single quotation mark) → Error using {{ IPAsym}}: IPA symbol "’" not found in list (modifier letter apostrophe)
Data
The data is stored at Module:IPA symbol/data. It is divided into two groups: "sounds" and "diacritics". If no "article" is specified, the value for "name" will substitute it. A diacritic must be one or two Unicode characters. The data also stores substitution patterns for the input string.
Errors
If the input matches no definition in the data, an error message is returned and the page will be categorized into Category:International Phonetic Alphabet pages needing attention.
{{IPA symbol|xyz}}
→ Error using {{ IPAsym}}: IPA symbol "xyz" not found in list
Optionally, an error text can be altered from the default message to any text by using the second parameter (if set to blank
, the message will not appear at all). This cancels the addition of the error category.
{{IPA symbol|xyz|unknown}}
→ unknown{{IPA symbol|xyz|blank}}
→ blank
See also
- {{IPA link}} – Displays an IPA symbol which is automatically linked to its sound article: β → β
- {{IPAblink}} – As {{IPA link}}, enclosed in square brackets: [β]
- {{IPAslink}} – As {{IPA link}}, enclosed in slashes: /β/
- Category:International Phonetic Alphabet pages needing attention
TemplateData
| ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
No description.
|