<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://fascipedia.org/index.php?action=history&amp;feed=atom&amp;title=Help%3ATOC</id>
	<title>Help:TOC - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://fascipedia.org/index.php?action=history&amp;feed=atom&amp;title=Help%3ATOC"/>
	<link rel="alternate" type="text/html" href="https://fascipedia.org/index.php?title=Help:TOC&amp;action=history"/>
	<updated>2026-05-03T22:26:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://fascipedia.org/index.php?title=Help:TOC&amp;diff=3712&amp;oldid=prev</id>
		<title>WikiSysop: /* Adding the TOC */</title>
		<link rel="alternate" type="text/html" href="https://fascipedia.org/index.php?title=Help:TOC&amp;diff=3712&amp;oldid=prev"/>
		<updated>2022-08-11T23:13:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Adding the TOC&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:13, 11 August 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l36&quot;&gt;Line 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Adding the TOC==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Adding the TOC==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you have three or fewer headings but want to have a TOC, write either the magic word &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;__FORCETOC__&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; anywhere on the page to make it display at the default location, or __TOC__ at the preferred position.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you have three or fewer headings but want to have a TOC, write either the magic word &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;__FORCETOC__&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; anywhere on the page to make it display at the default location, or &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&lt;/ins&gt;__TOC__&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;/ins&gt;at the preferred position.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Customizing the TOC=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Customizing the TOC=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://fascipedia.org/index.php?title=Help:TOC&amp;diff=3711&amp;oldid=prev</id>
		<title>WikiSysop: Created page with &quot; By default, a '''table of contents''' (sometimes abbreviated to TOC) is automatically generated on a page when more than three section headings are used.  Typically, the table reproduces and numbers these headings.  All HTML in the headings is stripped in the TOC, except the following tags:  &lt;code&gt;&lt;nowiki&gt; ‎&lt;sup&gt;, ‎&lt;sub&gt;   ‎&lt;i&gt;   ‎&lt;b&gt;   ‎&lt;bdi&gt;   &lt;span dir=&quot;rtl&quot;&gt;, &lt;span dir=&quot;ltr&quot;&gt;   ‎&lt;s&gt;, ‎&lt;strike&gt;   ‎&lt;q&gt;  &lt;/nowiki&gt;&lt;/code&gt; The table of contents is not gen...&quot;</title>
		<link rel="alternate" type="text/html" href="https://fascipedia.org/index.php?title=Help:TOC&amp;diff=3711&amp;oldid=prev"/>
		<updated>2022-08-11T23:10:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; By default, a &amp;#039;&amp;#039;&amp;#039;table of contents&amp;#039;&amp;#039;&amp;#039; (sometimes abbreviated to TOC) is automatically generated on a page when more than three section headings are used.  Typically, the table reproduces and numbers these headings.  All HTML in the headings is stripped in the TOC, except the following tags:  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt; ‎&amp;lt;sup&amp;gt;, ‎&amp;lt;sub&amp;gt;   ‎&amp;lt;i&amp;gt;   ‎&amp;lt;b&amp;gt;   ‎&amp;lt;bdi&amp;gt;   &amp;lt;span dir=&amp;quot;rtl&amp;quot;&amp;gt;, &amp;lt;span dir=&amp;quot;ltr&amp;quot;&amp;gt;   ‎&amp;lt;s&amp;gt;, ‎&amp;lt;strike&amp;gt;   ‎&amp;lt;q&amp;gt;  &amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; The table of contents is not gen...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
By default, a '''table of contents''' (sometimes abbreviated to TOC) is automatically generated on a page when more than three section headings are used. &lt;br /&gt;
Typically, the table reproduces and numbers these headings. &lt;br /&gt;
All HTML in the headings is stripped in the TOC, except the following tags: &lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
‎&amp;lt;sup&amp;gt;, ‎&amp;lt;sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
‎&amp;lt;i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
‎&amp;lt;b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
‎&amp;lt;bdi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span dir=&amp;quot;rtl&amp;quot;&amp;gt;, &amp;lt;span dir=&amp;quot;ltr&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
‎&amp;lt;s&amp;gt;, ‎&amp;lt;strike&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
‎&amp;lt;q&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
The table of contents is not generated for section headings that are found within html tags. &lt;br /&gt;
&lt;br /&gt;
=Hiding the TOC=&lt;br /&gt;
Place &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;__NOTOC__&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; anywhere you want on the page to hide its TOC. &lt;br /&gt;
Using certain templates, such as the template:Compact ToC, will ''replace'' the regular Table of Contents functionality. &lt;br /&gt;
&lt;br /&gt;
==Positioning the TOC==&lt;br /&gt;
The default position of the TOC is directly above the first section heading. Any prior text is placed before the TOC. To place it elsewhere, use the magic word &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;__TOC__&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; at the preferred position on the page. &lt;br /&gt;
A skin may remove or move the table of contents to another section of the page. &lt;br /&gt;
&lt;br /&gt;
==Adding the TOC==&lt;br /&gt;
If you have three or fewer headings but want to have a TOC, write either the magic word &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;__FORCETOC__&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; anywhere on the page to make it display at the default location, or __TOC__ at the preferred position. &lt;br /&gt;
&lt;br /&gt;
=Customizing the TOC=&lt;br /&gt;
==Width==&lt;br /&gt;
An extenuating circumstance may require the width of a TOC width to be adjusted as a percentage of a page. For example: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{TOC left|width=30%}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Auto-numbering==&lt;br /&gt;
By default, the TOC automatically numbers the sections. The section headings themselves aren't numbered. This behavior of the table of contents can be customised in several ways: &lt;br /&gt;
&lt;br /&gt;
To do this selectively, a wrapper element can be placed around the TOC, as in&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt; &amp;lt;div class=&amp;quot;noautonum&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;.&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There is a user preference to also auto-number the section headings, at ''Preferences &amp;gt; Appearance &amp;gt; Advanced options &amp;gt; Auto-number headings''. &lt;br /&gt;
&lt;br /&gt;
This setting can be overridden individually by users, by changing their preferences as described above, or by setting .mw-headline-number { display: none; } in their user style page. Administrators who lack server access can also override the setting for all users, if it is activated as mentioned above. This is done by using the same CSS code in the site's global common.css file.&lt;br /&gt;
&lt;br /&gt;
To add a period to the automatically generated numbering do as described: https://stackoverflow.com/a/32347680/2275206&lt;br /&gt;
&lt;br /&gt;
==Floating==&lt;br /&gt;
The TOC can be made to display as a floating element on the page, with text flowing around it. &lt;br /&gt;
For this, enclose the TOC in an element with the CSS style float:left; or float:right;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Help]]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
</feed>