Template talk:Audio

message: Is there a reason for the nowrap declaration? It gives odd rendering on some wider pronunciations, e.g. 1, 2, 3, 4, 5 (resize the browser window until you see the problem). --MinorContributor (talk) 14:46, 8 July 2009 (UTC)
replies: text: I understand that the nowrap is meant to tie the speaker icon and the first word together; but it actually ties all the words, resulting in odd line-breaks. I notice that two of my examples have been edited to use a different audio template. --MinorContributor (talk) 17:32, 5 April 2010 (UTC)
replies: text: You're right; I noticed the same problem. . (For future reference,  was the edit that introduced it) --Waldir talk 15:54, 15 July 2011 (UTC)
thread_title:  white-space: nowrap 

message: The italian template isn't more Template:Audio but Template:Link Audio --Razzairpina (talk) 11:00, 21 April 2010 (UTC)
replies: text: You can update the interwiki link yourself on Template:Audio/doc. — Martin (MSGJ · talk) 16:37, 19 May 2010 (UTC)
thread_title:  Italian link 

message: Use :File: instead of :Image: emijrp (talk) 11:17, 10 September 2010 (UTC)
thread_title:  :Image: 

message: Hi. There are instances where the page breaks soon after the speaker icon, and a space is visible at the beginning of the next line, which looks wrong. See for example Carl Linnaeus (using Firefox, try resizing until the break is in the right place). Thanks. 220.246.157.2 (talk) 07:58, 19 August 2012 (UTC)
thread_title:  Something's wrong with &amp;nbsp; 

