Template:IPA
From Wikipedia, the free encyclopedia
{{{1}}}
Contents |
Usage
Template:IPA is most useful when there are multiple instances of the IPA on a page. It contains
<span title="Representation in the International Phonetic Alphabet (IPA)" class="IPA">{{{1}}}</span>
I.e., it simply specifies CSS class IPA.
This allows fixing broken display of International Phonetic Alphabet (IPA) characters in MS Internet Explorer 6 for Windows, and choice of style in any browser.
The font declarations are in MediaWiki:Common.css. Registered Wikipedia users can specify their own style for IPA text by editing, for each project, their user style sheet, e.g. monobook.css. Users can also specify the style locally in their browser, which works across projects.
Example
Placing a phonetic rendering of the word characters in Template:IPA:
{{IPA|/ˈkærəktɚz/}}
The result will be a span with a class attribute, like this:
<span title="Representation in the International Phonetic Alphabet (IPA)" class="IPA">/ˈkærəktɚz/</span>
Which appears in your browser as:
- /ˈkærəktɚz/
Without template:IPA:
- /ˈkærəktɚz/
[The last two should only look different if you are using Internet Explorer 6 or lower on Windows, or if you have a custom style defined for IPA text.]
Please place all IPA text into Template:IPA, even if it doesn't have any special IPA characters, like this: /mi/. This will allow users to format all examples of IPA text consistently, with their choice of fonts, colours, etc.
List of fonts
The following is a list of fonts that are specified using this template.
- Charis SIL
- Doulos SIL
- Gentium
- GentiumAlt
- DejaVu Sans
- Code2000
- TITUS Cyberbit Basic
- Arial Unicode MS
- Lucida Sans Unicode
- Chrysanthi Unicode
Choosing an IPA template
Wikipedia offers several templates for proper display of IPA transcriptions.
In general, instances of the IPA on a page should be enclosed in the {{IPA}} template, which formats the text in an IPA-compatible font. If a substantial portion of a page is in the IPA, it is customary to post notice of that fact with {{IPA notice|lang=en}}, though each token still requires the {{IPA}} template for proper formatting.
However, if there are not enough occurrences to warrant a notice, then consider a template that links to an IPA key for the first instance of the IPA on a page or section:
- for English words, in a broad, non-regional transcription, as when giving the pronunciation of a key word in an article, use templates linking to Help:IPA for English, a chart of the subset of the IPA that is relevant to English:
- for foreign words that are not assimilated into English, regional pronunciations of English words, and non-standard English dialects, use templates linking to the more general Help:IPA chart, containing all major IPA symbols:
- for Australian English pronunciation specifically, use:
- {{IPA-en-au}}, appearing as: /word/, or
- {{pron-en-au}}, appearing as: pronounced /word/
- for Hebrew words, in a phonemic transcription, use:
- {{IPA-he}}, appearing as: Hebrew IPA: [word], or
- {{IPA-he-small}}, appearing as: IPA: [word].
- for Irish words, in a phonemic transcription, use:
- for Korean words, in a phonemic transcription, use:
- for Polish words, in a phonemic transcription, use:
- {{IPA-pl}}, appearing as: word, or
- {{Audio-IPA-pl}}, appearing with soundfile as: [word] ( listen).
- for Russian words, in a phonemic transcription, use:
- for Spanish words, in a phonemic transcription, use:
Note
The older inconsistently named (though still operational) templates {{IPA2}}, {{IPAEng}}, and {{pronEng}} are deprecated, and are to be no longer used.
See also
- Category:IPA templates
- {{IPA}}