The center for all Wikitravel images!

Tech:Templated listings don't wrap under images

From Wikitravel Shared
Jump to: navigation, search

I don't know if it has been this way all along and I hadn't noticed, or if something changed when they fiddled with layout to make the ads work, but it really bugs me all of a sudden. Normal text including non-templated listings wrap so that they surround images and infoboxes like this, but templated listings seem to right-justify all their text together, leaving just white space under the image like this. The longer the listing, the taller the blank spot, and the wider the image is, the wider the blank is. I think it produces a lot of layout inconsistencies. Can we fix this? Texugo 00:06, 18 April 2008 (EDT)

Yes, it's always been like that. I don't think this has anything to do with templates, it's an artifact of the way Mediawiki handles bullet points (templated or otherwise). The example you link to doesn't even use templates. Jpatokal 02:42, 18 April 2008 (EDT)
Oh, you're right. That's too bad though. I still dislike it. The example I posted is not nearly the worst I've seen. Texugo
In particular, it's a limitation of html in general. Block level elements (in this case it looks like an "li") don't wrap around things. In your example the very top of the item block clips the bottom of the image which constrains the width the item block. We'd have to remove any (large) block level elements from the item html which would make it hard to bulleted lists (and seriously limit the things we could do). KevinSours 11:53, 18 April 2008 (EDT)