message: Due to a change to this template, lots of files suddenly show up as unused. This means that lots of audio files may be deleted as "orphaned fair use". See Wikipedia talk:Non-free content#How to interpret WP:NFCC#7 for audio files for a discussion related to this. --Stefan2 (talk) 21:52, 24 May 2013 (UTC)
thread_title:  [[WP:NFCC#7]] problem 

message: Please remove  style="white-space:nowrap" and add  ending just after the no-break space. This way line breaks are allowed inside the link text, but not between the text and the speaker icon. Currently the text will not wrap even if it's very long, for example in the lead section at Nazi Party ("Nationalsozialistische Deutsche Arbeiterpartei" is wider than my mobile phone's screen in portrait). I've made the changes at User:Hairy Dude/Audio with a demonstration at User:Hairy Dude/sandbox.
Hairy Dude (talk) 15:20, 2 November 2015 (UTC)
replies: text: What if we just removed the nowrap altogether? I'm not convinced your code would fix this issue. And I don't understand your test on User:Hairy Dude/sandbox because you're passing all sorts of spans and classes in the second parameter. — Martin (MSGJ · talk) 11:08, 3 November 2015 (UTC)
replies: text:  The span is just manually substed from , which uses this. I've removed it now since it isn't pertinent to this discussion (permalink). The classes don't affect styling (except they may force a Unicode font) and the other attributes tell screen readers and the like what language it is. I added a border to demonstrate that it doesn't wrap after the icon. As for removing the nowrap, there are several discussions above about adding it, so clearly editors feel the need for it. Hairy Dude (talk) 11:12, 11 November 2015 (UTC)
replies: text: So the idea is that it will not break between the icon and the first word, but it can break after that? I would have expected the nbsp to achieve that by itself, but apparently not. By the way, the edit that introduced this () seems to have unintentionally reintroduced some 2010 code back into the template, so I'm not sure it was based on a consensus discussion. — Martin (MSGJ · talk) 11:33, 11 November 2015 (UTC)

text: No further comments, so I have deployed the proposed code. — Martin (MSGJ · talk) 11:45, 12 November 2015 (UTC)
thread_title:  Template-protected edit request on 2 November 2015 

message: Why oh why is the speaker icon linking to the file?
For the life of me I couldn't figure out the link between the .ogg (linked to by "listen") and the actual file page. It turns out that link IS included, but using the speaker icon.
It never occurred to me to click (or hover over) the speaker icon since it is associated with sound.
We really need a better arrangement. If anything, the speaker icon should link to the listen link.
Obviously the file link should still be there, but not associated with the speaker icon.
CapnZapp (talk) 20:09, 11 March 2019 (UTC)
replies: text: For what it's worth, some deprecated similar templates used a blue icon like  to indicate the icon provided a link. Maybe that's at least better than the black one? Nardog (talk) 14:57, 27 June 2019 (UTC)
thread_title:  Speaker Icon 

message: MIDI files can now be played just like any other file when shown via [[File:..., as shown here, but not via [[Media:..., which is the method this template uses. This means a MIDI can be played on its file description page, e.g. :File:Beethoven Op. 33 no. 1.mid, but not from the main link this template generates, as in , which usually results in the browser downloading the MIDI file. Currently about 900 articles link to MIDI files using , which is about 8% of all articles with the template.
So it seems it is more user-friendly for this template to link to the description page rather than the file itself when a MIDI is given, using Module:String to determine the file extension, as in  (). I'm wondering if this is a good idea. Nardog (talk) 12:29, 6 July 2019 (UTC)
thread_title:  What to do with MIDIs? 

message: Please apply this diff from sandbox to add automatic categorization into :Category:Articles containing audio clips, which is largely unused. —⁠andrybak (talk) 14:20, 28 March 2020 (UTC)
replies: text: To clarify : after this edit to Template:Multi-listen start, the category will become much more populated. Previous categorization was done only manually. —⁠andrybak (talk) 15:12, 28 March 2020 (UTC)
replies: text:  That "audio clips" category currently has no documentation explaining why it exists, how it is populated, and how it is different from other, similar categories. Is there a discussion that you can link to that prompted these three edit requests? I am not objecting to your request, just seeking more information. As a template editor, I am responsible for ensuring that each template edit I perform, even on someone else's behalf, has a reasonable justification. – Jonesey95 (talk) 00:41, 29 March 2020 (UTC)
replies: text: , there was no prior discussion. I was just going through categories in :Category:Wikipedia maintenance, and noticed that :Category:Articles containing video clips has over eight thousand pages, while :Category:Articles containing audio clips at the time had less than ten. Populating it automatically by transclusions of audio templates in articles might be useful. —⁠andrybak (talk) 00:51, 29 March 2020 (UTC)
replies: text: Andrybak: You realize that audio clips can be added to articles in other ways as well, not using a template, don't you? So the "usefulness" of that category is limited. Anyway, what exactly would its "usefulness"? -- Michael Bednarek (talk) 04:11, 29 March 2020 (UTC)

text: for now, procedure disabling the edit request. The category was created in August 2019 by a now-blocked user with no prior discussion. Please establish consensus at a venue like WP:VPT before filing another request. (Also centralize discussions, please.) Nardog (talk) 04:37, 29 March 2020 (UTC)

text: Nominated the category for deletion. —⁠andrybak (talk) 11:35, 6 April 2020 (UTC)
thread_title:  Template-protected edit request on 28 March 2020 

message: I'm sure that actually getting this resolved would probably require involving the WMF and thus take forever, but just to note it, having the behavior when you click on "listen" for a pronunciation be going to a new page is a terrible way for the UI to work. There's no reason we couldn't have it just play the audio on the article page.  talk 05:19, 7 May 2021 (UTC)
replies: text: This is phab:T229169. Check out also my PlayAudioNow. Nardog (talk) 06:22, 7 May 2021 (UTC)
replies: text:  Thanks for the link; I'm glad this is at least pending on phab! And reader scripts don't count for anything in terms of reader-focused thinking as there's 0% chance readers will ever discover them, but it might make it easier for the developers to come up with something native.  talk 06:35, 7 May 2021 (UTC)
thread_title:  Clicking shouldn't open up an entirely new page 

message: Can anyone please change help to help? I have done it in the sandbox. 78.79.182.254 (talk) 23:58, 31 August 2022 (UTC)
replies: text: Not done: per WP:NOTBROKEN. P.I. Ellsworth , ed. put'r there 00:27, 1 September 2022 (UTC)
thread_title: Template-protected edit request on 31 August 2022

message:  currently results in an ugly code block due to the space before “listen” (example: ). Should the template trim the second argument before passing it into <phonos>? (I noticed this at Special:Diff/1180314752 – I assume that looked fine before the change to Phonos.) Lucas Werkmeister (talk) 18:37, 16 October 2023 (UTC)
replies: text: Fixed with . The underlying bug remains unfixed. – Jonesey95 (talk) 21:06, 16 October 2023 (UTC)
replies: text: @Jonesey95: The underlying bug is now fixed, do you want to revert the fix here? Lucas Werkmeister (talk) 12:08, 25 October 2023 (UTC)
replies: text: I already have. Nardog (talk) 12:19, 25 October 2023 (UTC)
replies: text: Alright, my bad for not checking :) thanks both! Lucas Werkmeister (talk) 17:23, 25 October 2023 (UTC)
thread_title:  Leading whitespace in second argument produces code block