Template:IPAc-en/doc

From Pantonian Republic Wiki
< Template:IPAc-en
Revision as of 15:20, 28 May 2023 by Sebbog (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 (entry after |) can be used to indicate a pronunciation prescript; link to IPA. The codes are:

Pronunciation & IPA link codes
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 ,_ to separate the variants which will appear as a comma. 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.

Code Aliases Display text Tooltip Type
b b 'b' in 'buy' diaphoneme
d d 'd' in 'dye' diaphoneme
dj dy, dj /dj/: 'd' in 'dew' diaphoneme
dZ, ʤ /dʒ/: 'j' in 'jam' diaphoneme
ð D ð /ð/: 'th' in 'this' diaphoneme
f f 'f' in 'find' diaphoneme
ɡ g ɡ /ɡ/: 'g' in 'guy' diaphoneme
h h 'h' in 'hi' diaphoneme
hw ʍ hw /hw/: 'wh' in 'why' diaphoneme
j y j /j/: 'y' in 'yes' diaphoneme
k k 'k' in 'kind' diaphoneme
l l 'l' in 'lie' diaphoneme
lj ly, lj /lj/: 'l' in 'lute' diaphoneme
m m 'm' in 'my' diaphoneme
n n 'n' in 'nigh' diaphoneme
nj ny, nj /nj/: 'n' in 'new' diaphoneme
ŋ N, ng ŋ /ŋ/: 'ng' in 'sing' diaphoneme
p p 'p' in 'pie' diaphoneme
r ɹ, ɻ r 'r' in 'rye' diaphoneme
s s 's' in 'sigh' diaphoneme
sj sy, sj /sj/: 's' in 'consume' diaphoneme
ʃ S, sh ʃ /ʃ/: 'sh' in 'shy' diaphoneme
t t 't' in 'tie' diaphoneme
tj ty, tj /tj/: 't' in 'tune' diaphoneme
tS, ʧ, ch /tʃ/: 'ch' in 'China' diaphoneme
θ T θ /θ/: 'th' in 'thigh' diaphoneme
θj θy, θʲ θj /θj/: 'th' in 'enthuse' diaphoneme
v v 'v' in 'vie' diaphoneme
w w 'w' in 'wind' diaphoneme
z z 'z' in 'zoom' diaphoneme
zj zy, zj /zj/: 'Z' in 'Zeus' diaphoneme
ʒ Z, zh ʒ /ʒ/: 's' in 'pleasure' diaphoneme
ɑː A:, ɑ:, , a: ɑː /ɑː/: 'a' in 'father' diaphoneme
ɑːr ɑɹ, aːr, a:r, ɑ:r, ɑr ɑːr /ɑːr/: 'ar' in 'far' diaphoneme
ɒ Q ɒ /ɒ/: 'o' in 'body' diaphoneme
ɒr Qr ɒr /ɒr/: 'or' in 'moral' diaphoneme
æ ae, { æ /æ/: 'a' in 'bad' diaphoneme
ær aer, &r, æɹ ær /ær/: 'arr' in 'marry' diaphoneme
ai, aI /aɪ/: 'i' in 'tide' diaphoneme
aɪər aɪr, aIr, aɪə aɪər /aɪər/: 'ire' in 'fire' diaphoneme
au, aU /aʊ/: 'ou' in 'mouth' diaphoneme
aʊər aʊr, aUr, aʊə, aur aʊər /aʊər/: 'our' in 'hour' diaphoneme
ɛ E ɛ /ɛ/: 'e' in 'dress' diaphoneme
ɛr Er ɛr /ɛr/: 'err' in 'merry' diaphoneme
ei, eI, , e: /eɪ/: 'a' in 'face' diaphoneme
ɛər eir, eIr, e@r, E@r, ɛɪɹ, eɪr, eːr, e:r, ɛəɹ, ɛə, ɛːr, ɛ:r, ɛː, ɛ:, E:, E:r ɛər /ɛər/: 'are' in 'bare' diaphoneme
ɛəˈr ɛə'r, eəˈr, eə'r, e@'r, E@'r, ɛːˈr, E:'r ɛəˈr /ɛəˈr/: 'ere' in 'thereof' diaphoneme
ɛəˌr ɛə,r, eəˌr, eə,r, E@,r, E@%r, e@,r, e@%r, ɛːˌr, E:,r, E:%r ɛəˌr /ɛəˌr/: 'ere' in 'thereof' diaphoneme
ɪ I, ɪ /ɪ/: 'i' in 'kit' diaphoneme
ɪr ɪr /ɪr/: 'irr' in 'mirror' diaphoneme
i: /iː/: 'ee' in 'fleece' diaphoneme
ɪər i:r, iːr, I@r, i@r, ɪəɹ, iːɹ, ɪə ɪər /ɪər/: 'ear' in 'near' diaphoneme
ɪəˈr ɪə'r, I@'r ɪəˈr /ɪəˈr/: 'er' in 'spheroidal' diaphoneme
ɪəˌr ɪə,r, I@,r, I@%r ɪəˌr /ɪəˌr/: 'er' in 'spheroidal' diaphoneme
o:, , ou, oU, @u, @U, əʊ, əu, oʊ- /oʊ/: 'o' in 'code' diaphoneme
ɔː O, O:, ɔ:, ɒː, Q: ɔː /ɔː/: 'au' in 'fraud' diaphoneme
ɔːr Or, ɔɹ, ɔ(r), ɔr, ɔər, oUr, ɔəɹ, ɔʊɹ, oʊɹ, oʊr, oːr, o:r, ɔə, ɔə(r) ɔːr /ɔːr/: 'ar' in 'war' diaphoneme
ɔɪ oj, ɔj, oi, , ɔi, OI, oy ɔɪ /ɔɪ/: 'oi' in 'choice' diaphoneme
ɔɪər ɔɪr, oyr, ɔɪə ɔɪər /ɔɪər/: 'oir' in 'coir' diaphoneme
ʊ U, ᵿ ʊ /ʊ/: 'u' in 'push' diaphoneme
ʊr Ur ʊr /ʊr/: 'our' in 'courier' diaphoneme
u: /uː/: 'oo' in 'goose' diaphoneme
ʊər u:r, uːr, u@r, U@r, ʊəɹ, ʊə ʊər /ʊər/: 'our' in 'tour' diaphoneme
ʊəˈr ʊə'r, U@'r ʊəˈr /ʊəˈr/: 'ur' in 'plurality' diaphoneme
ʊəˌr ʊə,r, U@,r, U@%r ʊəˌr /ʊəˌr/: 'ur' in 'plurality' diaphoneme
ʌ V ʌ /ʌ/: 'u' in 'cut' diaphoneme
ʌr Vr, ʌɹ ʌr /ʌr/: 'urr' in 'hurry' diaphoneme
ɜːr ɝː, ɝ, 3r, 3:r, əːr, @:r, ɜɹ, ɜ(r), ɜr ɜːr /ɜːr/: 'ur' in 'fur' diaphoneme
ə @ ə /ə/: 'a' in 'about' diaphoneme
ər ɚ, @r, əɹ, ə(r) ər /ər/: 'er' in 'letter' diaphoneme
əl @l, ᵊl, əl /əl/: 'le' in 'bottle' diaphoneme
ən @n, ᵊn, ən /ən/: 'on' in 'button' diaphoneme
əm @m, ᵊm, əm /əm/: 'm' in 'rhythm' diaphoneme
i i /i/: 'y' in 'happy' diaphoneme
u u /u/: 'u' in 'influence' diaphoneme
x kh x /x/: 'ch' in 'loch' diaphoneme
ʔ ? ʔ /ʔ/: the catch in 'uh-oh' diaphoneme
ɒ̃ ɑ̃, ɒ~, ɑ~, Q~ ɒ̃ /ɒ̃/: nasal 'an' in 'vin blanc' diaphoneme
æ̃ ae~, {~, ã, a~ æ̃ /æ̃/: nasal 'in' in 'vin blanc' diaphoneme
ɜː 3, 3:, ɜ:, ɜ, əː, @: ɜː /ɜː/: r-less 'ur' in 'nurse' diaphoneme
ˈ ', " ˈ /ˈ/: primary stress follows diaphoneme
ˌ ,, % ˌ /ˌ/: secondary stress follows diaphoneme
. · . /./: syllable break diaphoneme
# # /#/: morpheme break diaphoneme
! | /: prosodic break (minor) diaphoneme
!! /‖/: prosodic break (major) diaphoneme
_ separator
nbsp &nbsp; separator
,_ , separator
- - separator
( ( separator
) ) separator
...  ... separator
juː juː /juː/: 'u' in 'cute' diaphoneme
jʊər jʊər /jʊər/: 'ure' in 'cure' diaphoneme

The named parameter |audio= may be used to link to an audio file. By default, two links are created: one to the audio file itself and one to the File page. If the audio file is licensed as CC0 or public domain, you can use |attribution=no to make it only link to the audio file.

Examples

Examples using SAMPA spelling for individual diaphonemes:

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 under Category:Pages including recorded pronunciations.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template in articles based on this TemplateData.

TemplateData for IPAc-en

<templatedata> { "format": "inline", "params": { "audio": { "label": "Audio file", "description": "The audio file without the \"File:\" prefix", "example": "En-us-Foobar.ogg" }, "attribution": { "label": "Attribution link", "description": "Set attribution to \"no\" to only display a speaker icon that links directly to the audio file (with no link to the File page).", "example": "no" }, "1": { "label": "First input", "type": "string", "required": true }, "2": { "label": "Second input", "type": "string", "required": false }, "3": { "label": "Third input", "type": "string", "required": false }, "4": { "label": "Fourth input", "type": "string", "required": false }, "5": { "label": "Fifth input", "type": "string", "required": false }, "6": { "label": "Sixth input", "type": "string", "required": false }, "7": { "label": "Seventh input", "type": "string", "required": false }, "8": { "label": "Eighth input", "type": "string", "required": false }, "9": { "label": "Ninth input", "type": "string", "required": false }, "10": { "label": "Tenth input", "type": "string", "required": false }, "11": { "label": "Eleventh input", "type": "string", "required": false }, "12": { "label": "Twelfth input", "type": "string", "required": false }, "13": { "label": "Thirteenth input", "type": "string", "required": false }, "14": { "label": "Fourteenth input", "type": "string", "required": false }, "15": { "label": "Fifteenth input", "type": "string", "required": false }, "16": { "label": "Sixteenth input", "type": "string", "required": false }, "17": { "label": "Seventeenth input", "type": "string", "required": false }, "18": { "label": "Eighteenth input", "type": "string", "required": false }, "19": { "label": "Nineteenth input", "type": "string", "required": false }, "20": { "label": "Twentieth input", "type": "string", "required": false }, "21": { "label": "Twenty-first input", "type": "string", "required": false }, "22": { "label": "Twenty-second input", "type": "string", "required": false }, "23": { "label": "Twenty-third input", "type": "string", "required": false }, "24": { "label": "Twenty-fourth input", "type": "string", "required": false }, "25": { "label": "Twenty-fifth input", "type": "string", "required": false }, "26": { "label": "Twenty-sixth input", "type": "string", "required": false }, "27": { "label": "Twenty-seventh input", "type": "string", "required": false }, "28": { "label": "Twenty-eighth input", "type": "string", "required": false }, "29": { "label": "Twenty-ninth input", "type": "string", "required": false }, "30": { "label": "Thirtieth input", "type": "string", "required": false }, "31": { "label": "Thirty-first input", "type": "string", "required": false }, "32": { "label": "Thirty-second input", "type": "string", "required": false }, "33": { "label": "Thirty-third input", "type": "string", "required": false }, "34": { "label": "Thirty-fourth input", "type": "string", "required": false }, "35": { "label": "Thirty-fifth input", "type": "string", "required": false }, "36": { "label": "Thirty-sixth input", "type": "string", "required": false }, "37": { "label": "Thirty-seventh input", "type": "string", "required": false }, "38": { "label": "Thirty-eighth input", "type": "string", "required": false }, "39": { "label": "Thirty-ninth input", "type": "string", "required": false }, "40": { "label": "Fortieth input", "type": "string", "required": false }, "41": { "label": "Forty-first input", "type": "string", "required": false }, "42": { "label": "Forty-second input", "type": "string", "required": false }, "43": { "label": "Forty-third input", "type": "string", "required": false }, "44": { "label": "Forty-fourth input", "type": "string", "required": false }, "45": { "label": "Forty-fifth input", "type": "string", "required": false }, "46": { "label": "Forty-sixth input", "type": "string", "required": false }, "47": { "label": "Forty-seventh input", "type": "string", "required": false }, "48": { "label": "Forty-eighth input", "type": "string", "required": false }, "49": { "label": "Forty-ninth input", "type": "string", "required": false }, "50": { "label": "Fiftieth input", "type": "string", "required": false }, "51": { "label": "Fifty-first input", "type": "string", "required": false }, "52": { "label": "Fifty-second input", "type": "string", "required": false }, "53": { "label": "Fifty-third input", "type": "string", "required": false }, "54": { "label": "Fifty-fourth input", "type": "string", "required": false }, "55": { "label": "Fifty-fifth input", "type": "string", "required": false }, "56": { "label": "Fifty-sixth input", "type": "string", "required": false }, "57": { "label": "Fifty-seventh input", "type": "string", "required": false }, "58": { "label": "Fifty-eighth input", "type": "string", "required": false }, "59": { "label": "Fifty-ninth input", "type": "string", "required": false }, "60": { "label": "Sixtieth input", "type": "string", "required": false }, "61": { "label": "Sixty-first input", "type": "string", "required": false }, "62": { "label": "Sixty-second input", "type": "string", "required": false }, "63": { "label": "Sixty-third input", "type": "string", "required": false }, "64": { "label": "Sixty-fourth input", "type": "string", "required": false }, "65": { "label": "Sixty-fifth input", "type": "string", "required": false }, "66": { "label": "Sixty-sixth input", "type": "string", "required": false }, "67": { "label": "Sixty-seventh input", "type": "string", "required": false }, "68": { "label": "Sixty-eighth input", "type": "string", "required": false }, "69": { "label": "Sixty-ninth input", "type": "string", "required": false }, "70": { "label": "Seventieth input", "type": "string", "required": false }, "71": { "label": "Seventy-first input", "type": "string", "required": false }, "72": { "label": "Seventy-second input", "type": "string", "required": false }, "73": { "label": "Seventy-third input", "type": "string", "required": false }, "74": { "label": "Seventy-fourth input", "type": "string", "required": false }, "75": { "label": "Seventy-fifth input", "type": "string", "required": false }, "76": { "label": "Seventy-sixth input", "type": "string", "required": false }, "77": { "label": "Seventy-seventh input", "type": "string", "required": false }, "78": { "label": "Seventy-eighth input", "type": "string", "required": false }, "79": { "label": "Seventy-ninth input", "type": "string", "required": false }, "80": { "label": "Eightieth input", "type": "string", "required": false }, "81": { "label": "Eighty-first input", "type": "string", "required": false }, "82": { "label": "Eighty-second input", "type": "string", "required": false }, "83": { "label": "Eighty-third input", "type": "string", "required": false }, "84": { "label": "Eighty-fourth input", "type": "string", "required": false }, "85": { "label": "Eighty-fifth input", "type": "string", "required": false }, "86": { "label": "Eighty-sixth input", "type": "string", "required": false }, "87": { "label": "Eighty-seventh input", "type": "string", "required": false }, "88": { "label": "Eighty-eighth input", "type": "string", "required": false }, "89": { "label": "Eighty-ninth input", "type": "string", "required": false }, "90": { "label": "Ninetieth input", "type": "string", "required": false }, "91": { "label": "Ninety-first input", "type": "string", "required": false }, "92": { "label": "Ninety-second input", "type": "string", "required": false }, "93": { "label": "Ninety-third input", "type": "string", "required": false }, "94": { "label": "Ninety-fourth input", "type": "string", "required": false }, "95": { "label": "Ninety-fifth input", "type": "string", "required": false }, "96": { "label": "Ninety-sixth input", "type": "string", "required": false }, "97": { "label": "Ninety-seventh input", "type": "string", "required": false }, "98": { "label": "Ninety-eighth input", "type": "string", "required": false }, "99": { "label": "Ninety-ninth input", "type": "string", "required": false }, "100": { "label": "One hundredth input", "type": "string", "required": false } } } </templatedata>

See also