<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://capipedia.cap.gov/index.php?action=history&amp;feed=atom&amp;title=Template%3ACompact_TOC%2Fdoc</id>
	<title>Template:Compact TOC/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://capipedia.cap.gov/index.php?action=history&amp;feed=atom&amp;title=Template%3ACompact_TOC%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://capipedia.cap.gov/index.php?title=Template:Compact_TOC/doc&amp;action=history"/>
	<updated>2026-04-20T03:53:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://capipedia.cap.gov/index.php?title=Template:Compact_TOC/doc&amp;diff=7664&amp;oldid=prev</id>
		<title>NMcLarty27: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://capipedia.cap.gov/index.php?title=Template:Compact_TOC/doc&amp;diff=7664&amp;oldid=prev"/>
		<updated>2024-01-23T20:17:56Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:17, 23 January 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>NMcLarty27</name></author>
	</entry>
	<entry>
		<id>https://capipedia.cap.gov/index.php?title=Template:Compact_TOC/doc&amp;diff=7663&amp;oldid=prev</id>
		<title>en&gt;WOSlinker: syntaxhighlight lang=&quot;wikitext&quot;</title>
		<link rel="alternate" type="text/html" href="https://capipedia.cap.gov/index.php?title=Template:Compact_TOC/doc&amp;diff=7663&amp;oldid=prev"/>
		<updated>2023-05-10T21:13:10Z</updated>

		<summary type="html">&lt;p&gt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&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| 6041 }}&lt;br /&gt;
{{tsh|TOC|Toc}}&lt;br /&gt;
&amp;lt;!----Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]])--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a [[H:TOC|table-of-contents]] replacement for alphabetical lists within mainspace articles. The template has all features of other TOC templates, such as optional &amp;quot;Top&amp;quot; &amp;quot;0–9&amp;quot; sections, and allows selecting other sections.&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
===Features===&lt;br /&gt;
* This template &amp;#039;&amp;#039;&amp;#039;replaces&amp;#039;&amp;#039;&amp;#039; the regular Table of Contents functionality. If you want a regular Table of Contents on a page where {{tl|Compact TOC}} is in use, use &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;__FORCETOC__&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;__TOC__&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; as explained at [[HELP:TOC]].&lt;br /&gt;
* The compact format goes sideways: A B C D E F G H I J K L ....&lt;br /&gt;
* The centering or numbers are optional: center=yes, num=yes.&lt;br /&gt;
* The &amp;quot;Contents&amp;quot; heading can go on top (default) or the side (side=yes).&lt;br /&gt;
* Letter ranges can be set (&amp;#039;&amp;#039;see below:&amp;#039;&amp;#039; [[#Letters]]): A B C–F G H–K L...&lt;br /&gt;
* Some letters can be omitted, instead of 26 separate letters.&lt;br /&gt;
* Other headers can be listed in the TOC (&amp;#039;&amp;#039;see below:&amp;#039;&amp;#039; [[#Listing custom headers|#Listing custom headers]]).&lt;br /&gt;
** Set upper headers before &amp;quot;ABCDEF&amp;quot; by pre1, pre2, ... pre12.&lt;br /&gt;
** Set lower headers after &amp;quot;ABCDEF&amp;quot; by custom1, custom2, ... custom12.&lt;br /&gt;
* Conceal subheader link-text as &amp;quot;pre1name&amp;quot; over &amp;quot;pre1link&amp;quot; and &amp;quot;custom1name&amp;quot; over &amp;quot;custom1link&amp;quot; etc.&lt;br /&gt;
* Other options include: top=yes, seealso=yes, refs=yes, extlinks=yes, etc.&lt;br /&gt;
&lt;br /&gt;
===Syntax===&lt;br /&gt;
; Typical use : &amp;lt;nowiki&amp;gt;{{Compact TOC |symnum=yes}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
; Alphabetic (i.e. &amp;quot;A&amp;quot;, &amp;quot;B&amp;quot;, … &amp;quot;Z&amp;quot;) links only : &amp;lt;nowiki&amp;gt;{{Compact TOC}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
; Common applications : &amp;lt;nowiki&amp;gt;{{Compact TOC |center=yes |seealso=yes|refs=yes|further=yes}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Full blank syntax===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Compact TOC&lt;br /&gt;
 |side=|center=|right=&lt;br /&gt;
 |name=&lt;br /&gt;
 |top=&lt;br /&gt;
&lt;br /&gt;
 |pre1=|pre1name=|pre1link=&lt;br /&gt;
 |pre2=|pre2name=|pre2link=&lt;br /&gt;
 &amp;lt;!--(etc, to:)--&amp;gt;&lt;br /&gt;
 |pre12=|pre12name=|pre12link=&lt;br /&gt;
 |prebreak=&amp;lt;!--yes--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 |num= |sym= |symnum=&lt;br /&gt;
 |letters=&lt;br /&gt;
&lt;br /&gt;
 |custom1=|custom1name=|custom1link=&lt;br /&gt;
 |custom2=|custom2name=|custom2link=&lt;br /&gt;
 &amp;lt;!--(etc, to:)--&amp;gt;&lt;br /&gt;
 |custom12=|custom12name=|custom12link=&lt;br /&gt;
&lt;br /&gt;
 |nobreak=&lt;br /&gt;
 |seealso= |refs= |notesfirst=|notes= |further= |extlinks=&lt;br /&gt;
 |a=|b= &amp;lt;!--(etc, until:)--&amp;gt; |z=&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
* &amp;lt;code&amp;gt;name=&amp;lt;/code&amp;gt;: change the heading to an alternative name instead of &amp;quot;Contents&amp;quot;, or hide it completely by entering &amp;lt;code&amp;gt;name=no&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;side=yes&amp;lt;/code&amp;gt;: put the &amp;quot;Contents&amp;quot; heading on the left side with a colon, instead of the top without one&lt;br /&gt;
* &amp;lt;code&amp;gt;center=yes&amp;lt;/code&amp;gt;: float TOC centered in the horizontal middle of the page, instead of floated left&lt;br /&gt;
* &amp;lt;code&amp;gt;right=yes&amp;lt;/code&amp;gt;: align the TOC horizontally to the right of the page (may require &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;br style=&amp;quot;clear:right;&amp;quot; /&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; after it, depending on page layout), instead of floated left (this parameter is mutually exclusive with the &amp;quot;center&amp;quot; option above, and should be used sparingly and with good reason)&lt;br /&gt;
* &amp;lt;code&amp;gt;nobreak=yes&amp;lt;/code&amp;gt;: no linebreak between the A-B-C-etc. stuff and the See also/References/etc. stuff (note: does not affect the heading; use &amp;lt;code&amp;gt;side=&amp;lt;/code&amp;gt; for that)&lt;br /&gt;
* &amp;lt;code&amp;gt;top=yes&amp;lt;/code&amp;gt;: enable the &amp;quot;Top&amp;quot; link; this is only useful if this copy of the TOC is a secondary TOC not at the top of the page, e.g. in the middle of a long glossary. (Every rendered page has a hidden &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;a name=&amp;quot;top&amp;quot; id=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; above the sitenotice which makes this link work without having to do anything but enable it in the template.)&lt;br /&gt;
* &amp;lt;code&amp;gt;num=yes&amp;lt;/code&amp;gt;: enable the &amp;quot;0–9&amp;quot; link for numeric entries section (create a heading of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;==0&amp;amp;amp;ndash;9==&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; for the link to work)&lt;br /&gt;
* &amp;lt;code&amp;gt;sym=yes&amp;lt;/code&amp;gt;: enable the &amp;quot;!$@&amp;quot; link for symbolic entries section&lt;br /&gt;
* &amp;lt;code&amp;gt;symnum=yes&amp;lt;/code&amp;gt;: enable the &amp;quot;!–9&amp;quot; link for combined symbolic and numeric entries section (create a heading of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;==!&amp;amp;amp;ndash;9==&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; for the link to work)&lt;br /&gt;
* &amp;lt;code&amp;gt;letters=no&amp;lt;/code&amp;gt;: suppresses the &amp;quot;A&amp;quot;, &amp;quot;B&amp;quot;, ..., &amp;quot;Z&amp;quot; entries.&lt;br /&gt;
&amp;lt;!-- ------------------------------- Parameters pre1..pre8 --&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;pre1&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;pre12&amp;lt;/code&amp;gt;: list up to 12 extra section headers &amp;#039;&amp;#039;before&amp;#039;&amp;#039; (pre-list) the &amp;quot;ABCDEF&amp;quot; list. These appear as &amp;lt;nowiki&amp;gt;[[#pre1|pre1]]&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;pre1name&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;pre12name&amp;lt;/code&amp;gt;: modifies the way the pre-list section headers appear: &amp;lt;nowiki&amp;gt;[[#pre1|pre1name]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;pre1link&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;pre12link&amp;lt;/code&amp;gt;: modifies the targets of the pre-list headers: &amp;lt;nowiki&amp;gt;[[pre1link|pre1]]&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;prebreak=yes&amp;lt;/code&amp;gt;: set break-line after all pre-list headers&lt;br /&gt;
&amp;lt;!-- ------------------------------- Parameters custom1..12 --&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;custom1&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;custom12&amp;lt;/code&amp;gt;: add up to 12 extra &amp;quot;custom&amp;quot; sections after the &amp;quot;ABCDEF&amp;quot; list. These appear as &amp;lt;nowiki&amp;gt;[[#custom1|custom1]]&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;custom1name&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;custom12name&amp;lt;/code&amp;gt;: modifies the way the custom section headers appear: &amp;lt;nowiki&amp;gt;[[#custom1|custom1name]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;custom1link&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;custom12link&amp;lt;/code&amp;gt;: modifies the targets of the custom sections: &amp;lt;nowiki&amp;gt;[[custom1link|custom1]]&amp;lt;/nowiki&amp;gt;. Use this only for linking to another page.  &amp;#039;&amp;#039;Use sparingly!&amp;#039;&amp;#039; About the only legitimate use for this is connecting the sub-pages of multi-page articles, like long lists that have been broken up. Do not repurpose the TOC as a makeshift navbox.&lt;br /&gt;
&amp;lt;!-- ------------------------- Parameters seealso, refs...--&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;seealso=yes&amp;lt;/code&amp;gt;: enable link to the &amp;quot;See also&amp;quot; section&lt;br /&gt;
* &amp;lt;code&amp;gt;notesfirst=yes&amp;lt;/code&amp;gt;: enable link to the &amp;quot;Notes&amp;quot; section, but placed before &amp;quot;References&amp;quot;; &amp;#039;&amp;#039;do not use with &amp;lt;code&amp;gt;notes&amp;lt;/code&amp;gt;&amp;#039;&amp;#039; (and do observe that it is plural)&lt;br /&gt;
* &amp;lt;code&amp;gt;refs=yes&amp;lt;/code&amp;gt;: enable link to the &amp;quot;References&amp;quot; section (observe that it is plural)&lt;br /&gt;
* &amp;lt;code&amp;gt;notes=yes&amp;lt;/code&amp;gt;: enable link to the &amp;quot;Notes&amp;quot; section (observe that it is plural)&lt;br /&gt;
* &amp;lt;code&amp;gt;further=yes&amp;lt;/code&amp;gt;: enable link to the &amp;quot;Further reading&amp;quot; section&lt;br /&gt;
* &amp;lt;code&amp;gt;extlinks=yes&amp;lt;/code&amp;gt;: enable link to the &amp;quot;External links&amp;quot; section&lt;br /&gt;
* &amp;lt;code&amp;gt;a=&amp;lt;/code&amp;gt; through &amp;lt;code&amp;gt;z=&amp;lt;/code&amp;gt;: individually disable particular letters that have no entries. &amp;#039;&amp;#039;Use with caution&amp;#039;&amp;#039; and check regularly to make sure that new entries do not require the removal of these parameters. Can also be used to create range links, e.g. &amp;quot;X-Z&amp;quot;. &amp;#039;&amp;#039;(See following section for more detailed documentation of this feature.)&amp;#039;&amp;#039;&lt;br /&gt;
** The equivalent of this for numbers is &amp;lt;code&amp;gt;0-9=&amp;lt;/code&amp;gt; - note this is a hyphen and not a dash (the heading uses a dash)&lt;br /&gt;
* &amp;lt;code&amp;gt;allowtoc=yes&amp;lt;/code&amp;gt;: disables the hiding of the automatically-generated table of contents that &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;__NOTOC__&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; usually hides. (Since this template&amp;#039;s purpose is usually to &amp;#039;&amp;#039;replace the existing table of contents&amp;#039;&amp;#039;, this functionality is usually only necessary on Wikipedia guideline pages that use this template in examples.)&lt;br /&gt;
&lt;br /&gt;
==Letters==&lt;br /&gt;
Any letter can be omitted (i.e. when it has no entries in the list) by specifying it as a &amp;#039;&amp;#039;lowercase&amp;#039;&amp;#039; blank parameter, e.g. {{tlx|Compact TOC&amp;amp;#32;|&amp;lt;nowiki&amp;gt;side=yes |j=|q=&amp;lt;/nowiki&amp;gt;}}:&lt;br /&gt;
{| style=&amp;quot;margin-left:3.0em&amp;quot;&lt;br /&gt;
| {{Compact TOC |side=yes |j=|q=}}&lt;br /&gt;
|}&lt;br /&gt;
Or it can be replaced with an unlinked letter by using that letter (in &amp;#039;&amp;#039;uppercase&amp;#039;&amp;#039;), e.g. {{tlx|Compact TOC&amp;amp;#32;|&amp;lt;nowiki&amp;gt;side=yes |j=J|q=Q&amp;lt;/nowiki&amp;gt;}}:&lt;br /&gt;
{| style=&amp;quot;margin-left:3.0em&amp;quot;&lt;br /&gt;
| {{Compact TOC |side=yes |j=J|q=Q}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039; It is often better to create an empty placeholder span (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span id=&amp;quot;Q&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) where the letter&amp;#039;s heading would be in the page if it existed, since in most cases it is quite possible that it will come to exist in the future. Using the span-id avoids confusing readers who might not realize the TOC-template has skipped some letters.&lt;br /&gt;
&lt;br /&gt;
The letter-assignment feature can also be used to create range links, e.g. {{tlx|Compact TOC&amp;amp;#32;|&amp;lt;nowiki&amp;gt;side=yes |x=[[#X–Z|X–Z]] |y=|z=&amp;lt;/nowiki&amp;gt;}}:&lt;br /&gt;
{| style=&amp;quot;margin-left:3.0em&amp;quot;&lt;br /&gt;
| {{Compact TOC |side=yes |x=[[#X–Z|X–Z]] |y=|z=}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The feature can also be used (very tediously) for linking to sub-articles (e.g. [[Wikipedia:Naming conventions (long lists)|long lists]] that have been split into multiple pages):&amp;lt;br/&amp;gt;&lt;br /&gt;
{{tlx|Compact TOC&amp;amp;#32;|&amp;lt;nowiki&amp;gt;side=yes |name=[[&amp;lt;/nowiki&amp;gt;&amp;lt;var&amp;gt;Articlename&amp;lt;/var&amp;gt;&amp;lt;nowiki&amp;gt;]] |n=[[&amp;lt;/nowiki&amp;gt;&amp;lt;var&amp;gt;Articlename&amp;lt;/var&amp;gt;&amp;lt;nowiki&amp;gt; (N–Z)#N|N]] |o=[[&amp;lt;/nowiki&amp;gt;&amp;lt;var&amp;gt;Articlename&amp;lt;/var&amp;gt;&amp;lt;nowiki&amp;gt; (N–Z)#O|O]] |... |z=[[&amp;lt;/nowiki&amp;gt;&amp;lt;var&amp;gt;Articlename&amp;lt;/var&amp;gt;&amp;lt;nowiki&amp;gt; (N–Z)#Z|Z]]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{| style=&amp;quot;margin-left:3.0em&amp;quot;&lt;br /&gt;
| {{Compact TOC |side=yes |name=[[Articlename]] |n=[[Article (N–Z)#N|N]] |o=[[Articlename (N–Z)#O|O]] |p=[[Articlename (N–Z)#P|P]] |q=[[Articlename (N–Z)#Q|Q]] |r=[[Articlename (N–Z)#R|R]] |s=[[Articlename (N–Z)#S|S]] |t=[[Articlename (N–Z)#T|T]] |u=[[Articlename (N–Z)#U|U]] |v=[[Articlename (N–Z)#V|V]] |w=[[Articlename (N–Z)#W|W]] |x=[[Articlename (N–Z)#X|X]] |y=[[Articlename (N–Z)#Y|Y]] |z=[[Articlename (N–Z)#Z|Z]]}}&lt;br /&gt;
|}&lt;br /&gt;
{{tlx|Compact TOC&amp;amp;#32;|&amp;lt;nowiki&amp;gt;side=yes |n=[[&amp;lt;/nowiki&amp;gt;&amp;lt;var&amp;gt;Articlename&amp;lt;/var&amp;gt;&amp;lt;nowiki&amp;gt; (N–Z)|&amp;amp;nbsp;N–Z {{small|(next page)}}]] |o=|p=|...|z=&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{| style=&amp;quot;margin-left:3.0em&amp;quot;&lt;br /&gt;
| {{Compact TOC |side=yes |n=[[Articlename (N–Z)|&amp;amp;nbsp;N–Z {{small|(next page)}}]] |o=|p=|q=|r=|s=|t=|u=|v=|w=|x=|y=|z=}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Listing custom headers==&lt;br /&gt;
&lt;br /&gt;
The optional parameters &amp;#039;&amp;#039;pre1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;pre2&amp;#039;&amp;#039;, ...&amp;#039;&amp;#039;pre12&amp;#039;&amp;#039; and &amp;#039;&amp;#039;custom1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;custom2&amp;#039;&amp;#039;, ...&amp;#039;&amp;#039;custom12&amp;#039;&amp;#039; allow up to 24 other section headers to be listed before or after the &amp;quot;ABCDEF&amp;quot; list:&lt;br /&gt;
&lt;br /&gt;
{{tlx|Compact TOC&amp;amp;#32;|&amp;lt;nowiki&amp;gt;name=no |center=yes |top=yes |custom1=New section |custom2=Additional section |seealso=yes|notes=yes&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{Compact TOC&lt;br /&gt;
 |name=no |center=yes |top=yes&lt;br /&gt;
 |custom1=New section |custom2=Additional section&lt;br /&gt;
 |seealso=yes |notes=yes&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{tlx|Compact TOC&amp;amp;#32;|&amp;lt;nowiki&amp;gt;name=no |center=yes |top=yes |custom1=New section|custom1name=Custom section name |custom2=Outside page|custom2link=Main Page |seealso=yes|notes=yes&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{Compact TOC&lt;br /&gt;
 |name=no |center=yes |top=yes&lt;br /&gt;
 |custom1=New section |custom1name=Custom section name&lt;br /&gt;
 |custom2=Outside page |custom2link=Main Page&lt;br /&gt;
 |seealso=yes |notes=yes&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Headers can be listed before &amp;amp; after &amp;quot;ABCDEF&amp;quot; using &amp;#039;&amp;#039;pre1&amp;#039;&amp;#039; and &amp;#039;&amp;#039;custom1&amp;#039;&amp;#039;&amp;amp;nbsp;:&amp;lt;br/&amp;gt;&lt;br /&gt;
{{tlx|Compact TOC&amp;amp;#32;|&amp;lt;nowiki&amp;gt;center=yes |top=yes |pre1=Scope of list |pre2=Abbreviations used |prebreak=yes |custom1=Popular entries |custom2=Excluded entries |notes=yes|seealso=yes&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{Compact TOC&lt;br /&gt;
 |center=yes |top=yes&lt;br /&gt;
 |pre1=Scope of list |pre2=Abbreviations used |prebreak=yes&lt;br /&gt;
 |custom1=Popular entries |custom2=Excluded entries&lt;br /&gt;
 |notes=yes |seealso=yes&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===&amp;quot;short1&amp;quot;===&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Compact TOC |side=yes |center=yes |nobreak=yes |refs=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; is a common configuration whose parameters may be replaced by the shortcut&lt;br /&gt;
: {{tlx|Compact TOC&amp;amp;#32;|short1}}&lt;br /&gt;
i.e. by making &amp;lt;code&amp;gt;{{!}}short1&amp;lt;/code&amp;gt; the very first parameter.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
{{tlx|Compact TOC&amp;amp;#32;|&amp;lt;nowiki&amp;gt;top=yes&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{| style=&amp;quot;margin-left:2.0em&amp;quot;&lt;br /&gt;
| {{Compact TOC |top=yes}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{tlx|Compact TOC&amp;amp;#32;|&amp;lt;nowiki&amp;gt;side=yes |sym=yes|num=yes |custom1=Other |seealso=yes |refs=yes&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{| style=&amp;quot;margin-left:2.0em&amp;quot;&lt;br /&gt;
| {{Compact TOC |side=yes |sym=yes|num=yes |custom1=Other |seealso=yes |refs=yes}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{tlx|Compact TOC&amp;amp;#32;|&amp;lt;nowiki&amp;gt;name=Directory |top=no |refs=yes|notes=yes|extlinks=yes&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{| style=&amp;quot;margin-left:2.0em&amp;quot;&lt;br /&gt;
|{{Compact TOC |name=Directory |top=no |refs=yes|notes=yes|extlinks=yes}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{tlx|Compact TOC&amp;amp;#32;|&amp;lt;nowiki&amp;gt;side=yes|right=yes |name=no |symnum=yes |seealso=yes&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{Compact TOC |side=yes|right=yes |name=no |symnum=yes |seealso=yes}}&amp;lt;br style=&amp;quot;clear:right;&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{tlx|Compact TOC&amp;amp;#32;|&amp;lt;nowiki&amp;gt;short1 |sym=yes|num=yes|seealso=yes|notesfirst=yes|further=yes|extlinks=yes&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{Compact TOC |short1 |sym=yes|num=yes|seealso=yes|notesfirst=yes|further=yes|extlinks=yes}}&lt;br /&gt;
&lt;br /&gt;
==Limitations==&lt;br /&gt;
Unfortunately, it is not possible to center the contents due to the lack of supporting CSS in [[MediaWiki:Common.css]].&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Help:TOC]]&lt;br /&gt;
* {{tl|Horizontal TOC}}&lt;br /&gt;
* {{tl|Category TOC}}&lt;br /&gt;
* {{tl|TOC limit}}&lt;br /&gt;
* {{tl|TOC hidden}}&lt;br /&gt;
* [[Help:Magic words#Behavior switches]] for more help on:&lt;br /&gt;
** &amp;lt;nowiki&amp;gt;__NOTOC__&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
** &amp;lt;nowiki&amp;gt;__TOC__&amp;lt;/nowiki&amp;gt;&amp;lt;includeonly&amp;gt;&lt;br /&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;
[[Category:Templates that add a tracking category]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>en&gt;WOSlinker</name></author>
	</entry>
</feed>