Revision as of 20:43, 26 November 2009 view sourceDeflective (talk | contribs)Extended confirmed users28,441 edits changed c-en template calls to H:IPA for mouseovers← Previous edit | Latest revision as of 21:12, 22 June 2017 view source Nardog (talk | contribs)Edit filter helpers, Autopatrolled, Extended confirmed users, New page reviewers, Pending changes reviewers, Rollbackers, Template editors81,110 edits <includeonly> | ||
(80 intermediate revisions by 13 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#invoke:IPAc-en|main}}</includeonly><noinclude> | |||
<includeonly><span class="IPA" style="white-space:nowrap">|AUD=|-/|-]AUD|-/AUD=|/}}{{#switch:{{{1|}}}|||/-|-/|//|--|-]AUD|AUD|-/AUD|//AUD|AUD=|{{H:IPA|{{{1}}}}}}}{{#if:{{{2|}}}|{{#switch:{{{1|}}}|-]AUD|AUD|-/AUD|//AUD|AUD=|{{H:IPA|{{{2|}}}}}}}}}{{#if:{{{3|}}}|{{H:IPA|{{{3}}}}}}}{{#if:{{{4|}}}|{{H:IPA|{{{4}}}}}}}{{#if:{{{5|}}}|{{H:IPA|{{{5}}}}}}}{{#if:{{{6|}}}|{{H:IPA|{{{6}}}}}}}{{#if:{{{7|}}}|{{H:IPA|{{{7}}}}}}}{{#if:{{{8|}}}|{{H:IPA|{{{8}}}}}}}{{#if:{{{9|}}}|{{H:IPA|{{{9}}}}}}}{{#if:{{{10|}}}|{{H:IPA|{{{10}}}}}}}{{#if:{{{11|}}}|{{H:IPA|{{{11}}}}}}}{{#if:{{{12|}}}|{{H:IPA|{{{12}}}}}}}{{#if:{{{13|}}}|{{H:IPA|{{{13}}}}}}}{{#if:{{{14|}}}|{{H:IPA|{{{14}}}}}}}{{#if:{{{15|}}}|{{H:IPA|{{{15}}}}}}}{{#if:{{{16|}}}|{{H:IPA|{{{16}}}}}}}{{#if:{{{17|}}}|{{H:IPA|{{{17}}}}}}}{{#if:{{{18|}}}|{{H:IPA|{{{18}}}}}}}{{#if:{{{19|}}}|{{H:IPA|{{{19}}}}}}}{{#if:{{{20|}}}|{{H:IPA|{{{20}}}}}}}{{#if:{{{21|}}}|{{H:IPA|{{{21}}}}}}}{{#if:{{{22|}}}|{{H:IPA|{{{22}}}}}}}{{#if:{{{23|}}}|{{H:IPA|{{{23}}}}}}}{{#if:{{{24|}}}|{{H:IPA|{{{24}}}}}}}{{#if:{{{25|}}}|{{H:IPA|{{{25}}}}}}}{{#if:{{{26|}}}|{{H:IPA|{{{26}}}}}}}{{#if:{{{27|}}}|{{H:IPA|{{{27}}}}}}}{{#if:{{{28|}}}|{{H:IPA|{{{28}}}}}}}{{#if:{{{29|}}}|{{H:IPA|{{{29}}}}}}}{{#if:{{{30|}}}|{{H:IPA|{{{30}}}}}}}{{#if:{{{31|}}}|{{H:IPA|{{{31}}}}}}}{{#if:{{{32|}}}|{{H:IPA|{{{32}}}}}}}{{#if:{{{33|}}}|{{H:IPA|{{{33}}}}}}}{{#switch:{{{1}}}|-]||-]AUD|AUD=]|-/|//|\/AUD|//AUD=/|--|]</span>{{#switch:{{{1}}}|-]AUD|AUD|-/AUD|//AUD|AUD=<small> (] ])</small>}}</includeonly><noinclude>This template is used to produce a phonetic or phonemic representation (using the ] system) of English words or sounds, using ASCII spelling to avoid the need to search for the correct phonetic symbols. The result is wikilinked to ]. Optionally, an audio file can also be specified. | |||
{{documentation}} | |||
===Usage=== | |||
The number of parameters is always limited to 33. | |||
Normal usage: | |||
*<tt><nowiki>{{IPAc-en|f|@|'|n|E|t|I|k|s}}</nowiki></tt> produces {{IPAc-en|f|@|'|n|E|t|I|k|s}} | |||
*<tt><nowiki>{{IPAc-en|'|s|E|k|j|U|l|@r|-|,|or|g|@|n|ai|'|z|ei|S|@|n}}</nowiki></tt> produces {{IPAc-en|'|s|E|k|j|U|l|@r|-|,|or|g|@|n|ai|'|z|ei|S|@|n}} | |||
With an audio file: | |||
*<tt><nowiki>{{IPAc-en|AUD|en-us-Alabama.ogg|,|&|l|@|'|b|&|m|@}}</nowiki></tt> produces {{IPAc-en|AUD|en-us-Alabama.ogg|,|&|l|@|'|b|&|m|@}} | |||
To change the delimiters (for example, if several instances of the template need to be strung together because of the limit on the number of parameters): | |||
*<tt><nowiki>{{IPAc-en|/-|,|&|n|t|I|d|I|s|I-|,|s|t|&|b|l|I|S|m|@|n|'|t|eir|I|@|n|I|z|@|m}}</nowiki></tt> produces {{IPAc-en|/-|,|&|n|t|I|d|I|s|I-|,|s|t|&|b|l|I|S|m|@|n|'|t|eir|I|@|n|I|z|@|m}} | |||
The full range of special values for the first parameter (changing the delimiters and/or specifying that the next parameter is an audio file) is as follows: | |||
*<tt>-- /- -/ AUD -]AUD AUD -/AUD<tt> | |||
The following parameters represent their normal sounds in English: | |||
*<tt>b d f g h k l m n p r s t v w</tt> | |||
Other sounds are represented using the following parameters (not all alternatives are given): | |||
*<tt>S</tt> (or <tt>sh</tt>) for "sh", <tt>Z</tt> (or <tt>zh</tt>) for "zh" as in "vision" | |||
*<tt>tS</tt> (or <tt>ch</tt>) for "ch", <tt>dZ</tt> (or <tt>J</tt>) for "j" as in "jump" | |||
*<tt>T</tt> (or <tt>th</tt>) for "th" as in "think", <tt>D</tt> (or <tt>dh</tt>) for "th" as in "they" | |||
*<tt>j</tt> (or <tt>y</tt>) for "y" as in "yes" | |||
*<tt>N</tt> (or <tt>ng</tt>) for "ng" as in "sing" | |||
*<tt>@ </tt> for schwa (as in "'''a'''bout" and "Chin'''a'''"); <tt>@r </tt> for schwa+r (as in "bett'''er'''") | |||
*<tt>I, E, &, V, o, U </tt> for the short vowels of ''bit, bet, bat, but, pot, put'' | |||
*<tt>i:, a:, o:, u: </tt> for the long vowels of ''beat, calm, law, too'' | |||
*<tt>ar, 3r, or </tt> for the r-colored vowels of ''cart, dirt, sort'' | |||
*<tt>ei, ou, ai, oi, au </tt> for the diphthongs of ''bait, boat, bite, boy, bout'' | |||
*<tt>eir, ir, ur </tt> for the r-coloured diphthongs of ''bare, beer, lure'' | |||
*<tt>I-, U-, o- (or ou-)</tt> for instances of those sounds which may alternate with schwa | |||
The following parameters have special meanings: | |||
*<tt>- </tt> (hyphen) for a space between words | |||
*<tt>' </tt> (apostrophe) for a primary stress mark (placed before the stressed syllable) | |||
*<tt>, </tt> (comma) for a secondary stress mark | |||
Other values used as parameters will be displayed unconverted. (The conversion system is coded in ].) | |||
==See also== | |||
*] | |||
*] | |||
] | |||
</noinclude> | </noinclude> |
Latest revision as of 21:12, 22 June 2017
Template documentation[view] [edit] [history] [purge]This template is used on approximately 51,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
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|en|...|generic=yes}}
.
The initial argument (entry after |) can be used to indicate a pronunciation prescript; link to IPA. The codes are:
Code | Output |
---|---|
lang |
English: |
local |
locally |
ipa |
IPA: |
also |
also |
uk |
UK: |
us |
US: |
uklang |
British English: |
uslang |
American English: |
ukalso |
UK also |
usalso |
US also |
alsouk |
also UK: |
alsous |
also US: |
The first argument that is not a code above will be treated as a diaphoneme. All diaphonemes listed at Help:IPA/English are available (except the ones that span two syllables such as /iə/, which need to be input as i|ə
). Also available are /ɪəˈr/, /ɛəˈr/, /ʊəˈr/, /ɪəˌr/, /ɛəˌr/, and /ʊəˌr/, preserved for when a centering diphthong precedes a stress.
- Separator codes
- Use an underscore
_
to separate words. When multiple pronunciations for the same word(s) are possible, use a comma and an underscore,_
, which will appear as a comma, 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 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.
|
The named parameter |audio=
may be used to link to an audio file.
Examples
{{IPAc-en|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}
→ /ˌæləˈbæmə/{{IPAc-en|audio=en-us-Alabama.ogg|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}
→ /ˌæləˈbæmə/{{IPAc-en|US|audio=en-us-Alabama.ogg|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}
→ US: /ˌæləˈbæmə/
Examples using X-SAMPA spelling for individual diaphonemes:
{{IPAc-en|,|{|l|@|'|b|{|m|@}}
→ /ˌæləˈbæmə/{{IPAc-en|lang|audio=en-us-Alabama.ogg|,|{|l|@|'|b|{|m|@}}
→ English: /ˌæləˈbæmə/
If "" 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 under Category:Pages including recorded pronunciations.
TemplateData
TemplateData | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:IPAc-en in articles based on its TemplateData.
TemplateData for IPAc-en No description.
|
See also
- {{Respell}}, for pronunciation respellings, which may be used for English words in addition to the IPA
IPA templates | |||||||
---|---|---|---|---|---|---|---|
Inline |
| ||||||
Charts | |||||||
Guidance |
| ||||||
Meta templates |
|
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Category: