This template ensures proper display of a transcription in the International Phonetic Alphabet (IPA). It can also automatically provide a label indicating the language being transcribed and link to an explanatory guide. Its behavior changes drastically depending on whether more than one unnamed parameter is given. For broad transcriptions of English, use {{IPAc-en}} instead.

The behavior of this template changes drastically depending on whether more than one unnamed parameter is given.

ऐसा लिखें ऐसा दिखायी देगा
{{IPA|/ˌlɔːrəm ˈɪpsəm/}}

/ˌlɔːrəm ˈɪpsəm/

{{IPA|la|ˌloːrɛm ˈɪpsʊm}}

Latin pronunciation: [ˌloːrɛm ˈɪpsʊm]

The basic usage of this template is just to pass an IPA transcription as the first argument, as in:

ऐसा लिखें ऐसा दिखायी देगा
{{IPA|/ˌlɔːrəm ˈɪpsəm/}}

/ˌlɔːrəm ˈɪpsəm/

Which might not look different from just the transcription without the template (/ˌlɔːrəm ˈɪpsəm/), but it actually outputs:

<span class="IPA nowrap" lang="und-Latn-fonipa" title="Representation in the International Phonetic Alphabet (IPA)">/ˌlɔːrəm<span class="wrap"> </span>ˈɪpsəm/</span>

That is, it adds

  • the IPA class, allowing registered users to assign a typeface of their choice (see Help:IPA § Rendering issues for how);
  • an IETF language tag indicating IPA as the writing system (see Template:Lang § Rationale for more);
  • a title attribute, which appears as a tooltip when the mouse hovers over the transcription;
  • the nowrap class, preventing line wrapping at inappropriate places like after / or ˌ;
  • the wrap class to whitespace characters, allowing wrapping to occur at appropriate places.

All IPA text should be placed in the template, even if it consists entirely of ASCII characters, as in {{IPA|/mi/}}. This allows users to format all examples of IPA text consistently, and software like screen readers to interpret them accurately. If a substantial portion of a page uses IPA, post notice of that fact with {{IPA notice}}.

If the template is inside a wikilink, the link may not display correctly in certain namespaces (including the mainspace):

ऐसा लिखें ऐसा दिखायी देगा
[[Lorem ipsum|{{IPA|/ˌlɔːrəm ˈɪpsəm/}}]]

[[Lorem ipsum|/ˌlɔːrəm ˈɪpsəm/]]

This is because the template by default inserts a category. To prevent it, add |cat=no, as in:

ऐसा लिखें ऐसा दिखायी देगा
[[Lorem ipsum|{{IPA|/ˌlɔːrəm ˈɪpsəm/|cat=no}}]]
lang
IETF language tag (e.g. ar, pt-BR) to be followed by -Latn-fonipa, replacing und (undetermined).
tooltip
Replaces the default tooltip "Representation in the International Phonetic Alphabet (IPA)". Leaving it blank means no tooltip.

If more than one unnamed parameter is given, the first one is recognized as a language code and the second as the transcription. The transcription is automatically linked to one of the language-specific keys if a corresponding one exists, or to Help:IPA if not, and preceded by a label with the name of the language, as in {{lang-xx}}. Unlike in the basic mode, brackets are automatically added so need not be included in the input.

ऐसा लिखें ऐसा दिखायी देगा
{{IPA|la|ˌloːrɛm ˈɪpsʊm}}

Latin pronunciation: [ˌloːrɛm ˈɪpsʊm]

{{IPA|pt-BR|sɐ̃w̃ ˈpawlu|lang|Br-SaoPaulo.ogg}}

Brazilian Portuguese: [sɐ̃w̃ ˈpawlu] [[:Media:Br-SaoPaulo.ogg|]] सहायता·सूचना

{{IPA|ki|ɣēkōjó|link=yes}}

Gikuyu pronunciation: [ɣēkōjó]

{{IPA|und|ʔ|}}

Notice the transcriptions are linked to language-specific keys in the first two examples, and to the generic guide in the rest. The language name and article link are automatically taken from Module:Language by passing the language tag, unless overridden in Module:IPA/data.

The behavior in this mode mimics {{IPA-xx}} templates that were created for a number of languages. {{IPA}} consolidates those templates for better maintenance and consistency, and is now the recommended template.

First unnamed parameter
IETF language tag (e.g. ar, pt-BR). See Template:Lang for more.
Second unnamed parameter
Transcription, without brackets.
Third unnamed parameter
Label code. Leave it blank to have no label at all. The label "[language name] pronunciation:" is used if the input is not empty but none of the below.
  • lang: "[language name]:"
  • ipa: "IPA:"
  • pron: "pronounced"
  • also: "also"
  • alsolang: "also [language name]:"
  • langalso: "[language name] also"
  • local: "locally"
  • localpron: "local pronunciation:"
