Template talk:Sound sample box align right

From Wikipedia, the free encyclopedia

Contents

[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:48, 20 December 2006 (UTC)

What exactly is the edit you want made to this template? Do you want this other template added to this one in order to categorise it? --bainer (talk) 02:59, 22 December 2006 (UTC)

[edit] Request to update the code of the template

{{editprotected}} Can an admin please replace the code with the following? There are some codes which have no reason to be there, and changing the width to 240px since that's the size of the player + graphics on {{Listen}}. Can you also update it with modifications (namely change float: and clear: to left) to {{Sound sample box align left}}. --antilivedT | C | G 05:55, 8 October 2007 (UTC)

<div style="float:right; clear:right; border:1px solid #CCCCCC; background:white; width:240px; margin:3px 0 3px .5cm; padding:3px;">
<div style="font-weight:bold">{{{1}}}</div>

<noinclude>[[Category:Audio templates|{{PAGENAME}}]]</noinclude>
Y Done Tra (Talk) 16:03, 21 October 2007 (UTC)
If the width of the player and graphics is 240px, shouldn't the box be a little wider than that? Now whenever I see one of the boxes, the player and some of the words jut outside of the box. 17Drew 05:13, 22 October 2007 (UTC)
Yeah I realised that, {{Listen}} has 1em of margin around it, and since 1em is variable depending on the font-size, you can't really make it fit in many font-sizes by declaring something like 250px. Maybe a 1em padding on here will do? Don't have the time to test it now though. --antilivedT | C | G 09:41, 22 October 2007 (UTC)

[edit] Request to update the code

{{editprotected}}

Can an admin please replace the template and also {{Sound sample box align right}} (with modification from float:right and clear:right to float:left and clear:left) with this code? My last code forgot to take in account of the margin in {{Listen}}, and I've now fixed it. I've also added a parameter for width and a default text for the title. Thank you. --antilivedT | C | G 07:31, 23 October 2007 (UTC)

<div style="float:right; clear:right; border:1px solid #CCC; background:#FFF; width:{{{width|240}}}px; margin:3px 0 3px .5cm; padding: 1em 2em 0 1em; ">
<div style="font-weight:bold">{{{1|Music Sample:}}}</div>

<noinclude>[[Category:Audio templates|{{PAGENAME}}]]</noinclude>
Y Done Tra (Talk) 15:50, 23 October 2007 (UTC)

[edit] Are you aware of how this looks in Windows + Firefox with the thumbnail size preference set > 200px?

I'm a bit amazed at how bad this sample box looks since the new button/embedded player format was adopted. See this screenshot to see what I mean (the button width is way out of bounds). This problem is not specific to one article, and is not present in the similar template Spoken Wikipedia. This screenshot was taken in Firefox 2.0.0.9 and Windows XP (SP2) fyi. Any possibility of a fix? - Phorque 14:29, 2 November 2007 (UTC)

It works perfectly on my box with Firefox 2.0.0.8 and Gran Paradiso on Ubuntu 7.10. Does anyone else experience similar problems? --antilivedT | C | G 11:12, 3 November 2007 (UTC)
Hmmm, seeing as you can confirm it's not generally a Firefox problem, I tried a few other things. It seems as soon as I'm logged in, the button goes strange... so I guess this has something to do with one of the popup scripts I have in my monobook.js... I'll go see if I can figure out if one of those is responsible. Phorque 19:25, 4 November 2007 (UTC)
Update: Turns out it had nothing to do with either of those scripts (which I commented out to test the hypothesis). This seems directly related to the Wikipedia thumbnail size preference. I originally had this set to 250px, but reducing it to 120px seemed to proportionally shrink the button. Similarly, increasing to 180px enlarged the button, but not to the point of being out of bounds. So it would seem something to do with the button and/or its image is subject to the thumbnail preference. My guess would be that the logical route to take is to set whatever is varying to a fixed width so that Wikipedia preferences don't interfere with the button. Like I said, the Spoken Wikipedia template doesn't have the same problem, so maybe it could hold a clue as to how to stop this happening. - Phorque 19:45, 4 November 2007 (UTC)
I have it on 200px and {{Listen}} is tailored for that is well. Unfortunately I cannot change it since the size of the button is set somewhere in the actual plugin itself, not in {{Listen}} or here. --antilivedT | C | G 05:32, 5 November 2007 (UTC)

[edit] Interwiki

Please add tr:Şablon:Örnek müzik kutusu sağ. Thanks --60.240.112.112 (talk) 05:57, 10 February 2008 (UTC)

[edit] editprotected

{{editprotected}} Please add {{space|1}} before {{{1|Music Sample:}}}. This will eliminate the gross way that the word '''Music Sample''' touches the border.

<div style="float:right; clear:right; border:1px solid #CCC; background:#FFF; width:{{{width|240}}}px; margin:3px 0 3px .5cm; font-size:8pt; text-align:left; padding:4pt; padding-left:0; line-height:1.25em">
<div style="font-weight:bold; font-size:9pt ">{{space|1}}{{{1|Music Sample:}}}</div>

—Preceding unsigned comment added by Tkgd2007 (talkcontribs) 04:49:38, 2008-05-24 (UTC)

Or just remove the "padding-left:0;", or go back to this revision for bigger paddings. --antilivedT | C | G 04:56, 24 May 2008 (UTC)
Y Done --CapitalR (talk) 17:24, 24 May 2008 (UTC)