Template talk:Multi-listen start

From Wikipedia, the free encyclopedia

Template:Multi-listen links to several audio files. It is meant to be used for groups of audio files set off from the text, like music clips or sound recordings. To apply it in an article use the following:

{{multi-listen start}}
{{multi-listen item|filename=name_of_file_1_on_commons.ogg|title=Title of this file|description=The description of this file|format=[[Ogg]]}}
{{multi-listen item|filename=name_of_file_2_on_commons.ogg|title=Title of this file|description=The description of this file|format=[[Ogg]]}}
{{multi-listen item|filename=name_of_file_3_on_commons.ogg|title=Title of this file|description=The description of this file|format=[[Ogg]]}}
{{multi-listen end}}

For instance:

{{multi-listen start}}
{{multi-listen item|
  filename=WhereDidYouSleepLastNight.ogg|
  title="Where Did You Sleep Last Night?"|
  description=Performed by Leadbelly, a folk singer and guitarist; this Southern Appalachian song dates to the 1870s|
  format=[[Ogg]]}}
{{multi-listen item|
  filename=Po'Gal.ogg|
  title="Po’ Gal"|
  description=East Coast blues, performed by [[Zora Neale Hurston]] in 1939|
  format=[[Ogg]]}}
{{multi-listen end}}

is rendered like this:

See also {{Listen}}, {{Audio}}, {{Audio-nohelp}}.

For an overview of audio templates in all language Wikipedias see: commons:List of the different audio-templates for the Wikipedias

Contents

[edit] CSS version

The {{click}} template was added today, which I think is an ugly, kludgy template, and shouldn't ever be used, but I won't revert immediately.

I've been working on a new version of the {{listen}} template, anyway, that would use semantic HTML and CSS instead of tables. So I applied the redesign to the multi-listen template too. Here it is, more or less finished (Bypass your cache if you don't see the speaker icon):

  • "Where Did You Sleep Last Night?" (file info)
    • Performed by Leadbelly, a folk singer and guitarist; this Southern Appalachian song dates to the 1870s
  • [[Media:{{{filename}}}|{{{title}}}]] ([[:Image:{{{filename}}}|file info]])
    • Performed in 1937 by Robert Johnson, a Delta blues guitarist
  • "Po’ Gal" (file info)
  • [[Media:|"Caldonia"]] ([[:Image:|file info]])
    • Jump blues performed by Louis Jordan in 1945
  • Problems playing the files? See media help.

The markup is a lot simpler and it will degrade to a plain list (which is a Good Thing) to user agents that don't have CSS, like this:


-- Blanked: CSS has been updated --

With the CSS, it will look more or less like the original template, but the icon will just be decoration and won't be clickable. This is a good thing, too, since the audio help link should be included explicitly anyway, and the image won't go to the image description page, either.

If everyone likes it and my css is clean, I'll add this to the site-wide css and then we can replace the templates.

I've added it to the site CSS for the purpose of demonstration, but it can be tweaked before the templates are replaced.

It gets rid of the extra newlines, too, so we won't need the span hack.

Suprisingly, it even works with the idiosyncratic uses like Ludwig_van_Beethoven#Media and Blues#Lyrics. Compare User:Omegatron/Sandbox/Listen compatibility (uses the regular template) and User:Omegatron/Sandbox/Listen test compatibility (uses my proposed CSS-based template).

See also Template_talk:Listen#CSS_versionOmegatron 22:43, 26 February 2006 (UTC)

I was being bold and added {{click}} with a link to Wikipedia:Media help because most internet viewers would click the icon and expect to be taken to an informational page, not the image information. Feel free to revert if you don't like the changes; I didn't quite like them myself. :-) Thanks! Flcelloguy (A note?) 01:55, 27 February 2006 (UTC)
Yeah. I agree that the icon should go to the help page, if it goes anywhere, but I don't like the click template. It doesn't work half the time and is kludgy. With this CSS version, the icon will be a background image decoration that isn't clickable at all, and just serves to set the links apart from the text of the article. — Omegatron 02:05, 27 February 2006 (UTC)
Using CSS instead of templates would be a good idea. How would it look for browsers which do not handle CSS?
The eventual use of this template isn't quite what I envisaged for the template, but there appears to be a standard usage of the template now that should probably not be changed. Dysprosia 11:34, 27 February 2006 (UTC)
This isn't "CSS instead of templates"; it's "CSS templates instead of table-based templates". Tables for visual layout is bad.
It just looks like a list without CSS. See above. — Omegatron 05:02, 19 March 2006 (UTC)

[edit] Is there a more compact version?

I just added 12 multi-listen items to Alice's Adventures in Wonderland#Media. That section now takes up an excessive amount of space at the bottom of the article. Can anyone suggest a good solution? dbenbenn | talk 17:01, 22 March 2006 (UTC)

Some articles (such as jazz) use this template in conjunction with the sample box. This practice is acceptable to me. Raul654 17:08, 22 March 2006 (UTC)

[edit] editprotect request

{{mprotected2}} has been updated to allow the name of the article with which the template is associated to be added as a parameter (i.e. {{mprotected2|Selena}}) will add this template to Category:Protected pages associated with Main Page articles . Sandy (Talk) 22:46, 20 December 2006 (UTC)


I don't follow. — Omegatron 23:51, 20 December 2006 (UTC)
Selena was the frontpage article, a day or two ago, and this must have been transcluded there -- as I understand, that's what this request was about. While the protection may have been related to that, initially, this template is transcluded onto well over 500 articles, and fits any reasonable definition of "high-risk," so the protection is probably intended to be more or less indefinite. Feel free to request a review of that, of course. Luna Santin 23:44, 22 December 2006 (UTC)
I still don't understand what's being asked for. — Omegatron 06:15, 25 December 2006 (UTC)

[edit] Interwiki request

{{editprotected}}

Please, add the following:

Thanks a lot. --Eleassar my talk 07:40, 18 June 2007 (UTC)

Y Done --ais523 13:56, 18 June 2007 (UTC)
Please add on French
Thanks! Antaya (talk) —Preceding comment was added at 08:16, 25 May 2008 (UTC)

[edit] Align play icons

The old format had txetual "play" links, so it was alright, but with this new format, it's makes some sections look quite ugly. Any way to make the long rectangular icons align? Or maybe use some smaller more squared ones? happypal (Talk | contribs) 21:44, 8 September 2007 (UTC)

Indeed. This is causing formatting errors in a number of featured articles, including Surfer Rosa and Doolittle (album). CloudNine 14:59, 9 September 2007 (UTC)

[edit] Sound samples

Is it just my browser, or does anyone else notice that the sound samples are ill-shaped within the page, and protrudes unto the written text of the article? Is anyone working on this, please? It's been like this for a while. Orane (talk) 19:21, 6 November 2007 (UTC)

[edit] Volume control

Would it be possible to add some kind of volume control setting which is saved with your other user settings? Shinobu (talk) 10:36, 25 April 2008 (UTC)