Template talk:Imagequote/Archive 1

Latest comment: 11 years ago by Hairy Dude in topic Not working
Archive 1

Use of table to wrap quotes

(this thread was started on Talk:Mary Shelley#Imagequote and is copied here as the topic has drifted from improving the Mary Shelley article to improving Template:Imagequote)

The imagequote thing doesn't work for me: it pushes the text right over to one side. This may be something to do with my preferences, but I've seen other people complain about the same problem. qp10qp (talk) 00:01, 27 March 2008 (UTC)

  • Hmm. I wonder if it renders differently on different browsers or configurations. Can you tell us anything about your setup, Qp? Are you using Firefox? Internet Explorer? Some other browser? Widnows? Mac? Linux? The more info I have, the more able I'll be to offer help. And can you clarify what you mean by "it pushes the text right over to one side"? Thanks. – Scartol • Tok 00:24, 27 March 2008 (UTC)
I'm on Firefox. I have the font set big because I sit right back from the computer, so that might be it: this rarely causes problems, though. The quote about Mary Shelley conceiving the idea for Frankenstein only occupies the right hand side of the space: so the first line reads "I saw the pale student of unhallowed arts . . .", and then a new line starts. When I had this problem with one of Mike Christie's Anglo-Saxon articles, the lines were only two or three words long, so the quote was a long thin strip down the right hand side of the page. I've seen others mention this phenomenon. qp10qp (talk) 01:07, 27 March 2008 (UTC)
I'm able to replicate the issue in both IE and Firefox. For starters, the quote looked ok and I was wondering what this thread was about. I resized the browser window and increased the font size so that the start of the quote was past the bottom of the image. In that case the paragraph(s) before the quote were flowing around and under the image but the quote itself is still indented as though the image is to the left of it. What's happening is that you give Imagequote an offset in absolute pixels, 210 in this case, and that's exactly what you get.
It will be very non-standard but a fix is instead of using Imagequote to wrap the quote in a table using {| style="padding: 0; margin-left: 2em". I went ahead with adding this to the main article. Marc Kupper (talk) (contribs) 02:50, 27 March 2008 (UTC)
Well, the {{imagequote}} template is a pretty non-standard (I'd even say radical) fix to the problem in the first place, so I don't think there's anything wrong with your remedy, Marc. I wonder if employing that sort of code into the imagequote template might not be a bad idea, since I'm sure this shows up in other places where that template is used? – Scartol • Tok 23:32, 27 March 2008 (UTC)
Actually, I really like your solution more, Marc, and I'm more than a little jealous that I didn't think of it first. It precludes the need to hard-code an image width, and it only requires one variable. Can folks confirm that it looks okay, and I'll go ahead and whip up an imagequote2 template? – Scartol • Tok 23:42, 27 March 2008 (UTC)
Looks perfect. But, crumbs, Scartol: you do literature stuff and techie stuff?! That's just so not on. qp10qp (talk) 00:59, 28 March 2008 (UTC)
Thank you for the follow-up Scartol. I'm not sure if it's a good or bad thing but the table causes the quote to "hang together" rather than floating to the left when a quote spans past an image. This could look ugly for long quotes but for something as short as the one in this article the hanging aspect only caused a little bit of white space under the image. Ideally, quoted text would float around an image while maintaining its indent but I can't think of an easy way to do this. Marc Kupper (talk) (contribs) 08:46, 28 March 2008 (UTC)
Qp: Heh, yeah. I also do techno and hip hop music and 3D art about Go. But that's neither here nor there.
Marc: That happens with the imagequote template too; I don't think there's a way to fix that without tweaking the MediaWiki software itself. So I'll just make the imagequote2 later today, providing the more elegant solution you rigged for MS. Cheers! – Scartol • Tok 11:55, 28 March 2008 (UTC)

Not working

This template doesn't preserve indentation in Windows Firefox 16.0.2. UA is: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0. On Nathan Drake (character) I moved an image right and replaced this with a simple {{quote}} since that was the only way to get things to look right. Hairy Dude (talk) 20:36, 29 November 2012 (UTC)