Help:TOC: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
m (Text replacement - "{{TOCright}}" to "{{TOC right}}")
(Fix double-redirect, interwiki template)
 
Line 1: Line 1:
{{TOC right}}
{{TOC right}}
'''TOC''' is a common [[wp:Three-letter acronym|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]].
'''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]].


You can force a TOC in an alternate position on the left margin by placing <code><nowiki>__TOC__</nowiki></code> at the point where you desire said TOC.
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 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 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.


If you want to force your TOC to the <u>right</u> margin (even with less than four sub-headings), use <code>{{template|TOCright}}</code> [[:Category:Templates|template]] in the location the TOC should appear; as shown in this article.
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===
===See also===
*[[WikiIndex:Magic words]]
*[[WikiIndex: Magic words]]


{{DEFAULTSORT:Toc}}
{{DEFAULTSORT:Toc}}

Latest revision as of 14:32, 30 September 2022

TOC is a common three-letter acronym (TLA) for 'Table Of Contents'. On 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.

You can force a TOC in an alternate position on the left margin by placing __TOC__ at the point where you desire said TOC.

You can prevent a TOC from appearing anywhere by placing __NOTOC__ anywhere within the edit box, though there ought to be strong reasons or justification for hiding a table of contents.

If you want to force your TOC to the right margin (even with less than four sub-headings), use {{TOC right}} template in the location the TOC should appear; as shown in this article.

See also[edit]