<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ATOC_top%2Fdoc</id>
	<title>Template:TOC top/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ATOC_top%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:TOC_top/doc&amp;action=history"/>
	<updated>2026-04-06T00:45:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Template:TOC_top/doc&amp;diff=32265&amp;oldid=prev</id>
		<title>Wikipedia&gt;Izno: fullpagename</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:TOC_top/doc&amp;diff=32265&amp;oldid=prev"/>
		<updated>2021-10-31T13:13:23Z</updated>

		<summary type="html">&lt;p&gt;fullpagename&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{High-use}}&lt;br /&gt;
{{Uses TemplateStyles|Template:TOC top/styles.css}}&lt;br /&gt;
This is used to create custom table of contents templates such as {{tl|Category TOC}}. It replaces and suppresses the ToC that the wiki software would automatically generate.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Please note that this is &amp;#039;&amp;#039;&amp;#039;solely for ease of maintaining existing templates&amp;#039;&amp;#039;&amp;#039;. Please &amp;#039;&amp;#039;&amp;#039;do not use this to write new templates&amp;#039;&amp;#039;&amp;#039;: instead, browse through [[:Category:Wikipedia table of contents templates]] and use an existing template. This code is one of the final pieces in cleaning up years of redundant and overlapping code in this area.&lt;br /&gt;
&lt;br /&gt;
=== Parameters (optional) ===&lt;br /&gt;
; title : The title to use for this ToC element. The default is &amp;lt;strong&amp;gt;{{MediaWiki:Toc}}&amp;lt;/strong&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
; align : Sets the [[Cascading Style Sheets|CSS]] float and clear properties, which forces this float underneath the side specified with this attribute. So, &amp;lt;code&amp;gt;align=right&amp;lt;/code&amp;gt;  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;center&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;none&amp;lt;/code&amp;gt; (default).&lt;br /&gt;
&lt;br /&gt;
; clear : Overrides the default [[Cascading Style Sheets|CSS]] clear property set by the align parameter, which is not typically needed.  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;.  The defaults are &amp;lt;code&amp;gt;left&amp;lt;/code&amp;gt; when {{para|align|left}}, &amp;lt;code&amp;gt;right&amp;lt;/code&amp;gt; when {{para|align|right}}, &amp;lt;code&amp;gt;none&amp;lt;/code&amp;gt; when {{para|align|center}}, and &amp;lt;code&amp;gt;left&amp;lt;/code&amp;gt; when {{para|align|none}}.  Use {{para|clear|none}} to allow other floating elements to float next to the table of contents, and {{para|clear|both}} to force the table of contents to have nothing next to it.&lt;br /&gt;
&lt;br /&gt;
; primary : Set this to &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; if this ToC is not used as the primary ToC of a page. This makes sure that the title of this ToC does not show up in the primary ToC. A side effect of this is the disappearing of the show/hide toggle.&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
{{TemplateData header}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;This is used to create custom table of contents templates. It replaces and suppresses the ToC that the wiki software would automatically generate.&amp;quot;,&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;title&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Title&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The title to use for this ToC element. The default is Contents.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;align&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Align&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Sets the CSS float and clear properties, which forces this float underneath the side specified with this attribute. So, \&amp;quot;right\&amp;quot; will place the element after all the right floating elements before it. Options are left, right, center, or none (default).&amp;quot;,&lt;br /&gt;
		    &amp;quot;suggestedvalues&amp;quot;: [&lt;br /&gt;
		        &amp;quot;left&amp;quot;,&lt;br /&gt;
		        &amp;quot;center&amp;quot;,&lt;br /&gt;
        		&amp;quot;right&amp;quot;,&lt;br /&gt;
        		&amp;quot;none&amp;quot;&lt;br /&gt;
		    ]&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;clear&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Clear&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Overrides the default CSS clear property set by the align parameter, which is not typically needed. Options are left, right, both, or none. The defaults are left when align=left, right when align=right, none when align=center, and left when align=none. Use \&amp;quot;none\&amp;quot; to allow other floating elements to float next to the table of contents, and \&amp;quot;both\&amp;quot; to force the table of contents to have nothing next to it.&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;primary&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Primary&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: false,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Set this to \&amp;quot;false\&amp;quot; if this ToC is not used as the primary ToC of a page. This makes sure that the title of this ToC does not show up in the primary ToC. A side effect of this is the disappearing of the show/hide toggle.&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|TOC bottom}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!--Categories below this line, please; interwikis at Wikidata--&amp;gt;&lt;br /&gt;
[[Category:Wikipedia table of contents templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Izno</name></author>
	</entry>
</feed>