On any pages that have a table of contents, it seems the default is to have the TOC have its own row. Any text will be below it. I would like the text to wrap around the TOC in the same way it does with thumbnails.
This piece of wiki-markup and css basically floats the TOC to the right :
{| cellspacing="0" cellpadding="0" style="clear:right; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none;" | __TOC__ |}
Put this in a template, and call the template from the pages where you need the floating TOC. It can quite easily be modified to float the TOC to the left, (or alternatively, to accept variables to it to do the trick)
Best wishes, Morten :-)
-- Crews Cut Production Morten Blaabjerg Danmarksgade 97 - DK-5000 Odense C Tlf. 65 90 60 88 / 51 80 91 55 http://morten.crewscut.com morten@crewscut.com
----- Original Message ----- From: "Bass, Joshua L" joshua.l.bass@lmco.com To: "MediaWiki announcements and site admin list" mediawiki-l@Wikimedia.org Sent: Monday, October 24, 2005 10:13 PM Subject: [Mediawiki-l] Float table of contens?
On any pages that have a table of contents, it seems the default is to have the TOC have its own row. Any text will be below it. I would like the text to wrap around the TOC in the same way it does with thumbnails.
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Bass, Joshua L wrote:
On any pages that have a table of contents, it seems the default is to have the TOC have its own row. Any text will be below it. I would like the text to wrap around the TOC in the same way it does with thumbnails.
Add this to [[MediaWiki:Monobook.css]]: #toc, .toc { float:left; margin-right: .5em; }
-- Jamie ------------------------------------------------------------------- http://endeavour.zapto.org/astro73/ Thank you to JosephM for inviting me to Gmail! Have lots of invites. Gmail now has 2GB.
mediawiki-l@lists.wikimedia.org