Fourth unnamed parameter
Name of an audio file to accompany the transcription.
label
Text that precedes the transcription. Takes precedence over the third unnamed parameter.
link
If set to yes, the language name in the label will be linked to the article about the language.
small
If set to no, the label appears in the same size as the surrounding text. Be sure to use this where the text is already smaller, per (references, infoboxes, and navboxes are excluded by default).
generic
If set to yes, the transcription is linked not to the language-specific key but to the generic Help:IPA. This is if the transcription does not adhere to the conventions laid out in the language-specific key.

These are defined in Module:IPA/data.

लुआ त्रुटि package.lua में पंक्ति 80 पर: module 'Module:IPA/data/export' not found।

These parameters can be used in either mode.

audio
Name of an audio file to accompany the transcription. Takes precedence over the fourth unnamed parameter.
wrap
If set to none, wrapping is prevented for the entire transcription (i.e. the wrap class is not added to spaces). If set to all, no wrapping prevention takes place (i.e. the nowrap class is not added to the transcription).
class
HTML class(es) added to the span element containing the transcription.
cat
If set to no, the page will not be categorized under Category:Pages with plain IPA (basic mode) or a language-specific subcategory of Category:Pages with IPA (guide-linking mode).

These are added only in Module:Category handler's default namespaces. If |debug=yes is given, the categories that would be added are shown as links, no matter the namespace. This is for testcases only.

TemplateData

This template ensures proper display of transcriptions using the International Phonetic Alphabet (IPA). Its behavior changes drastically depending on whether more than one unnamed parameter is given. For dialect-neutral transcriptions of English, use IPAc-en instead.

साँचे के पैरामीटर्स

इस साँचे के लिए पैरामीटरों के इनलाइन प्रारूपण को प्राथमिकता दी जाती है।

पैरामीटरविवरणप्रकारस्थिति
Transcription or language code1

Transcription including brackets ([...] for a phonetic transcription and /.../ for a phonemic one) if this template is being used just for formatting. IETF language tag if used for linking the transcription to a language-specific key or introductory guide.

उदाहरण
[ɛɡzɑ̃pl], en
स्ट्रिंगआवश्यक
Transcription2

Without brackets.

उदाहरण
ɛɡzɑ̃pl
स्ट्रिंगवैकल्पिक
Label code3

Replaces the default label "[language name] pronunciation:" with another canned one. Leave it blank to have no label.

सुझावित वैल्यू
lang ipa pron also alsolang langalso local localpron
स्ट्रिंगवैकल्पिक
Audio fileaudio 4

Name of an audio file to accompany the transcription.

फ़ाइलवैकल्पिक
Labellabel

Text that precedes the transcription. Unlike "Label code", this displays any wikitext as entered.

पंक्तिवैकल्पिक
linklink

"yes" links the language name in the label to the article about the language.

सुझावित वैल्यू
yes
स्ट्रिंगवैकल्पिक
smallsmall

"no" cancels the reduction of the label size.

सुझावित वैल्यू
no
स्ट्रिंगवैकल्पिक
genericgeneric

"yes" links the transcription to [[Help:IPA]] instead of a language-specific key. Required if the transcription does not adhere to the conventions of the language-specific key.

सुझावित वैल्यू
yes
स्ट्रिंगवैकल्पिक
wrapwrap

"none" prevents wrapping anywhere in the transcription. "all" cancels the prevention of wrapping after non-space characters in the transcription.

सुझावित वैल्यू
none all
स्ट्रिंगवैकल्पिक
classclass

Additional HTML class(es) for the transcription.

स्ट्रिंगवैकल्पिक
Language codelang

IETF language tag when the first parameter is a transcription.

उदाहरण
en
स्ट्रिंगवैकल्पिक
Tooltiptooltip

Tooltip to replace the default one with. Leave it blank to have no tooltip.

स्ट्रिंगवैकल्पिक
catcat

"no" cancels the categorization of the page into "Pages with [language name] IPA".

सुझावित वैल्यू
no
स्ट्रिंगवैकल्पिक

Some language-specific templates allow you to enter ordinary letters (or conventional ASCII equivalents) in place of IPA characters, and convert them to the phonetic symbols used to transcribe the language.

Language Template Code example Result
Cantonese साँचा:Tldep {{IPAc-yue|h|ung|2|.|z|i|2}} साँचा:IPAc-yue
Hungarian साँचा:Tldep {{IPAc-hu|'|m|a|gy|a|r}} साँचा:IPAc-hu
Mandarin साँचा:Tldep {{IPAc-cmn|zh|ong|1|h|ua|2|-|r|en|2|m|in|2|-|g|ong|4|h|e|2|g|uo|2}} [ʈʂʊ́ŋxwǎ ɻə̌nmǐn kʊ̂ŋxɤ̌kwǒ]
Polish साँचा:Tldep {{IPAc-pl|'|sz|cz|e|ć|i|n}} साँचा:IPAc-pl

Some other conversion templates have also been created, but they haven't been vetted by the community and may not produce output complying with the respective keys.