Template talk:IPA

Definition from Wiktionary, the free dictionary
Jump to navigation Jump to search

Removal of " font-family /**/:inherit;"[edit]

This template didn't work as well in Wiktionary as in Wikipedia. As Template:IPAchar seemed to work I removed the phrase "font-family /**/:inherit;" after "{IPA fonts}};" in this template, to make it more similar to template:IPAchar, and indeed it seems to work better now, as far as I can tell. I don't know what function the removed phrase should have. -- unsigned by on 22 January 2006

The removed part of the template is supposed to force the font only for Internet Explorer since other browsers such as Firefox get the fonts right without the need for any template. — Hippietrail 17:35, 23 January 2006 (UTC)
Then is should be in wikibits.js, in the section for browser-specific tweaks. Having it where it is clogs the JS console in FireFox and Netscape (the CSS is so very bad, it ends up parsed as JS?) If we need browser sniffer code in Monobook.js (or something) then so be it, but having this here is not acceptable. I'll remove this from here soon. --Connel MacKenzie 14:57, 12 September 2006 (UTC)

The removal of " font-family /**/:inherit;" (by on 22 January 2006) was an important change to accomodate a Mediawiki software change. (See subsection "Mediawiki software change" in the Grease pit for description.) It should not be reverted. --teb728 18:53, 8 June 2006 (UTC)

Forced links[edit]

Please don't make this template inflexible and less usable by adding a forced link that might just as well be added at the discretion of the individual editor. It needs to be clean so it can be used for in-prose text and such. Take look at how its equivalent at English Wikipedia is used and you'll see what I mean. It's intent is to display IPA properly in any situation. If you feel the need for standardized linkage to a pronunciation guide page, then handle this with a separate template or just good old raw links.
Peter Isotalo 07:32, 30 January 2006 (UTC)
A fair point; however, if you are going to make this change, it must be made for AHD and SAMPA templates too, and you will need to add the "IPA" to all of the pages that use this template. Are you prepared to do this? — Paul G 12:59, 30 January 2006 (UTC)
This one is used under the "pronunciation" headers in numerous entries, so it needs a link. Please use Template:IPAchar for in-text usage. Also I'd recommend having a link to the IPA chart. — Vildricianus 15:22, 30 January 2006 (UTC)
Linking to the over-burdened IPA article at English Wikipedia is of very little value to the average reader. The level of knowledge of phonetics is not nearly high enough for anyone to figure out what that tight mass of symbols means (assuming that their computer can display them properly), and I'm saying this as a very dedicated phonetics nerd, not merely a bewildered outsider. If you want to do it properly, you need to link to a dedicated pronunciation guide that has examples, preferably both written and spoken. This would include separate pages for separate languages as well. Don't you have instructional pages of this kind already?
I don't understand the objections about the AHD and SAMPA templates, though. The links they contain are just as fruitless since they only redirect the reader to articles about AHD and SAMPA respectively, not how to read it. There is very little intuitive info there that actually helps anyone to comprehend the transcription system. And, yes, I'm prepared to add all 50-some links myself. The templates are in vary sparse use, so I don't see this as much of a problem.
Karmosin 16:53, 30 January 2006 (UTC)
Ok, I just noticed that the link hade been changed to a Wiktionary-page. Tons better than linking to Wikipedia, but still in great need of improvement. The tables are a bit arbitrary and can be difficult to read. However, I still don't find it appropriate to use the more compact {{IPA}} just to add a link (that really should be standard with the article templates themselves) and force people to use the longer {{IPAchar}} for display purposes. It also conflicts with how the template is used on other wikis, including the Commons.
Peter Isotalo 17:00, 30 January 2006 (UTC)

I just noticed that there's a page called Wiktionary:Pronunciation key, which is much better suited for than the current link. Since I need the template for other languages and without the automatic link, I'm going to remove it and I recommend that some form of link is established to the pronunciation key page from the pronunciation template, not this one. There's no point in having both create links to separate pronunciation pages.

