Template:IPAc-en/doc: Difference between revisions
m (1 revision: pronunciation templates) |
mNo edit summary |
||
Line 9: | Line 9: | ||
There are a maximum of 50 variables, including the first three. | There are a maximum of 50 variables, including the first three. | ||
The first three variables can be used to indicate a prescript (eg, <small>English pronunciation:</small>) | The first three variables can be used to indicate a prescript (eg, <small>English pronunciation:</small>). | ||
*<code><nowiki>{{IPAc-en|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}</nowiki></code> → {{IPAc-en|ˌ|æ|l|ə|ˈ|b|æ|m|ə}} | *<code><nowiki>{{IPAc-en|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}</nowiki></code> → {{IPAc-en|ˌ|æ|l|ə|ˈ|b|æ|m|ə}} | ||
*<code><nowiki>{{IPAc-en|US|pron|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}</nowiki></code> → {{IPAc-en|US|pron|ˌ|æ|l|ə|ˈ|b|æ|m|ə}} | |||
*<code><nowiki>{{IPAc-en|US|pron | |||
The pronunciation is broken into individual phonemes so that they will have mouseovers to indicate pronunciation. All phonemes from [[Wikipedia:IPA_for_English#Key|IPA for English]] are available. For anything outside that set, a different template should be used. | The pronunciation is broken into individual phonemes so that they will have mouseovers to indicate pronunciation. All phonemes from [[Wikipedia:IPA_for_English#Key|IPA for English]] are available. For anything outside that set, a different template should be used. | ||
Line 20: | Line 19: | ||
*<code><nowiki>{{IPAc-en|,|&|l|@|'|b|&|m|@}}</nowiki></code> → {{IPAc-en|,|&|l|@|'|b|&|m|@}} | *<code><nowiki>{{IPAc-en|,|&|l|@|'|b|&|m|@}}</nowiki></code> → {{IPAc-en|,|&|l|@|'|b|&|m|@}} | ||
*<code><nowiki>{{IPAc-en|lang|pron | *<code><nowiki>{{IPAc-en|lang|pron|,|&|l|@|'|b|&|m|@}}</nowiki></code> → {{IPAc-en|lang|pron|,|&|l|@|'|b|&|m|@}} | ||
For a space between words, use a keyboard underscore. See [[Template:H:IPA]] for the full list of recognized phonemes and [[Template:IPAc-en/pronunciation]] for the list of recognized prefix flags. | For a space between words, use a keyboard underscore. See [[Template:H:IPA]] for the full list of recognized phonemes and [[Template:IPAc-en/pronunciation]] for the list of recognized prefix flags. | ||
Line 35: | Line 34: | ||
It can be simulated using the flags lang & pron. | It can be simulated using the flags lang & pron. | ||
*<code><nowiki>{{IPAc-en|lang|pron|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}</nowiki></code> → {{IPAc-en|lang|pron|ˌ|æ|l|ə|ˈ|b|æ|m|ə}} | *<code><nowiki>{{IPAc-en|lang|pron|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}</nowiki></code> → {{IPAc-en|lang|pron|ˌ|æ|l|ə|ˈ|b|æ|m|ə}} | ||
===== {{tl|IPAc-en}} ===== | ===== {{tl|IPAc-en}} ===== | ||
Line 46: | Line 41: | ||
[[Category:IPA language templates|c]] | [[Category:IPA language templates|c]] | ||
</includeonly> | </includeonly> |
Revision as of 22:13, 17 November 2012
This template is used to display International Phonetic Alphabet (IPA) transcriptions. If the phonemes are broken into individual variables it generates mouseover pronunciation guides. It is also capable of translating phonetic representations into IPA.
If the code /[[Wikipedia:IPA_for_English#Key|??]]/
is displayed, it means that an unsupported input was used, or that you included a non-existent sound file. Such instances are tallied at Category:Ill-formatted IPAc-en transclusions, where they can be reviewed and fixed.
There are a maximum of 50 variables, including the first three.
The first three variables can be used to indicate a prescript (eg, English pronunciation:).
{{IPAc-en|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}
→ /ˌæləˈbæmə/{{IPAc-en|US|pron|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}
→ US pronunciation: /ˌæləˈbæmə/
The pronunciation is broken into individual phonemes so that they will have mouseovers to indicate pronunciation. All phonemes from IPA for English are available. For anything outside that set, a different template should be used.
Individual phonemes can be translated from SAMPA spelling:
{{IPAc-en|,|&|l|@|'|b|&|m|@}}
→ /ˌæləˈbæmə/{{IPAc-en|lang|pron|,|&|l|@|'|b|&|m|@}}
→ English pronunciation: /ˌæləˈbæmə/
For a space between words, use a keyboard underscore. See Template:H:IPA for the full list of recognized phonemes and Template:IPAc-en/pronunciation for the list of recognized prefix flags.
Behaviour changes from current templates
{{IPAc-en}} combines the features of {{IPA-en}} and the original {{IPAc-en}}. It is also intended to replace incidences of {{Audio-IPA}}. To facilitate this a Greasemonkey script is available that will automatically convert any incidents of these templates to {{IPAc-en}} with properly separated phonemes.
Behavioural differences follow.
{{IPA-en}}
The default behaviour has changed to no prescript.
It can be simulated using the flags lang & pron.
{{IPAc-en}}
The original template had three flags ( /- , -- and -/ ) that allowed multiple templates to be strung together in case there wasn't enough characters. The maximum character count has increased from 33 to 50 and this feature has been dropped.