Jump to content

Template talk:Audio/Archive 4

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Archive 1Archive 2Archive 3Archive 4

Playback

Huh? What's happened? I can't play the files anymore by clicking on the audio icon. I just get connected to the image page. --Kjoonlee 23:15, 20 September 2007 (UTC)

{{editprotected}}

[[:Media:|]] 

Kindly change the first occurence of "Image" to "Media", please. We have an info link to the :Image description page. We need a :Media link for playback. --Kjoonlee 01:43, 21 September 2007 (UTC)

 Done. =) --krimpet 01:48, 21 September 2007 (UTC)

"inline" playback?

Hello. How do I get the playback to occur more seamlessly? I'm browsing Help:IPA and every time I click an audio icon I have to save a temp file to my drive and a windows media player window launches. That's a lot of overhead for what ends up being one second of sound. I'd much prefer something like the "Listen" template where everything happens on the webpage. It looks like "Listen" is designed for streaming larger data files so its not used for the brief files at Help:IPA, but is there anyway I can get the in-the-page playback from the "Audio" template? Thanks. DavidRF (talk) 05:33, 27 July 2008 (UTC)

Support, if possible. SharkD (talk) 20:00, 15 August 2008 (UTC)

Well, we could get it down to something like this: but I think more may require a code update. Shoemaker's Holiday (talk) 13:08, 12 October 2008 (UTC)

Open file in new window/tab

On my computer clicking the link redirects the current window/tab away from the article to the file itself. Assuming "inline" playback (discussed above) cannot be accomplished, is there a way that clicking on the link could be made to open the file in a new window/tab instead of the current one? In HTML this is accomplished by adding target="_blank" to the a element. SharkD (talk) 19:56, 15 August 2008 (UTC)

Minor accessibility improvement

(This is a followup to Template talk:Usage of IPA templates #Accessibility problem, as templates like {{Pronounced}} had a similar problem until they were fixed recently.)

While reviewing Darjeeling for featured-article status I noticed a little accessibility problem with {{Audio}}. Currently the article uses this:

{{Audio|Darjeeling.ogg|दार्जीलिंग}})

which currently generates this:

दार्जीलिंग)

The part that has an accessibility problem is the icon, which is generated like this:

[[File:Loudspeaker.svg|11px|link=File:Darjeeling.ogg|Darjeeling.ogg]]

which generates the following HTML:

<a href="/wiki/File:Darjeeling.ogg" title="Darjeeling.ogg"><img alt="Darjeeling.ogg" src="http://upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Loudspeaker.svg/11px-Loudspeaker.svg.png" width="11" height="11" /></a>

When this HTML is read aloud to a visually impaired reader, using a screen reader such as JAWS or Orca, you might hear something like this:

"link Darjeeling dot oh gee gee"

where the word link is said by the screen reader as an audio cue that this is a link.

Hearing "Darjeeling dot ess vee gee" is not that friendly to the visually impaired reader. The file name might not sound at all like the audio in question. I suggest that this be changed to something short and friendlier:

"link info"

by adding |alt=Info to the image in question. I've created and tested a simple sandbox patch to do this, and suggest that it be installed. Eubulides (talk) 19:08, 20 November 2009 (UTC)

I assume you propose using "Info" because that is what the magnifying glass says in thumbs ? —TheDJ (talkcontribs) 14:00, 23 November 2009 (UTC)
My inspiration was actually <imagemap>. For example:
Alt text
<imagemap>
Image:Example2.png|100px|alt=Alt text
default [[Main Page|Title text]]
</imagemap>
This generates an image (the little i-in-a-blue-circle) whose alt text and title text are both "About this image"; I figured that "Info" was an acceptable (short) substitute, but "About this sound" would also be fine of course. (By the way, the thumb magnification icon currently has no alt text; it should say "Enlarge", as its title text does, but I don't know how to fix this; do you?) Eubulides (talk) 21:43, 23 November 2009 (UTC)
Come to think of it, the title text for the image should be either "Info" or "About this sound" as well, as it is confusing for a tooltip to give a file name (which could be fairly arbitrary and long and confusing). So I propose instead that we use this even simpler sandbox patch, which uses "About this sound" for both alt text and title text. (The phrase "Info" would be fine too, of course.) Eubulides (talk) 18:33, 25 November 2009 (UTC)

{{editprotected}} No further comment, so I'm adding an editprotected template. In light of the above discussion, please install this sandbox patch to fix the accessibility problem. Thanks. Eubulides (talk) 10:14, 29 November 2009 (UTC)

 Done — Martin (MSGJ · talk) 10:38, 29 November 2009 (UTC)