Peter Isotalo 21:58, 15 February 2006 (UTC)

Anyone actually reading my posts? The current link for this template is next to worthless and can only be used for one language. Please stop auto-reverting and discuss the issue. We need links to separate pronunciation pages for each language, not a link to a monster of a table with no possibility of explaining either dialectal differences, inserting sound files and which is almost impossible to read.
Peter Isotalo 01:13, 18 February 2006 (UTC)
In this Wiktionary, we use {{IPAchar}} for the purpose you have in mind. We changed {{IPA}} last year to its current form because that’s what we needed. Since then, it has been inserted in numerous pages where the typographic design that we wanted was "IPA:...", using specific fonts. As Paul already told you, if you want to change it back, then you will have to make identical changes to SAMPA and several other templates, and then you will have to find and edit all the thousands of places where we want it to display the way it does now. Your argument is simply too late; it was inserted into too many pages with expectation of the current display. —Stephen 10:55, 18 February 2006 (UTC)
How can it be too late to point out that linking to a page with a huge, unwieldy table without room for examples or comments is bad for any end user? Are you seriously not even going to consider that you should use the far better suited pronunciation key when you already have one? It's easy to link to and it will free up {{IPA}} for what it was intended for (displaying IPA properly, not putting up links) and you won't need to use an extra {{IPAchar}} at all.
The SAMPA template will become superfluous if you use the pronunciation key page instead (linked once per article), since it covers all three standards in use for English in a more self-evident manner and links to general information about both SAMPA and IPA for those who are interested in learning more. I count something like 2-3,000 articles using the IPA template and less than 500 that use the SAMPA template. That's a few days of work, but it's certainly better than sticking to your guns and letting some tens of thousands of articles use the current, much more awkward and unintuitive format.
I must also point out that linking individual transcription systems from each article isn't all that relevant or useful for a dictionary. The point is to instruct people how to pronounce words, not to inform about individual transcription standards. People can look this information up in the wikipedias or through the appendixes.
Peter Isotalo 12:38, 18 February 2006 (UTC)
You can change the link (as a matter of fact, we just did that) and you can change the fonts (no change is needed), but not the way the template displays on a page. It was inserted into all of those pages with the current display in mind.
The SAMPA template uses monospaced Courier and is not suitable for IPA.
As far as linking goes, I don’t care about that and I don’t know how often anyone uses it. It might be okay unlinked, but the display must stay as it is. —Stephen 13:15, 18 February 2006 (UTC)
I'm not particularly fond of unlinking it. Which page it links to is not my concern either for now, as long as it is one which clarifies in some way what the IPA characters stand for. I understand from your posts that you are keen to make that page (whichever it is) better; please do so. I agree that the tables in Wiktionary Appendix:IPA Examples are somewhat messy, but Wiktionary:Pronunciation is too incomplete. A blend of both into one page would be excellent. — Vildricianus 12:29, 19 February 2006 (UTC)

It's hardly incomplete, Vildricianus. It has all the relevant information on English that the table has plus SAMPA and AHD. A blend of both on one page would make it one truly messy pronunciation guide. The point is that trying to keep the pronunciation guides for all languages on one page is going to make them too big or too complicated. Just trying to edit those huge tables, for example, is quite difficult.
I am, by the way, rather puzzled by this "who cares if anyone reads it"-attitude. Why would you insist on keeping any particular layout or link at all if you don't even care whether it's useful or not? Are your trying to help readers or to satisfy consensus decisions? There are better ways of fixing your current pronunciation guide layout, which has a lot of redundancy. Here's an example:




The SAMPA- and AHD-links (not templates) could be ditched and the main link doesn't need to be the section header, and there are probably even better constellations, but what I don't see is why we need so much repetitive linkage and layout in the current format. It can all be summarized in just one link and one IPA-template that's more practical and universal in usage.

Peter Isotalo 17:58, 20 February 2006 (UTC)

