User talk:Sperling

From Wikipedia, the free encyclopedia

Contents

[edit] Float right

Why add an unneccessary template when the tables float fine with their own style setting? I can't see why we need to complicate these templates, with more nested templates (an extra load on the server) when they work fine already. ed g2stalk 21:03, 7 August 2005 (UTC)

I don't think they're working that fine. Many are missing clear: right, and virtually all (including the ones that use the infobox class from Common.css) try to generate the spacing around the float using margin, which doesn't have the desired visual effect where borders and backgrounds of other elements are involved, because the float doesn't "push aside" the block boxes it intersects, but only the line boxes inside them (visible for example when the underline below a section heading intersects a float). Padding + white background and white border are the only ways to solve this. The markup/CSS used by [[Image]] uses borders. I think the padding approach is preferrable because it makes the whole background of the float opaque, in case the float content doesn't do that already. However, both versions need an additional HTML element to apply the white border or padding on (the content element of the float cannot be used for this, because it often needs to have a visible border inside the padding), so a pure CSS solution isn't possible.
Technicalities aside, my main point is that there should be a simple, consistent way to get float boxes, that doesn't require the editor to be a CSS expert. The float-right-* templates do just that. If server load is really that much of an issue, something like <div class="float-right"> could be used in templates to avoid the nested template calls (incidentally, Template:Infobox CVG uses 5 - 10 nested calls already, so I'm not convinced another two would make that much of a difference).
There's really too much unnecessary manual CSS styling going on anyway, most of it related to tables and floats. If there were a couple of predefined styles to choose from that were easy to use and produced good looking tables (ok, there is prettytable, but I haven't seen it used in any article source I've edited or looked at) and floats, most of that could be avoided. I'd probably have written some CSS for this by now, but all style sheets are protected (admittedly a necessity) and even simple suggestions to fix bugs in the existing styles are being ignored on the talk pages. I think there's lots to be done on the CSS/markup side of Wikipedia, but it doesn't seem that work on these things from non-admins is exactly encouraged. --K. Sperling 11:15, August 8, 2005 (UTC)
Your edit of Template:float-right-begin actually breaks it. Forcing an opaque (white) background is intentional. For example, look at Occupied Japan now, the section rule runs through the box. Of course it would be nice if CSS permitted setting the background color to whatever color is defined for the main document, but it doesn't. --K. Sperling 11:37, August 8, 2005 (UTC)
Your solution of forcing a white background is unacceptable. Many people use skins which don't have a white background. Besides, infoboxes shouldn't be white anyway (or forced to any colour, as the background colour can change). The TOC and image boxes have a grey background in the monobook skin which pretty much eliminates the problem of section headers going through infoboxes (see Texas). I agree that there is too much manual CSS being used, but this should be solved using classes, not hacks like this.
Defining templates to avoid repetitive markup is exactly what templates are for, and hardly a hack. Besides, the infobox itself isn't forced to any color, only the <div> surrounding it is. The [[Image]] code uses exactly the same type of trick, it places a white border around the float. Forcing a background instead of a border is in fact the cleaner of the two tricks, because it doesn't rely on the float content to provide its own opaque background to avoid the show-through effect.
The box in Texas indeed has a background, and nicely demonstrates the problem i'm talking about: The section line goes right up to the border of the box, whereas for the test image you've placed here it works as it should.
The proper solution would be to handle this in the CSS classes floatright and floatleft, which skins would then have to modify appropriately. Apparently something like that was in monobook/main.css at some point, but it's commented out. The only classes currently available for this that actually work are the ones used for images, thumb + tright. However, using those for non-image floats would be a hack. --K. Sperling 16:30, August 8, 2005 (UTC)

[edit] Comparison of operating systems / SecuniBot

I'd like to alter Comparison_of_operating_systems#Security to look something like User:Reisio/Sandbox.

  • Do you approve?
    • Will it present any problems for SecuniBot?
      • Any alterations that would make it easier?

¦ Reisio 21:33, 2005 August 27 (UTC)

[edit] New Zealand portal

A photo you contributed to Wikipedia, Image:ArthursPass.jpg, is currently the selected picture on the New Zealand portal. You're welcome to nominate other pictures of New Zealand at Portal_talk:New_Zealand#Selected_picture suggestions, or to view the archive of selected pictures at the picture archive.-gadfium 05:51, 6 February 2006 (UTC)

[edit] Auckland Meetup 2 Scheduled - Feb 10 2007

Hi Sperling, long time since you edited here. I hope you've come back to stay.

You are invited to Auckland Meetup 2 on the afternoon of Saturday February 10th 2007 at Galbraith's Ale House in Mt Eden. Please see Wikipedia:Meetup/Auckland 2 for details. You can also bookmark Wikipedia:Meetup/Auckland to be informed of future NZ meetups. -gadfium 07:47, 30 January 2007 (UTC)