Template talk:Sidebar person/UK Prime Minister

Forced clear

edit

The sidebar-in-question is {{Margaret Thatcher sidebar}} at the Margaret Thatcher article, in which the template appears to force a clean break between the sidebar and text, thus prohibiting the text from flowing. I am not quite sure how to fix this. Please help, thanks.--Nevéselbert 09:26, 16 December 2017 (UTC)Reply

Neve-selbert, I don't think I see what you're talking about; on the article I see the sidebar as it would appear on any other page. Could you post a screenshot maybe? Primefac (talk) 15:06, 16 December 2017 (UTC)Reply
@Primefac: See here.--Nevéselbert 15:10, 16 December 2017 (UTC)Reply
There's something odd going on in your browser. With Firefox (and Chrome and IE) it looks like this. -- Michael Bednarek (talk) 15:20, 16 December 2017 (UTC)Reply
Hmmm, yes, it would seem to be a client-side issue; there's nothing in the sidebar code or the page code that would make a {{clear}} appear where it does in your image. I'll be honest, it's odd, but I can't seem to find anything that was recently changed to explain it. Have you tried purging the cache on that page, and see if it goes away? Primefac (talk) 15:26, 16 December 2017 (UTC)Reply
@Primefac and Michael Bednarek: Tried purging the cache, doesn't make any difference. I must say that the sidebar appeared fine only a couple of days ago.--Nevéselbert 02:49, 17 December 2017 (UTC)Reply
What does it look like when you use a different browser or a different device? -- Michael Bednarek (talk) 02:55, 17 December 2017 (UTC)Reply
The sidebar floats normally in Chrome and iOS, just not with IE or Edge for some reason.--Nevéselbert 03:14, 17 December 2017 (UTC)Reply
I've been going down the rabbit hole of "things this template might have transcluded that have changed" but I'm not seeing any templates or modules that have been modified in the last month (let alone the last year). Primefac (talk) 03:01, 17 December 2017 (UTC)Reply
Might there be a way to force the sidebar to float alongside the text? Just an idea.--Nevéselbert 03:14, 17 December 2017 (UTC)Reply
That would require a change to {{sidebar}}, not this template. Primefac (talk) 15:28, 17 December 2017 (UTC)Reply
@Primefac: I don't suppose you could ask what changes might be made. I'm not well-versed in module editing.--Nevéselbert 18:31, 17 December 2017 (UTC)Reply

Module talk:Sidebar would be the place to punt that sort of request, though just from a quick glance it looks like sidebars are treated the same as infoboxes with regard to how it appears on the page (they are both floating already). At the very least it might be worth dropping a note at the module talk linking to this discussion. Primefac (talk) 18:40, 17 December 2017 (UTC)Reply

I could reproduce the problem in Margaret Thatcher in IE and Edge but only with certain combinations of zoom level and window width. If normal rendering would have placed a section heading immediately to the left of the top of {{Margaret Thatcher sidebar}} then the section heading instead moved below the sidebar, leaving blank space to the left of the sidebar. Fixed for me with {{stack}} in the article.[1] PrimeHunter (talk) 12:38, 28 December 2017 (UTC)Reply
Nice! Primefac (talk) 17:12, 28 December 2017 (UTC)Reply