Doesn't look too bad at all. One note: what I meant with "incomplete" is that it currently lists only the English system and just one link to Swedish. If we can work out similar pages for every language which are linked from this page, then in overall this is a good idea. — Vildricianus 18:38, 20 February 2006 (UTC)
groan, whine So much work... I'll get cracking on Japanese and Chinese (yes, it'll have to be Standard Mandarin). I'll ask for assistance with the other major languages in the Beer Parlour.
Peter Isotalo 23:38, 20 February 2006 (UTC)

See also[edit]

CSS guru[edit]

Could someone identify and fix the css error being generated by this template?

Expected ':' but found ''. Declaration dropped. Line 0.

Thanks in advance. --Connel MacKenzie 16:34, 25 August 2006 (UTC)

because "Font names containing … or whitespace should be quoted".
style="font-family: Arial Unicode MS,DejaVu Sans,Segoe UI,Lucida Grande,Charis SIL,Doulos SIL,Code2000,Gentium,Gentium Alternative,TITUS Cyberbit Basic,Lucida Sans Unicode;
It comes from a nested template used for the fonts. Yuck! Why isn't that in the stylesheet, with nothing but a class assigned to the span here?! Especially since the size will vary based on the actual font chosen.
Długosz 06:57, 26 December 2006 (UTC)

WP link[edit]

Why does it link to IPA chart for English? It is not only used on English words Smiddle / TC@ 21:16, 23 January 2007 (UTC)

If there exists any IPA tables for other languages, one could add some (optional) parameter to specify that language, I believe. \Mike 14:13, 17 March 2007 (UTC)
I added one Smiddle / TC@ 08:51, 22 March 2007 (UTC)
Nice :) \Mike 08:52, 22 March 2007 (UTC)
The switch statement on the langcode could be problemetic if it grows too large and if there are many pronunciations on a page. That's not the case yet, but in the future this may need to be revised. Hopefully we'll have an extension to convert language code to language name by that time. DAVilla 10:58, 1 July 2007 (UTC)


There should be no need for the style attribute here. The style hack is present in MediaWiki:Common.css; putting the style attribute here changes the font for all browsers, making it gratuitously look different, but it should only need to be different in IE6. I was about to make this edit myself but minutes before I could, it got protected. Hairy Dude 15:06, 26 June 2007 (UTC)

Yes, it got protected so you wouldn't send the job queue through the roof for a change that would be rapidly reverted. This was discussed on WT:GP, and everyone seems to like it because the default presentation in most browsers is nearly unreadable. It is needed in Firefox on Win* just as much. Robert Ullmann 15:13, 26 June 2007 (UTC)
Where exactly? I can't see any reference to readability of IPA on WT:GP. Hairy Dude 15:20, 26 June 2007 (UTC)
Wiktionary:Grease pit archive/2006/December. It is reasonable to use the CSS font list (if it is checked/updated), but the template has to keep the size 110% (because we don't want that to apply to every use of IPA automatically). Robert Ullmann 15:33, 26 June 2007 (UTC)
The given example is actually less readable with the template here (Firefox on Ubuntu Linux: ɛ̃ without, ɛ̃ with template) - the tilde looks like a macron. Hairy Dude 17:11, 26 June 2007 (UTC)
I use Firefox in WinXP, and it looks perfect for me, appearing in Arial Unicode MS. I suspect that it isn’t Firefox or Linux, but the fonts that you have (or don’t have). The IPA template uses these fonts: Gentium, GentiumAlt, Arial Unicode MS, Code2000, DejaVu Sans, Segoe UI, Lucida Grande, Charis SIL, Doulos SIL, TITUS Cyberbit Basic, Lucida Sans Unicode. —Stephen 17:28, 26 June 2007 (UTC)

Can't we just remove forced fonts and let users customize their User:YourUserNameHere/monobook.css? I set a style for my .IPA class, but it's being overridden by this template, making its .IPA class reference meaningless. And for {{IPAchar}} too. I use FireFox - Gilgamesh 07:28, 14 November 2007 (UTC)

A lot of us (me included) don’t know how to edit Monobook.css, and we rely on the template to give us something we can see. You might discuss it with User:Robert Ullmann. Perhaps you just need to add another font to {{IPA fonts}}. User:Robert Ullmann should have some ideas. —Stephen 16:04, 14 November 2007 (UTC)

Okay, I have successfully edited my own User:Gilgamesh/monobook.css to override the fonts in this template. See my code to see how it can be done. - Gilgamesh 15:32, 15 November 2007 (UTC)

template:style/IPA T[edit]

Dear friends, some time ago I have created template:style/IPA T which was deleted, see

special:Log|type=delete&page={{URLENCODE:template:style/IPA}} .

I assume that the template template:IPA T is not an equivalent of yi:template:style/IPA because template:IPA can neither be used inside the

[[foo bar|{{IPA|bla bla}}]]

nor inside the

[foo url {{IPA|bar}}]



{{IPA|vɛʁ ɛs legt zɪx mɪt ɑ hʊnt ʃlɔfn̩, ʃtet ɔjf mɪt fle.|lang=yi}}<br />
[http://www.omegawiki.org/index.php?title=DefinedMeaning:dog_%28966%29 {{IPA|vɛʁ ɛs legt zɪx mɪt ɑ hʊnt ʃlɔfn̩, ʃtet ɔjf mɪt fle.|lang=yi
}}]<br />

