Help:TOC: Difference between revisions

799 bytes added ,  30 September 2022
Fix double-redirect, interwiki template
(New page: '''TOC''' means Table Of Contents. A TOC is included automatically to a page if there are more than 3 Headlines. You can force it by <tt><nowiki>__TOC__</nowiki></tt>. You can hide it b...)
 
(Fix double-redirect, interwiki template)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''TOC''' means Table Of Contents.
{{TOC right}}
'''TOC''' is a common {{Wp|three-letter acronym}} (TLA) for 'Table Of Contents'.  On [[:Category:MediaWiki|MediaWiki]] sites, a table of contents is included automatically on the left margin of a page just before the first headline if there are four or more 'Headlines' (primary sub-headings) in an [[article]].


A TOC is included automatically to a page if there are more than 3 Headlines.
You can force a TOC in an alternate position on the <u>left</u> margin by placing <code><nowiki>__TOC__</nowiki></code> at the point where you desire said TOC.


You can force it by <tt><nowiki>__TOC__</nowiki></tt>.
You can prevent a TOC from appearing anywhere by placing <code><nowiki>__NOTOC__</nowiki></code> anywhere within the [[edit box]], though there ought to be strong reasons or justification for hiding a table of contents.


You can hide it by <tt><nowiki>__NOTOC__</nowiki></tt>.
If you want to force your TOC to the <u>right</u> margin (even with less than four sub-headings), use <code>{{Template|TOC right}}</code> [[:Category:Templates|template]] in the location the TOC should appear; as shown in this article.


see also [[Magic Words]]
===See also===
*[[WikiIndex: Magic words]]


[[category:help]]
{{DEFAULTSORT:Toc}}
[[Category:Help]]
[[Category:Glossary]]
[[Category:Acronym]]