Template talk:IPA

message: 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)
replies: text: 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)
replies: text: 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)
replies: text: This comment does not seem related to what this section is about. It appears to be about the vandalism reported in #Broken? below. Nardog (talk) 07:22, 18 September 2023 (UTC)

text: With the transition to Lua, the template now automatically prevents wrapping except at spaces. Nardog (talk) 06:19, 18 September 2023 (UTC)
thread_title:  Prevent line break after initial slash 

message: All pages using this template seem to be loading slowly now? John Womble (talk) 10:09, 15 September 2023 (UTC)
replies: text: 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)
replies: text: Should have seen this coming and asked the module be protected. My bad. Nardog (talk) 16:57, 15 September 2023 (UTC)
thread_title:  Broken? 

message: It looks like this edit might have coincided with some templates breaking down the line, possibly limited to pages that use ? 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)
replies: text: Do you still see the articles broken? This module has been vandalized recently. Janhrach (talk) 13:23, 15 September 2023 (UTC)
replies: text: 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)
replies: text: Should have seen this coming and asked the module be protected. My bad. Nardog (talk) 16:57, 15 September 2023 (UTC)

text: 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)
thread_title:  New module deployment 

message: 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)
replies: text: 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)
replies: text: Any reason why it can't just adhere to existing rules like it used to? · • SUM1 • · (talk) 08:42, 25 September 2023 (UTC)
replies: text: Because we want wrapping to occur at spaces in the vast majority of cases. Imagine wrapping was prevented in Don Quixote#Notes, for instance. But without anything browsers wrap transcriptions at undesirable places too, like after slashes and stress marks—see #Prevent line break after initial slash 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  to change the template's behavior. Nardog (talk) 09:02, 25 September 2023 (UTC)
thread_title:  Override of text-wrapping breaking pages 

message: 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)
thread_title: Discussion at [[:Module talk:IPA/data#Template-protected edit request on 10 November 2023|Module talk:IPA/data §&nbsp;Template-protected edit request on 10 November 2023]]

message: The redirect 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)
thread_title:  "[[:T:IPA]]" listed at [[Wikipedia:Redirects for discussion|Redirects for discussion]] 

message: 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)
replies: text: 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)
thread_title:  Slashes and brackets 

message: 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  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  to fix Linter errors that cropped up in some situations. – Jonesey95 (talk) 22:09, 28 May 2024 (UTC)
replies: text: You can just use  inside  instead of the other way around. Nardog (talk) 00:57, 29 May 2024 (UTC)
thread_title:  Would a div tag option be useful?