IPA(key): vɛʁ ɛs legt zɪx mɪt ɑ hʊnt ʃlɔfn̩, ʃtet ɔjf mɪt fle. invalid IPA characters (g), replace g with ɡ
IPA(key): vɛʁ ɛs legt zɪx mɪt ɑ hʊnt ʃlɔfn̩, ʃtet ɔjf mɪt fle. invalid IPA characters (g), replace g with ɡ


As you can see the second line is broken. Please recreate the template by copying the actual version of yi:template:style/IPA. Thanks in advance! Best regards
‫·‏לערי ריינהארט‏·‏T‏·‏m‏:‏Th‏·‏T‏·‏email me‏·‏‬ 03:24, 20 December 2007 (UTC)

What is the reason for ever including an IPA template inside a wikilink? --EncycloPetey 03:41, 20 December 2007 (UTC)
What is the reason to be not allowed to include IPA characters inside a wikilink?
‫·‏לערי ריינהארט‏·‏T‏·‏m‏:‏Th‏·‏T‏·‏email me‏·‏‬ 03:56, 20 December 2007 (UTC)
Because it is needless clutter of the Template space. We do not need more useless templates. We are already clearing out many that have been abandoned. You seem to want the template solely for display on your user page, which is just about the only thing you've edited here besides the templates. --EncycloPetey 04:17, 20 December 2007 (UTC)
See a meaningfull example at yi:user:לערי ריינהארט/!#OmegaWiki. You will need to expand the « OmegaWiki » stuff. Just click on « װײַזן · vayzn · vɑyzn̩ ».
"We do not need more useless templates." I do not understand who is « we » . Is this « pluralis majestatis pluralis majestatis » ? Regards
‫·‏לערי ריינהארט‏·‏T‏·‏m‏:‏Th‏·‏T‏·‏email me‏·‏‬ 08:20, 20 December 2007 (UTC)
Template {{IPA}} is for Pronunciation sections. You want the script template {{IPAchar}}. And use 1= for the parameter if there is an evaluation problem. (the only reason the one on yi: works is that it uses IPA=)

[[foo| some text bar some other text]]

vɛʁ ɛs legt zɪx mɪt ɑ hʊnt ʃlɔfn̩, ʃtet ɔjf mɪt fle. invalid IPA characters (g), replace g with ɡ

