Template talk:IPA

Prevent line break after initial slash
Take for instance the following paragraph:

In English, the longest possible initial cluster is three consonants, as in split, strudel , strengths , and "squirrel" , all beginning with the  or ,  containing , , or , and ending with , , or.

Viewing on mobile, many of these have a line break after the initial slash. It should be nowrapped.  Nixinova   T   C   00:50, 5 December 2021 (UTC)


 * It's not just on mobile. I'm editing on a PC and came here looking for an answer to this very issue. Any updates? Best practices? Erusse estelinya (talk) 10:36, 4 September 2023 (UTC)
 * Here to ask the same question. See: Tzum, for instance. I have no idea how to fix it. The page seems to be loading constantly as well. W.G.J. (talk) 10:02, 15 September 2023 (UTC) Edit: appears to work now. W.G.J. (talk) 10:26, 15 September 2023 (UTC)
 * This comment does not seem related to what this section is about. It appears to be about the vandalism reported in below. Nardog (talk) 07:22, 18 September 2023 (UTC)
 * With the transition to Lua, the template now automatically prevents wrapping except at spaces. Nardog (talk) 06:19, 18 September 2023 (UTC)

Broken?
All pages using this template seem to be loading slowly now? John Womble (talk) 10:09, 15 September 2023 (UTC)


 * User:Grahamd87 has been vandalizing Module:IPA: https://en.wikipedia.org/w/index.php?title=Module%3AIPA&diff=1175480718&oldid=1175447058 213.230.82.107 (talk) 10:17, 15 September 2023 (UTC)
 * Should have seen this coming and asked the module be protected. My bad. Nardog (talk) 16:57, 15 September 2023 (UTC)

New module deployment
It looks like this edit might have coincided with some templates breaking down the line, possibly limited to pages that use IPA-ja? The Godzilla article now has line breaks instead of some of its content, in the first sentence. Other articles like wasabi were fine after forcing a cache purge of the page, but it isn't working for everything.

I'm not sure if or how it relates to this template, but only started noticing the issue today. Belbury (talk) 10:14, 15 September 2023 (UTC)


 * Do you still see the articles broken? This module has been vandalized recently. Janhrach (talk) 13:23, 15 September 2023 (UTC)
 * No, all usages of IPA-ja look fine now. Good to hear it's been fixed. Looks like I must have been reporting this at the same time as the previous thread, which I hadn't seen. Belbury (talk) 14:13, 15 September 2023 (UTC)
 * Should have seen this coming and asked the module be protected. My bad. Nardog (talk) 16:57, 15 September 2023 (UTC)

This template is suddenly causing a bunch of div-span-flip lint errors in Kashmiri language, Talk:Jian'ou dialect, Geʽez, Talk:American English/Archive 4, Talk:Chastity, Talk:Almond. —Anomalocaris (talk) 21:26, 15 September 2023 (UTC)


 * Looks like another consequence of the vandalism. I've purged the pages and they've disappeared from LintErrors. Nardog (talk) 22:30, 15 September 2023 (UTC)

Override of text-wrapping breaking pages
The new module overrides table text-wrapping rules (forces wrapping), meaning lyric tables such as on Hen Wlad Fy Nhadau now look awful. This should be fixed; nowrap should be made default; or a parameter-filling operation should be rolled out. · • SUM1 • ·   (talk) 05:24, 25 September 2023 (UTC)


 * Defaulting to nowrap would be awful. I've fixed them as far as I can find. Let me know if I missed any. Nardog (talk) 06:52, 25 September 2023 (UTC)
 * Any reason why it can't just adhere to existing rules like it used to? · • SUM1 • ·    (talk) 08:42, 25 September 2023 (UTC)
 * Because we want wrapping to occur at spaces in the vast majority of cases. Imagine wrapping was prevented in Don Quixote, for instance. But without anything browsers wrap transcriptions at undesirable places too, like after slashes and stress marks—see above. So the new module by default wraps the entire transcription in nowrap but allows wrapping at spaces by enclosing them in . A side effect of this is that nowrap at an element containing the IPA template no longer takes effect inside the transcription, but this is trivial compared to the benefit, and you can always use wrap to change the template's behavior. Nardog (talk) 09:02, 25 September 2023 (UTC)

Discussion at Module talk:IPA/data § Template-protected edit request on 10 November 2023
You are invited to join the discussion at Module talk:IPA/data § Template-protected edit request on 10 November 2023. Psiĥedelisto (talk • contribs) please always ping! 05:10, 10 November 2023 (UTC)

"T:IPA" listed at Redirects for discussion
The redirect [//en.wikipedia.org/w/index.php?title=T:IPA&redirect=no T:IPA] has been listed at redirects for discussion to determine whether its use and function meets the redirect guidelines. Readers of this page are welcome to comment on this redirect at  until a consensus is reached. Queen  of   Hearts ❤️  (she/they 🎄 🏳️‍⚧️) 00:43, 27 December 2023 (UTC)

Slashes and brackets
Could the template detect if the text is surrounded by / / or [ ] to not add them itself? Currently we can have ugly things like and. -- Error (talk) 17:10, 22 May 2024 (UTC)


 * As long as it's in the guide-linking mode (i.e. the first parameter is a language code), it should use brackets except for English, per MOS:PRON. Otherwise it could link a phonemic transcription to a phonetic key. Nardog (talk) 07:40, 23 May 2024 (UTC)

Would a div tag option be useful?
Recently, an editor used this template to wrap a block of content that was already wrapped in  tags, which caused a Linter "span tag wrapping a div tag" error. I reverted because I didn't see a way for this template to emit div tags, and I didn't know if that would be useful.

I added a test case, since removed because I don't want to clutter up the Linter error reports, showing how the template was used in that case. If it would be useful and in conformity with the purpose of this template, a yes option could presumably be added to the module code; that option would use div tags instead of span tags in this template's output. We inserted a similar option into Collapsed infobox section begin to fix Linter errors that cropped up in some situations. – Jonesey95 (talk) 22:09, 28 May 2024 (UTC)


 * You can just use inside  instead of the other way around. Nardog (talk) 00:57, 29 May 2024 (UTC)