<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thegoonshow.co.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ACatAutoTOC%2Fdoc</id>
	<title>Template:CatAutoTOC/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.thegoonshow.co.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ACatAutoTOC%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.thegoonshow.co.uk/wiki/index.php?title=Template:CatAutoTOC/doc&amp;action=history"/>
	<updated>2026-05-14T09:29:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>https://www.thegoonshow.co.uk/wiki/index.php?title=Template:CatAutoTOC/doc&amp;diff=12410&amp;oldid=prev</id>
		<title>Kurt at 14:48, 12 August 2022</title>
		<link rel="alternate" type="text/html" href="https://www.thegoonshow.co.uk/wiki/index.php?title=Template:CatAutoTOC/doc&amp;diff=12410&amp;oldid=prev"/>
		<updated>2022-08-12T14:48:00Z</updated>

		<summary type="html">&lt;p&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 09:48, 12 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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;{{Documentation subpage}}&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;{{Documentation subpage}}&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{High-use|341917}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;{{lua|Module:HTMLDecode}}&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;{{lua|Module:HTMLDecode}}&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;&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&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;&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;w:&lt;/ins&gt;Wikipedia:Wikidata&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|&lt;/ins&gt;]]) --&amp;gt;&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;div&gt;Adds a Table of Contents (TOC) to a category page if the category's size warrants it.&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;Adds a Table of Contents (TOC) to a category page if the category's size warrants it.&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;/table&gt;</summary>
		<author><name>Kurt</name></author>
	</entry>
	<entry>
		<id>https://www.thegoonshow.co.uk/wiki/index.php?title=Template:CatAutoTOC/doc&amp;diff=12401&amp;oldid=prev</id>
		<title>Kurt: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.thegoonshow.co.uk/wiki/index.php?title=Template:CatAutoTOC/doc&amp;diff=12401&amp;oldid=prev"/>
		<updated>2022-08-12T14:46:35Z</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 09:46, 12 August 2022&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>Kurt</name></author>
	</entry>
	<entry>
		<id>https://www.thegoonshow.co.uk/wiki/index.php?title=Template:CatAutoTOC/doc&amp;diff=12400&amp;oldid=prev</id>
		<title>en&gt;Discospinster: Reverted edits by 2600:387:A:902:0:0:0:61 (talk) to last version by WOSlinker</title>
		<link rel="alternate" type="text/html" href="https://www.thegoonshow.co.uk/wiki/index.php?title=Template:CatAutoTOC/doc&amp;diff=12400&amp;oldid=prev"/>
		<updated>2022-02-16T02:46:34Z</updated>

		<summary type="html">&lt;p&gt;Reverted edits by &lt;a href=&quot;/wiki/index.php?title=Special:Contributions/2600:387:A:902:0:0:0:61&quot; title=&quot;Special:Contributions/2600:387:A:902:0:0:0:61&quot;&gt;2600:387:A:902:0:0:0:61&lt;/a&gt; (&lt;a href=&quot;/wiki/index.php?title=User_talk:2600:387:A:902:0:0:0:61&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:2600:387:A:902:0:0:0:61 (page does not exist)&quot;&gt;talk&lt;/a&gt;) to last version by WOSlinker&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|341917}}&lt;br /&gt;
{{lua|Module:HTMLDecode}}&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;
Adds a Table of Contents (TOC) to a category page if the category's size warrants it.&lt;br /&gt;
&lt;br /&gt;
The size thresholds are:&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;= 100 pages → no TOC&lt;br /&gt;
# 101–1200 pages → {{tl|Category TOC}}&lt;br /&gt;
# &amp;gt; 1200 pages → {{tl|Large category TOC}}&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{CatAutoTOC}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On category pages, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{CatAutoTOC}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; can be placed wherever you want the TOC to be displayed.&lt;br /&gt;
&lt;br /&gt;
On a category header template, it is best placed outside any &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; tags, so that the template is categorised as using CatAutoTOC.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
No parameters are needed.&lt;br /&gt;
&lt;br /&gt;
However, the parameters available {{tl|Category TOC}} may be supplied, and if CatAutoTOC calls {{tl|Category TOC}}, those parameters will be passed on to {{tl|Category TOC}}.&lt;br /&gt;
&lt;br /&gt;
So e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{CatAutoTOC|align=center}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will:&lt;br /&gt;
# Have no effect if no TOC is generated&lt;br /&gt;
# Align to the center if {{tl|Category TOC}} is used&lt;br /&gt;
# Have no effect if {{tl|Large category TOC}} is used, because {{tl|Large category TOC}} accepts no parameters&lt;br /&gt;
&lt;br /&gt;
== Tracking ==&lt;br /&gt;
&amp;lt;div style=&amp;quot;display:block; float:right&amp;quot;&amp;gt;{{CatAutoTOC stats}}&amp;lt;/div&amp;gt;&lt;br /&gt;
Each page using this template is categorised in one of three tracking categories:&lt;br /&gt;
* [[:Category:CatAutoTOC generates no TOC]]&lt;br /&gt;
* [[:Category:CatAutoTOC generates standard Category TOC]]&lt;br /&gt;
* [[:Category:CatAutoTOC generates Large category TOC]]&lt;br /&gt;
&lt;br /&gt;
Templates which transclude {{tl|CatAutoTOC}} are categorised in&lt;br /&gt;
* [[:Category:Templates using CatAutoTOC]]  (population: {{PAGESINCATEGORY:Templates using CatAutoTOC}})&lt;br /&gt;
&lt;br /&gt;
... but only if the transclusion is outside any &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;noinclude&amp;gt;&amp;lt;/noinclude&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; tags&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;{{Purge|''Purge this page to update the totals''}}&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Bugs ==&lt;br /&gt;
This template uses the [[Help:Magic words|magic word]] &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{PAGESINCATEGORY}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; to count the number of pages in the category.  Unfortunately, this function can return wildly erroneous results on some categories which have had many pages added and removed.&lt;br /&gt;
&lt;br /&gt;
This bug is well-known, and has been documented in several places since 2010, including:&lt;br /&gt;
* [[phab:T18036]]&lt;br /&gt;
* [[phab:T221795]]&lt;br /&gt;
* [[phab:T69196]]&lt;br /&gt;
&lt;br /&gt;
In the overwhelming majority of categories, the count is recorded accurately enough to support use of this template.  However, there seemed to be some issue with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{PAGESINCATEGORY}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; falsely returning zero in some cases.  This is tracked in:&lt;br /&gt;
* [[:Category:CatAutoTOC on pages where PAGESINCATEGORY returns zero]] (population: {{PAGESINCATEGORY:CatAutoTOC on pages where PAGESINCATEGORY returns zero}})&lt;br /&gt;
&lt;br /&gt;
As of 19 April 2020, that problem seems to have been fixed by a small but cunning tweak[https://en.wikipedia.org/w/index.php?title=Template%3ACatAutoTOC&amp;amp;type=revision&amp;amp;diff=951919806&amp;amp;oldid=950933704] to how &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{PAGESINCATEGORY}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; is called.&lt;br /&gt;
&lt;br /&gt;
The category ''should'' contain only pages labelled as &amp;quot;empty&amp;quot;.&lt;br /&gt;
&amp;lt;small&amp;gt;{{Purge page|''Purge page to update totals''}}&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{Category TOC see also}}&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:Category header templates]]&lt;br /&gt;
[[Category:Wikipedia category table of contents templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>en&gt;Discospinster</name></author>
	</entry>
</feed>