User talk:François Robere

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Templates and spacing[edit]

Hello there! Regarding your edits on the Compiler and Runtime library articles, it's all about preventing issues later down the road no matter how much better things look at the moment with additional formatting – and I agree that additional vertical spacing is required there. For example, recent typography refresh changed a lot, and any non-standard explicit formatting is simply a call for troubles. Thus, you should see how to modify the troublesome templates, so additional vertical spacing becomes introduced that way. Hope you agree. — Dsimic (talk | contribs) 01:38, 25 May 2014 (UTC)

Hello Dsimic,
I agree that it's not an ideal solution, and in general ad-hoc solutions are to be avoided when possible. Unfortunately there's hardly a better solution at the moment as long as the layout engine behaves as it does (the templates themselves being perfectly fine). That being said, subsequent to your message I consulted the help desk and added a whitespace character as an outer title to the template; this will effectively "push" the template down by one line in every article where it appears - layout-wise it's not ideal, but it does provide centralized control. Your opinion? François Robere (talk) 11:33, 26 May 2014 (UTC)
Thank you for handling this! Using   is a much better (and centralized) solution, though it might be worth it to try passing 0.5em instead as the value for top margin through the {{Sidebar}}'s |style= parameter? Seems like that way sidebars should align perfectly with the lead section both when there is a hatnote and when there it isn't (tried it out in Firebug, and it worked as expected). Thoughts? — Dsimic (talk | contribs) 02:12, 27 May 2014 (UTC)
I tried playing around with that, and I think it is better than the   option, but eventually you get the worse of all worlds: Where there's a header template the margin should be ~0.85, and where there isn't it should be ~0.25, and 0.5 (which, admittedly, is a reasonable average) just doesn't hit either. That being said, until this is solved in the parser level I see no better solution other than doing it manually in each article (which, while problematic from a technical perspective, produced the best overall results), given that they are all monitored over the long term. For the time being we can leave it as is (give or take an additional 0.05em of padding) until a better solution comes along. François Robere (talk) 11:14, 1 June 2014 (UTC)
Yeah, I know almost too well what it's like when you start playing with aligning elements through CSS. :) Almost always things don't work as expected, at least not in one of the major browsers. Have you tried it in IE, GC and FF? That's where real troubles are usually hiding. :) Having all that in mind, I'd say that leaving it with style = margin-top: 0.5em, at least for now, is a reasonable compromise. Of course, we can always come back to it if (or when) a better solution becomes available. — Dsimic (talk | contribs) 23:36, 4 June 2014 (UTC)