Template:IPAc-en

50px Template documentation[view] [edit] [history] [purge]

Lua error in Module:Lua_banner at line 93: attempt to index field 'edit' (a nil value). Note: Per WP:LEAD, do not use this template in the lead section for common English words (e.g., 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 Help:IPA/English are available.

The transcription system of Help:IPA/English, upon which this template relies, is diaphonemic, i.e. meant to cover multiple major varieties of English at once. If you wish to give a narrow transcription of a pronunciation in a certain variety of English, use {{IPA-endia}} or {{IPA-all}} instead.

The initial argument can be used to indicate a pronunciation prescript. The available pronunciation codes are:

Pronunciation codes
Code Output
lang English:
local locally
ipa IPA:
uk UK:
us US:
uklang British English:
uslang American English:

The first argument that is not a pronunciation code will be treated as a diaphoneme. All diaphonemes listed at Help:IPA/English are available (except /iə/ and /uə/, each letter of which needs to be input separately). Also available are /ɪəˈr/, /ɛəˈr/, /ʊəˈr/, /ɪəˌr/, /ɛəˌr/, and /ʊəˌr/, preserved for when a centering diphthong precedes a stress.

There are some separator codes as well. Use an underscore _ to separate words. When multiple pronunciations for the same word(s) are possible, use a comma and an underscore ,_ to separate the variants. As necessary, use a hyphen - to indicate omitted syllables. Diaphonemes are underlined, but separators are not, and separators do not have any tooltip text.

See the collapsed table below for a full list of diaphoneme codes.

Diaphoneme codes

Note that the aliases include ones that are kept merely for compatibility reasons and therefore not recommended for further use, as they might not accurately represent the sound represented by the output. Script error: No such module "IPAc-en/documentation".

The named parameter |audio= may be used to link to an audio file.

Examples

  • {{IPAc-en|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}Script error: No such module "IPAc-en".
  • {{IPAc-en|audio=en-us-Alabama.ogg|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}Script error: No such module "IPAc-en".
  • {{IPAc-en|US|audio=en-us-Alabama.ogg|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}Script error: No such module "IPAc-en".

Examples using SAMPA spelling for individual diaphonemes:

  • {{IPAc-en|,|{|l|@|'|b|{|m|@}}Script error: No such module "IPAc-en".
  • {{IPAc-en|lang|audio=en-us-Alabama.ogg|,|{|l|@|'|b|{|m|@}}Script error: No such module "IPAc-en".

If "[invalid 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.

Notations with audio links will appear at Category:Articles including recorded pronunciations (English), Category:Articles including recorded pronunciations (UK English) or Category:Articles including recorded pronunciations (US English) depending on the label parameter.

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|ə}}Script error: No such module "IPAc-en".

It can be partially reinstated using the flag lang.

  • {{IPAc-en|lang|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}Script error: No such module "IPAc-en".

Audio files are specifically called:

  • {{IPA-en|ˌæləˈbæmə|-|en-us-Alabama.ogg}}English pronunciation: /ˌæləˈbæmə/ (Template:Error-small)
  • {{IPAc-en|audio=en-us-Alabama.ogg|ˌ|æ|l|ə|ˈ|b|æ|m|ə}} or {{IPAc-en|ˌ|æ|l|ə|ˈ|b|æ|m|ə|audio=en-us-Alabama.ogg}}Script error: No such module "IPAc-en".

See also

Template:IPA templates