<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ATOC%2Fdoc</id>
	<title>Template:TOC/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ATOC%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:TOC/doc&amp;action=history"/>
	<updated>2026-04-19T03:16:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://compusofia.com/w/index.php?title=Template:TOC/doc&amp;diff=2246&amp;oldid=prev</id>
		<title>Majestix: 1 revision imported: Initial Setup</title>
		<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:TOC/doc&amp;diff=2246&amp;oldid=prev"/>
		<updated>2026-04-10T17:13:03Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported: Initial Setup&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 19:13, 10 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&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;!-- diff cache key wikiNonStop:diff:1.41:old-2245:rev-2246 --&gt;
&lt;/table&gt;</summary>
		<author><name>Majestix</name></author>
	</entry>
	<entry>
		<id>https://compusofia.com/w/index.php?title=Template:TOC/doc&amp;diff=2245&amp;oldid=prev</id>
		<title>en&gt;Renamed user 34a3a995a576e0da3fb6b4ed792b4c63: Add pt language</title>
		<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:TOC/doc&amp;diff=2245&amp;oldid=prev"/>
		<updated>2025-08-14T14:27:09Z</updated>

		<summary type="html">&lt;p&gt;Add pt language&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;
{{Uses TemplateStyles|Template:TOC/limit-styles.css}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Tables of contents&amp;#039;&amp;#039;&amp;#039; contain links to sections within an article, providing easy and automatic on-page navigation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;limit&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: {&lt;br /&gt;
				&amp;quot;en&amp;quot;: &amp;quot;Heading level limit&amp;quot;,&lt;br /&gt;
				&amp;quot;cs&amp;quot;: &amp;quot;Limit úrovně nadpisu&amp;quot;,&lt;br /&gt;
                &amp;quot;pt&amp;quot;: &amp;quot;Limite de nível do cabeçalho&amp;quot; &lt;br /&gt;
			},&lt;br /&gt;
			&amp;quot;description&amp;quot;: {&lt;br /&gt;
				&amp;quot;en&amp;quot;: &amp;quot;How many heading levels to show in the table of contents. The lower, the fewer headings are shown. Note that in articles, the main level for headings starts at 2 (the article title is H1, so limit=1 would generally show no headings at all).&amp;quot;,&lt;br /&gt;
				&amp;quot;cs&amp;quot;: &amp;quot;Kolik úrovní nadpisů se má zobrazit v obsahu. Čím níže, tím méně nadpisů je zobrazeno. Všimněte si, že v článcích začíná hlavní úroveň nadpisů na 2 (název článku je H1, takže limit=1 by obecně nezobrazoval žádné nadpisy).&amp;quot;,&lt;br /&gt;
                &amp;quot;pt&amp;quot;: &amp;quot;Quantos níveis de cabeçalho a mostrar na tabela de conteúdos. Quanto mais baixo, são mostrados menos cabeçalhos. Note que, nos artigos, o nível principal dos cabeçalhos começa no 2.º (o título do artigo é H1, pelo que limit=1 geralmente não mostraria quaisquer títulos).&amp;quot;&lt;br /&gt;
			},&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;2&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;align&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: {&lt;br /&gt;
				&amp;quot;en&amp;quot;: &amp;quot;Alignment&amp;quot;,&lt;br /&gt;
				&amp;quot;cs&amp;quot;: &amp;quot;Zarovnání&amp;quot;,&lt;br /&gt;
                &amp;quot;pt&amp;quot;: &amp;quot;Alinhamento&amp;quot;&lt;br /&gt;
			},&lt;br /&gt;
			&amp;quot;description&amp;quot;: {&lt;br /&gt;
				&amp;quot;en&amp;quot;: &amp;quot;Whether to align the table of contents to the \&amp;quot;right\&amp;quot; or \&amp;quot;left\&amp;quot;. The default is left.&amp;quot;,&lt;br /&gt;
				&amp;quot;cs&amp;quot;: &amp;quot;Zda zarovnat obsah \&amp;quot;vpravo\&amp;quot; nebo \&amp;quot;vlevo\&amp;quot;. Výchozí nastavení je vlevo.&amp;quot;,&lt;br /&gt;
                &amp;quot;pt&amp;quot;: &amp;quot;Se alinhar a tabela de conteúdos à \&amp;quot;direita\&amp;quot; ou \&amp;quot;esquerda\&amp;quot;. A predefinição é à esquerda.&amp;quot;&lt;br /&gt;
			},&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;right&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: {&lt;br /&gt;
		&amp;quot;en&amp;quot;: &amp;quot;Template for changing the way the table of contents is rendered.\n&amp;quot;,&lt;br /&gt;
		&amp;quot;cs&amp;quot;: &amp;quot;Šablona pro změnu způsobu vykreslování obsahu.\n&amp;quot;,&lt;br /&gt;
        &amp;quot;pt&amp;quot;: &amp;quot;Modelo para alterar o modo em que a tabela de conteúdos é renderizada.\n&amp;quot;&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Standard Tables of Contents==&lt;br /&gt;
Articles will include a default table of contents when more than three section headings appear.  The default table of contents will include all section headings and will appear just before the first section heading.  By default, the table of contents will be left aligned.&lt;br /&gt;
&lt;br /&gt;
You may hide an individual table of contents when viewing an article by clicking the &amp;quot;hide&amp;quot; link in the table.  Alternately, if you do not wish to see &amp;#039;&amp;#039;any&amp;#039;&amp;#039; tables of contents, you may deactivate their display entirely within the Misc tab of your [[Special:Preferences|user preferences]].  Simply uncheck the box next to &amp;quot;Show table of contents (for pages with more than 3 headings)&amp;quot; and no tables of contents will be displayed.&lt;br /&gt;
&lt;br /&gt;
==Modifying the Table of Contents==&lt;br /&gt;
Several [[Help:Magic_words|magic words]] and templates exist which modify the standard tables of contents.&lt;br /&gt;
===Removing the Table of Contents from an article===&lt;br /&gt;
To remove the table of contents from any article, simply add the magic word &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;__NOTOC__&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; anywhere within the article.  It&amp;#039;s usually not advisable to do so, unless you are manually providing an alternative table of contents, but in some cases it may make the page more usable (e.g. on your main page, or on a page that just contains a list of links and is therefore already a TOC, of sorts).&lt;br /&gt;
&lt;br /&gt;
===Forcing and Moving the Table of Contents===&lt;br /&gt;
To force the table of contents to appear regardless of how many headings an article has, simply add the magic word &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;__TOC__&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; anywhere within the article.  The table of contents will appear wherever you place the template, allowing you to move it up or down the page from its normal position.&lt;br /&gt;
&lt;br /&gt;
===Changing the alignment of the table of contents===&lt;br /&gt;
To force the table of contents to appear on the right of a page, use the {{tlx|tocright}} template.  The table of contents will appear wherever you place the template.&lt;br /&gt;
&lt;br /&gt;
To force the table of contents to float on the left of a page, use the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{tocleft}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; template.  The table of contents will appear wherever you place the template.  Note that the text of the page will wrap around a floated table of contents, whereas the standard table does not allow text to appear to the right of the table and instead creates whitespace.&lt;br /&gt;
&lt;br /&gt;
===Limiting the headings listed in a table of contents===&lt;br /&gt;
Section headings create a hierarchy.  In this page&amp;#039;s table of contents, note how Section 2, &amp;quot;Modifying the Table of Contents&amp;quot;, contains several subsections.  These subsections could also contain subsections of their own.  &lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s possible to limit the depth of headings which are included in the table of contents using the {{tlx|toclimit}} template.  By setting a number value for &amp;lt;code&amp;gt;|limit=&amp;lt;/code&amp;gt;, only headings of the specified level or greater will be included in the table of contents.  For example, &amp;lt;code&amp;gt;{{tlx|toclimit|2=limit=2}}&amp;lt;/code&amp;gt; will include only level two headings (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;==Heading==&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;), while &amp;lt;code&amp;gt;{{tlx|toclimit|2=limit=3}}&amp;lt;/code&amp;gt; will include level three headings (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;===Heading===&amp;lt;/nowiki&amp;gt;)&amp;lt;/code&amp;gt; as well as level two headings, and so on.&lt;br /&gt;
&lt;br /&gt;
Like [[:Category:TOC extensions|the other TOC templates]], {{tlx|toclimit}} will cause the table to appear wherever the template is placed on the page.  Additionally, both &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{tocleft}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and {{tlx|tocright}} support the use of the &amp;lt;code&amp;gt;|limit&amp;lt;/code&amp;gt; variable.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Template:TOCright]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Help{{#translation:}}]]&lt;/div&gt;</summary>
		<author><name>en&gt;Renamed user 34a3a995a576e0da3fb6b4ed792b4c63</name></author>
	</entry>
</feed>