<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.event-b.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ATOCright</id>
	<title>Template:TOCright - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.event-b.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ATOCright"/>
	<link rel="alternate" type="text/html" href="https://wiki.event-b.org/index.php?title=Template:TOCright&amp;action=history"/>
	<updated>2026-05-19T18:50:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki.event-b.org/index.php?title=Template:TOCright&amp;diff=13248&amp;oldid=prev</id>
		<title>imported&gt;Mathieu: Copied from en.wikipedia.org</title>
		<link rel="alternate" type="text/html" href="https://wiki.event-b.org/index.php?title=Template:TOCright&amp;diff=13248&amp;oldid=prev"/>
		<updated>2008-09-09T19:36:06Z</updated>

		<summary type="html">&lt;p&gt;Copied from en.wikipedia.org&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; style=&amp;quot;clear: {{{clear|right}}}; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{width|{{{1|auto}}}}}};&amp;quot; {{#if:{{{limit|}}}|class=&amp;quot;toclimit-{{{limit}}}&amp;quot;}}&lt;br /&gt;
| __TOC__&lt;br /&gt;
|}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Copied from en.wikipedia.org&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;{{TOCright}}&amp;lt;/nowiki&amp;gt; forces the auto-generated Table of Contents for an article to appear in a table that is floated to the right side of the page (as seen right), in order to improve article layout.&lt;br /&gt;
# &amp;lt;nowiki&amp;gt;TOCnestright&amp;lt;/nowiki&amp;gt; Operates similarly, but is designed to use early in introduction or second sections on the many pages having a lot of images or wikitable elements such as infoboxes dominating the right side of such pages. &amp;#039;&amp;#039;&amp;#039;TOCnestright&amp;#039;&amp;#039;&amp;#039; will drift up against such constructs allowing text wrapping above, left and below preventing discordantly ugly page breaks and large excessive whitespace gaps on the page as given by the default TOC.&lt;br /&gt;
::When using the TOCnestright template logout and check that it appears correctly with the default skin in Internet Explorer and a [[Acid2]] compatible browser (or Firefox).  Consult the following pages for placement elucidation [[Help:Section#Floating the TOC]] and [[Wikipedia:How to fix bunched-up edit links]], or see &amp;lt;nowiki&amp;gt;FixHTML&amp;lt;/nowiki&amp;gt; and use it with TOCnestright as a matter of habit. (The problem is &amp;#039;&amp;#039;Some browser&amp;#039;s&amp;#039;&amp;#039; render the page in different orders relative to HTML blocks or block elements (including images, tables, and infoboxes... so most of our pages!) FixHTML (also called FixBunching) &amp;quot;forces&amp;quot; rendering to&amp;#039; behave&amp;#039; &amp;#039;&amp;#039; itself. So prophylactic use is a good idea, and is a really good idea on pages with lots of images.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
Insert &amp;lt;code&amp;gt;&amp;amp;#123;&amp;amp;#123;{{BASEPAGENAME}}&amp;amp;#125;&amp;amp;#125;&amp;lt;/code&amp;gt; at the point in the article where you want the top of the Table of Contents box to appear.  Use with {{tl|-}} or {{tl|clear}} to prevent collision with text; use the &amp;#039;&amp;#039;&amp;#039;clear&amp;#039;&amp;#039;&amp;#039; parameter (see below) to prevent collision with images.&lt;br /&gt;
&lt;br /&gt;
== Parameters (optional) ==&lt;br /&gt;
&lt;br /&gt;
;clear : Sets the [[Cascading Style Sheets|CSS]] clear property, which forces this float underneath the side specified with this attribute. So, &amp;lt;code&amp;gt;clear=right&amp;lt;/code&amp;gt; (which is the default) will place the element after all the right floating elements before it.  Options are &amp;lt;code&amp;gt;left&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;right&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;both&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;none&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
;width: Set the CSS width.&lt;br /&gt;
&lt;br /&gt;
;limit:  Limits the depth of subheadings shown.  For instance using &amp;lt;code&amp;gt;limit=4&amp;lt;/code&amp;gt; will hide the fourth level and deeper subheadings in the hierarchy.  And &amp;lt;code&amp;gt;limit=2&amp;lt;/code&amp;gt; will hide all subheadings leaving only the main headings.  This is implemented as a CSS class in the [[MediaWiki:Common.css]].&lt;br /&gt;
&lt;br /&gt;
* Avoid placing the TOC in a visually poor location.  Crossing a section division is probably a poor idea.&lt;br /&gt;
* If the TOC is floated left of a bulleted list, the bullets will be hidden.&lt;br /&gt;
[[Category:TOC templates| ]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- CSS instructions have no business in this template help... good editors use the default skin so they can see what the customer readers see. Not customize their interfaces and leave themselves susceptable to getting faked out.&lt;br /&gt;
== Site wide floating of TOC code ==&lt;br /&gt;
{{see also|Help:User style}}&lt;br /&gt;
Add to your [[Special:Mypage/monobook.css|userpage/monobook.css]] (if your using the default monobook skin)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bodyContent #toc {&lt;br /&gt;
 float: right;&lt;br /&gt;
 clear: right;&lt;br /&gt;
 margin: 0.3em;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A more advanced (non IE users) using the CSS child selector to prevent existing TOC layout scheme from causing problems and allowing the TOC to float next to existing images.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#bodyContent &amp;gt; #toc, #wikiPreview &amp;gt; #toc {&lt;br /&gt;
 float: right;&lt;br /&gt;
 clear: none;&lt;br /&gt;
 padding: 0.2em;&lt;br /&gt;
 margin: 0.3em;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;--&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Mathieu</name></author>
	</entry>
</feed>