Template:IPAc-en/doc: Difference between revisions

From Absit Omen Lexicon
mNo edit summary
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| align="right"
{{Documentation subpage}}
| __TOC__
|}


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.
This template is used to display [[wikipedia:International Phonetic Alphabet|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 <code><nowiki>/[[Wikipedia:IPA_for_English#Key|??]]/</nowiki></code> 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.  
If the code <code><nowiki>/[[Wikipedia:IPA_for_English#Key|??]]/</nowiki></code> 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.  
Line 16: Line 14:
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.  


Individual phonemes can be translated from [[SAMPA Chart|SAMPA]] spelling:
Individual phonemes can be translated from [[wikipedia:SAMPA Chart|SAMPA]] spelling:


*<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|@}}
Line 22: Line 20:


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.
==== Behaviour changes from current templates ====
{{tl|IPAc-en}} combines the features of {{tl|IPA-en}} and the original {{tl|IPAc-en}}.  It is also intended to replace incidences of {{tl|Audio-IPA}}.  To facilitate this a [[Greasemonkey]] [http://userscripts.org/scripts/show/62994 script is available] that will automatically convert any incidents of these templates to {{tl|IPAc-en}} with properly separated phonemes.
Behavioural differences follow.
===== {{tl|IPA-en}} =====
The default behaviour has changed to no prescript.
*<code><nowiki>{{IPA-en|ˌæləˈbæmə}}</nowiki></code> → {{IPA-en|ˌæləˈbæmə}}
*<code><nowiki>{{IPAc-en|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}</nowiki></code> → {{IPAc-en|ˌ|æ|l|ə|ˈ|b|æ|m|ə}}
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|ə}}
===== {{tl|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.


<includeonly>
<includeonly>
[[Category:IPA language templates|c]]
[[Category:Pronunciation Templates]]
 
[[Category:Templates that add a tracking category]]
</includeonly>
</includeonly>

Latest revision as of 08:19, 18 November 2012

Edit-copy green.png This is a documentation subpage for Template:IPAc-en.
It contains usage information, categories and other content that is not part of the original template page.

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:).

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:

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.