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=Crossroads.ogg| title="Cross Road Blues"| description=Performed in 1937 by Robert Johnson, a Delta blues guitarist| 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 item| filename=caldonia.ogg| title="Caldonia"| description=Jump blues performed by Louis Jordan in 1945| format=[[Ogg]]}} {{multi-listen end}}
is rendered like this:
- "Where Did You Sleep Last Night?" (file info) — play in browser (beta)
- Performed by Leadbelly, a folk singer and guitarist; this Southern Appalachian song dates to the 1870s
- "Cross Road Blues" (file info) — play in browser (beta)
- Performed in 1937 by Robert Johnson, a Delta blues guitarist
- "Po’ Gal" (file info) — play in browser (beta)
- East Coast blues, performed by Zora Neale Hurston in 1939
- "Caldonia" (file info) — play in browser (beta)
- Jump blues performed by Louis Jordan in 1945
- Problems playing the files? See media help.
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
[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
- "Cross Road Blues" (file info)
- Performed in 1937 by Robert Johnson, a Delta blues guitarist
- "Po’ Gal" (file info)
- East Coast blues, performed by Zora Neale Hurston in 1939
- "Caldonia" (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:
- "Where Did You Sleep Last Night?" (file info)
- Performed by Leadbelly, a folk singer and guitarist; this Southern Appalachian song dates to the 1870s
- "Cross Road Blues" (file info)
- Performed in 1937 by Robert Johnson, a Delta blues guitarist
- "Po’ Gal" (file info)
- East Coast blues, performed by Zora Neale Hurston in 1939
- "Caldonia" (file info)
- Jump blues performed by Louis Jordan in 1945
- Problems listening to the file? See media help.
-- 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_version — Omegatron 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)