See? Please do not create more templates trying to fix things that are not problems. They will be deleted on sight. Robert Ullmann 09:07, 20 December 2007 (UTC)
Neither template:IPA nor another template from category:Script templates is an equivalent of the examples from m:wikt:yi:category:style templates. There only named parameters are used and additional parameters are passed to support bidirectional issues.
Another solution then deteling the template would be to use either a redirect (but this will break) or an inclusion where parameters are passed / initialized and renamed / anonymized.
Most of the names specified at template talk:IPAchar|oldid=3446496#See_also are redirects as well. Are you going to delete all these redirects? Regards
‫·‏לערי ריינהארט‏·‏T‏·‏m‏:‏Th‏·‏T‏·‏email me‏·‏‬ 18:25, 21 December 2007 (UTC)
the way the template language works, "1" is a perfectly good name for a positional parameter. We do not have bidi issues here with IPA, because the text is always LTR, as is IPA. So use 1= as shown; and just forget about the bidi support because it is inappropriate here. Got it? (oh, and you would do much better to just refer people to your user page on yi.wikt? Robert Ullmann 13:36, 22 December 2007 (UTC)
The redirects you refer to are the old pattern of script template naming, we now use ISO 15924 codes; they are used on a lot of pages; they will slowly be deprecated; and they are utterly irrelevant to this issue. And this has nothing to do with Template:IPA, which is a formatting template for Pronunciation sections, not a script template. Robert Ullmann 13:40, 22 December 2007 (UTC)


What does the lang parameter do? --Keene 17:09, 12 January 2008 (UTC)

It adds a link to the corresponding language's phonology article at Wikipedia, if one exists. Angr 20:33, 1 April 2008 (UTC)


Can someone with admin privileges add Icelandic to the language list (WP has w:Icelandic phonology). – Krun 02:02, 14 February 2008 (UTC)


Please add a parameter allowing lang=cy to point to w:Welsh phonology. 14:17, 1 June 2008 (UTC)

I've done this, I think correctly. Note here if it hasn't worked. Thryduulf 13:15, 2 June 2008 (UTC)
It seems to work; thanks! Is there any particular reason this template is fully protected rather than semi-protected? Angr 13:42, 22 June 2008 (UTC)
The relevant line from the log is "14:58, 26 June 2007 Robert Ullmann (Talk | contribs | block) changed protection level for "Template:IPA" ‎ (UI, used in very large number of pages [edit=sysop:move=sysop])"
"UI" is user interface, but I don't know what a "user interface template" means or why (or how) they are special (if they are). "very large number of pages" means 51,225 transclisions (excluding any through redirects) as of 23:15, 22 June 2008 (see Special:MostLinkedTemplates). See MediaWiki:Manual:Job queue for how changes to templates are processed and why changes to heavily transcluded pages should be minimised.
In context, {{IPA}} is the 22nd most transcluded template, {{isValidPageName}} is top with 280,523 transclusions, followed by {{form of}} ‎with 206,492 (w:template:! on en.Wikipedia has a massive 2,749,441 inclusions!). Thryduulf 00:20, 24 June 2008 (UTC)

WP link moved[edit]

The Wikipedia chart is now at w:IPA chart for English dialectsMichael Z. 2008-08-07 19:44 z


Navajo phonology is missing. Maro 20:43, 11 September 2008 (UTC)

I've added it so it should now work. Thryduulf 11:13, 13 September 2008 (UTC)


There has been a work here about Greek Pronunciation (see Wiktionary:About Greek/Pronunciation). I'd prefer that this template have a link to this page rather than a Wikipedia article. --flyax 08:32, 10 October 2008 (UTC)


You should add


to the list. Ishwar 04:52, 2 January 2009 (UTC)

Done. Nadando 04:58, 2 January 2009 (UTC)


The English wikipedia doesn't have a full article on Lithuanian phonology, but could lt= be added to the list to link at least to w:Lithuanian alphabet#Phonology? — [ ric ] opiaterein — 15:41, 13 March 2009 (UTC)

Phonology links[edit]

Why are we sending our readers to Wikipedia articles with this template? Why not keep the pronunciation guides within Wiktionary instead? When it comes to languages other than English, readers are referred to articles on phonology that are supposed to serve as explanatory articles on linguistics, not pronunciation guides.

Peter Isotalo 06:58, 24 March 2009 (UTC)

Good point. Even at Wikipedia, some languages have IPA guides that would be more helpful than the phonology articles (e.g. w:WP:IPA for Irish would be a better place to send people than w:Irish phonology). Better yet, we could copy w:WP:IPA for Irish here and link to it intra-Wiktionarily. Angr 11:57, 24 March 2009 (UTC)
I aggree. See above (#Greek) --flyax 10:00, 11 April 2009 (UTC)
We can use #switch to send people to our own or WP's pages based on language with the current link as default. Not sure how much server load that will generate, though. Just checked: we already do use #switch. This is easy, then. I'm for it.msh210 17:05, 26 March 2009 (UTC)
Since there seems to be no opposition to this suggestion, could we start by switching the Wikipedia links to Latin, Swedish and Spanish to our own pronunciation guides?
Peter Isotalo 11:28, 6 April 2009 (UTC)

English dialects[edit]

Hi. Can we change the English Wikipedia link to "IPA chart for English" as it's now been moved to w:IPA chart for English dialects - thanks! - Alison 05:41, 28 April 2009 (UTC)

Change link[edit]

I'm sure we've discussed this before, and I don't see why it hasn't happened yet. Would an admin please change the link to w:IPA chart for English so it points to Wiktionary:English pronunciation key instead? Thanks! —Angr 16:14, 14 September 2009 (UTC)

I think it will be better to revert to the previous version. Currently, for languages with no pronunciation guide, link redirects to non-existent page on Wikipedia. See зова for example. Maro 21:06, 14 September 2009 (UTC)

The current version is much better. For cases like зова all we need is to make redirects at Wikipedia. —Angr 21:53, 14 September 2009 (UTC)

I suggest changing it to sth like this:


no "lang=" parameter or "lang=en" – [[Wiktionary:English pronunciation key]]
 |el|no|gd|sv|cy| = [[Appendix:{{language|{{{lang}}}}} pronunciation]]
 |ab|ang|ar|arn|bn|ca|cau|cs|da|de|es|fa|fi|fr|ga|haw|he|hu|is|it|iu|ja|ko|la|nl|no|nv|oj|pl|pt|ro|ru|so|twf|uk|vi|yi=[[w:{{language|{{{lang}}}}} phonology]]
 |[[w:International Phonetic Alphabet]]

</pseudocode> Maro 20:44, 15 September 2009 (UTC)

The problem is that it would then have to be edited every time a new "XXX phonology" article is created at Wikipedia, unless the #ifexist switch has some way of looking into Wikipedia's space and seeing if the article exists there. —Angr 05:53, 16 September 2009 (UTC)

IPA isn't only used for English[edit]

The IPA: should't redirect to w:IPA chart for English, because IPA isn't only used to transcribe English. Instead, it should redirect to w:Wikipedia:IPA. --Mahmudmasri 04:52, 17 September 2010 (UTC)

It only links to w:IPA chart for English for English pronunciations. In, for example, Hebrew pronunciations, it links to w:Hebrew phonology (IPA(key): ...). --Yair rand (talk) 05:13, 17 September 2010 (UTC)
What about using it here Appendix talk:Egyptian Arabic Swadesh list#Broad Transcription?? It should link to w:Wikipedia:IPA in that case. --Mahmudmasri 09:06, 17 September 2010 (UTC)
In the main namespace there's a bot that will add the correct language if none is specified. For appendices, you have to add it yourself using lang=. Mglovesfun (talk) 09:09, 17 September 2010 (UTC)
Examples? I don't get you. --Mahmudmasri 09:20, 17 September 2010 (UTC)
Fixed, thanks. (See [1], [2].) —RuakhTALK 12:23, 17 September 2010 (UTC)


Would it be possible to add an optional parameter for the pronunciation of the plural version of the word? I ask because words in Aramaic often have the same basic spelling in the singular and plural (so having two separate articles is impossible), but their pronunciations differ. Adding a couple of different subheaders underneath just to have "Plural form of X" would be tiresome. The German Wiktionary regularly has the pronunciation of both the singular and plural forms (even when the plural form is spelled differently and has its own article), see here as an example. Preferably, it would look something like that (the IPA entry with the singular, then a comma followed by "plural:" and the IPA entry for the plural). Also, it might be a good idea to add multiple parameters for different plural pronunciations. --334a 02:24, 20 October 2010 (UTC)

Take a look at entries like amaverimus and palma, where there are multiple Pronunciation sections. Would this accomplish what you need? Such issues are common in Latin, where there are identically spelled forms of a given word that are pronounced differently. --EncycloPetey 02:31, 20 October 2010 (UTC)
Hmm, good point. That Latin examples also reminded me of other non-plural forms of Aramaic words that are identical in spelling but different in pronunciation, and you would have to solve those problems using another method from the one I explained above. Alrighty then, I guess I'll just have to overcome my laziness and do it the established way. :) --334a 16:26, 23 October 2010 (UTC)
Just add the IPA to the plural entry? Mglovesfun (talk) 16:32, 23 October 2010 (UTC)

link within site if lang=en[edit]

Could the template link to Wiktionary:IPA pronunciation key (especially instead of w:English phonology when lang=en)? Perhaps it should also be more prominent that clicking it will lead to a pronunciation guide. — lexicógrafa | háblame — 14:34, 18 October 2011 (UTC)


I'm just wondering, why is this template, which is (in my opinion) the most descriptive template for pronunciation, not on this wiki? I was just reading ruthless, wondering if Google Translate Speech had its pronunciation correct, and I had to look up the correct pronunciation that matched u: in a quite large table with a lot of weird characters, not knowing if the : was part of the preceding or succeeding character. I think it would be a very useful thing to have that template where you can just hover over the letter.Joeytje50 (talk) 20:15, 1 October 2012 (UTC)

HTML lang attribute[edit]

If there is a language set, then the lang attribute should appear in the HTML, with the appropriate variant subtag for IPA. For example:

<span lang="en-fonipa"> . . . </span>

If there is no language set, then either the empty string or the code und (undetermined language) indicates this, but the code is necessary to add the subtag:

<span lang="und-fonipa"> . . . </span>

Can someone familiar with the template add this?


 Michael Z. 2013-02-09 18:55 z

Oppose until we resolve the already-known issues with this. —RuakhTALK 19:35, 9 February 2013 (UTC)


There should be a space after the colon, so it’s “IPA: […]”, and not “IPA:[…]”. 〜britannic124 (talk) 19:25, 9 February 2015 (UTC)

I brought this up a few days ago at the Grease Pit, but no one's responded so far. —Aɴɢʀ (talk) 20:17, 9 February 2015 (UTC)

|ni= params[edit]

@CodeCat Unless I am crazy (which is a distinct possibility), it does not seem like this method works correctly:

* IPA(key): /hɪˈdʒɑːb/, /hɪˈdʒæb/[1]
  1. ^ hijab” in Dictionary.com Unabridged, Dictionary.com, LLC, 1995–present.

Thoughts? —JohnC5 07:55, 3 June 2015 (UTC)

Why, what's wrong with it? —CodeCat 12:30, 3 June 2015 (UTC)
It generates the literal text "<ref>" and "</ref>" instead of actual ref tags. —Aɴɢʀ (talk) 13:43, 3 June 2015 (UTC)
That's strange, it should just leave those. —CodeCat 14:21, 3 June 2015 (UTC)
How do we fix this problem? 20:18, 3 June 2015 (UTC)
I think I see it now. The ref tags are inserted by the module, they're not being given as part of the parameters. As far as I know, Lua doesn't process HTML tags in the output, just like it passes { } through without processing. I'm not sure how to get around it though, I'll have to see. —CodeCat 21:20, 3 June 2015 (UTC)
What if, as I have shown above, you just make sure users add the <ref> tag in the param? I know it is not super elegant, but it may be the best you can get. —JohnC5 21:28, 3 June 2015 (UTC)
That's just a workaround and it doesn't solve the real problem. —CodeCat 22:22, 3 June 2015 (UTC)
It at least allows you to cite each transcription specifically but it does not obviate the need for <ref> tags. Otherwise I have no idea how to fix this unless the preprocessor treats {{#tag:ref}} differently than <ref>. —JohnC5 22:29, 3 June 2015 (UTC)
It's fixed, see my latest change to Module:IPA. But I have no idea why it has to be done that way, it's not exactly very intuitive... —CodeCat 00:09, 4 June 2015 (UTC)
Yeah, that's weird. Glad it's fixed though. 00:13, 4 June 2015 (UTC)
Apparently, just like templates, we can't use wiki tags like that (of course we can use HTML tags). Did you comment that part in your last change by mistake? The purpose of it looks to be adding a cleanup category to entries that have used ref tag in input. --Z 06:21, 4 June 2015 (UTC)

Nocat parameter?[edit]

For pages such as Zuch. DTLHS (talk) 23:40, 17 October 2015 (UTC)

This template should only be used to list pronunciations in bullets in pronunciation sections. In running text, use {{IPAchar}}. —CodeCat 23:41, 17 October 2015 (UTC)

Lang or 1st parameter[edit]

@Erutuon Many of our existing templates now accept the language code as either lang= or as the first parameter. Can this feature be added to {{IPA}} as well? See {{compound}} and Module:compound/templates for how it might be implemented. —Rua (mew) 17:31, 21 September 2017 (UTC)

@CodeCat: That could certainly be done, but a discussion should be started in the Beer Parlour first. I would rather not do that myself at the moment. I mean, both options would be supported, but there might be practical issues that need to be discussed, and people should be made aware. — Eru·tuon 00:53, 22 September 2017 (UTC)


So, I've noticed that entries with the parameter lang=dz don't link to the existing Appendix:Dzongkha pronunciation, but rather to the nonexistent w:Dzongkha phonology. Is there any reason in particular why this is happening, or is it just that it takes a bit to update itself, and could someone please fix it if it happens to be the former? Thanks! -/ut͡ʃxʎørnɛja / (탁ᷞ, кон-, ឯឌឹត្ស, 𐎛𐎓𐎄𐎛𐎚𐎒). 01:03, 3 June 2019 (UTC).

@Учхљёная: Just add the language code for Dzongkha to the langcodes table in Module:IPA/data to tell Module:IPA that it has a pronunciation appendix on Wiktionary. (I might try making this automatic though.) — Eru·tuon 03:44, 3 June 2019 (UTC)
@Erutuon: Ah, thanks! -/ut͡ʃxʎørnɛja / (탁ᷞ, кон-, ឯឌឹត្ស, 𐎛𐎓𐎄𐎛𐎚𐎒). 12:03, 3 June 2019 (UTC).
@Учхљёная: Sorry about deleting Dzongkha. I guess the Dzongkha page had been added after the last dump came out so my search didn't find it. — Eru·tuon 18:59, 8 June 2019 (UTC)
@Ertutuon: Nah, it's fine. I only created it a few days ago and don't know how to add it to the dump, I guess. -/ut͡ʃxʎørnɛja / (탁ᷞ, кон-, ឯឌឹត្ស, 𐎛𐎓𐎄𐎛𐎚𐎒). 19:03, 8 June 2019 (UTC).
@Учхљёная: Don't worry, there's nothing you need to do. Everything on Wiktionary is automatically included. It's just that I was working from the May 20th dump, generated before you'd created Appendix:Dzongkha pronunciation; now that the all-titles file for the June 1st dump has come out (it takes a few days for the dump to be generated), the page is listed in it. — Eru·tuon 22:58, 8 June 2019 (UTC)