Template:IPAc-en
| Uses Lua: |
Note: Per WP:LEAD, do not use this template in the lead section for common English words (like pub, rose, pencil, bus, Monday, Earth, etc.).
This template is used to display English International Phonetic Alphabet (IPA). The pronunciation is broken into individual diaphonemes so that they will have tooltips (mouse-over text) to indicate pronunciation. All diaphonemes from IPA for English are available. For anything outside that set, a different template should be used.
The initial arguments can be used to indicate a pronunciation prescript (eg, English pronunciation:). The available pronunciation codes are:
| Code | Aliases | Output |
|---|---|---|
lang |
english |
English |
pron |
pronunciation |
pronunciation: |
local |
local | |
ipa |
IPA | |
aus |
AU | |
ca |
CA | |
ie |
IE | |
nz |
NZ | |
uk |
UK | |
us |
US | |
za |
ZA |
The first argument that is not a pronunciation code will be treated as a diaphoneme. See the collapsed table below for a full list of diaphoneme codes. As well as diaphonemes, there are some separator codes as well. For example, you can use a keyboard underscore _ for a space between words. Diaphonemes are underlined, but separators are not, and separators do not have any tooltip text.
| Phoneme codes | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
The named parameter |audio= may be used to link to an audio file.
Examples
{{IPAc-en|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}→ /ˌæləˈbæmə/{{IPAc-en|pron|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}→ pronunciation: /ˌæləˈbæmə/{{IPAc-en|audio=en-us-Alabama.ogg|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}→
i/ˌæləˈbæmə/{{IPAc-en|US|pron|audio=en-us-Alabama.ogg|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}→ US pronunciation:
i/ˌæləˈbæmə/
Examples using SAMPA spelling for individual diaphonemes:
{{IPAc-en|,|&|l|@|'|b|&|m|@}}→ /ˌæləˈbæmə/{{IPAc-en|lang|pron|audio=en-us-Alabama.ogg|,|&|l|@|'|b|&|m|@}}→ English pronunciation:
i/ˌæləˈbæmə/
If [[unsupported input]] is displayed, it means that an unsupported input was used. Such instances are tallied at Category:Ill-formatted IPAc-en transclusions, where they can be reviewed and fixed.
Behaviour changes from {{IPA-en}}
The default behaviour has changed to no prescript.
{{IPA-en|ˌæləˈbæmə}}→ English pronunciation: /ˌæləˈbæmə/{{IPAc-en|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}→ /ˌæləˈbæmə/
It can be simulated (reinstated) using the flags "lang" & "pron".
{{IPAc-en|lang|pron|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}→ English pronunciation: /ˌæləˈbæmə/
Audio files are specifically called:
{{IPA-en|ˌæləˈbæmə|-|en-us-Alabama.ogg}}→ English pronunciation: /ˌæləˈbæmə/ (
listen){{IPAc-en|audio=en-us-Alabama.ogg|ˌ|æ|l|ə|ˈ|b|æ|m|ə}} or {{IPAc-en|ˌ|æ|l|ə|ˈ|b|æ|m|ə|audio=en-us-Alabama.ogg}}→
i/ˌæləˈbæmə/,
i/ˌæləˈbæmə/
| The above documentation is transcluded from Template:IPAc-en/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |