Template talk:IPA

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconWikipedia Help Template‑class
WikiProject iconThis template is within the scope of the Wikipedia Help Project, a collaborative effort to improve Wikipedia's help documentation for readers and contributors. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. To browse help related resources see the Help Menu or Help Directory. Or ask for help on your talk page and a volunteer will visit you there.
TemplateThis template does not require a rating on the project's quality scale.
WikiProject iconLinguistics: Phonetics Template‑class
WikiProject iconThis template is within the scope of WikiProject Linguistics, a collaborative effort to improve the coverage of linguistics on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
Taskforce icon
This template is supported by Phonetics Task Force.

Prevent line break after initial slash[edit]

Take for instance the following paragraph:

In English, the longest possible initial cluster is three consonants, as in split /ˈsplɪt/, strudel /ˈstruːdəl/, strengths /ˈstrɛŋkθs/, and "squirrel" /ˈskwɪrəl/, all beginning with the /s/ or /ʃ/, containing /p/, /t/, or /k/, and ending with /l/, /r/, or /w/.

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)[reply]

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)[reply]
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)[reply]
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)[reply]
With the transition to Lua, the template now automatically prevents wrapping except at spaces. Nardog (talk) 06:19, 18 September 2023 (UTC)[reply]

Broken?[edit]

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

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)[reply]
Should have seen this coming and asked the module be protected. My bad. Nardog (talk) 16:57, 15 September 2023 (UTC)[reply]

New module deployment[edit]

@Nardog: 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)[reply]

@Belbury: Do you still see the articles broken? This module has been vandalized recently. Janhrach (talk) 13:23, 15 September 2023 (UTC)[reply]
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)[reply]
Should have seen this coming and asked the module be protected. My bad. Nardog (talk) 16:57, 15 September 2023 (UTC)[reply]

@Nardog: 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)[reply]

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)[reply]

Override of text-wrapping breaking pages[edit]

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)[reply]

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)[reply]
Any reason why it can't just adhere to existing rules like it used to? · • SUM1 • · (talk) 08:42, 25 September 2023 (UTC)[reply]
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 <span class="wrap">...</span>. 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)[reply]

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

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 Wikipedia:Redirects for discussion/Log/2023 December 27 § T:IPA until a consensus is reached. Queen of Hearts ❤️ (she/they 🎄 🏳️‍⚧️) 00:43, 27 December 2023 (UTC)[reply]