Editing the Table of Contents

Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Editor-In-Chief: C. Michael Gibson, M.S., M.D. [1]

Overview

Sometimes you will want to remove the Table of Contents on a page. Type this text

__NOTOC__

to accomplish this.

More Table of Contents (TOC) commands are found in the table below:

Table of contents

Word Explanation
__NOTOC__ Hides the Table of Contents on the current page.
__FORCETOC__ Forces the table of contents to appear.
__TOC__ Places a Table of Contents here. Also forces it to appear.


More magic

Word Explanation
__NOEDITSECTION__ Hides the edit links beside headings.
__NOTITLECONVERT__
__NOTC__
Like __NOCC__ but affecting article title only.
__END__ Allows for trailing whitespace to be included in the page save.


Behavior switches

A behavior switch controls the layout or behavior of the page and can often be used to specify desired omissions and inclusions in the content.

Template:Hl2| Word Template:Hl2| Description Template:Hl2| Versions
Template:Hl3 colspan="3"| Table of contents
__NOTOC__ Hides the table of contents (TOC).
__FORCETOC__ Forces the table of contents to appear at its normal position (above the first header).
__TOC__ Places a table of contents at the word's current position (overriding __NOTOC__). If this is used multiple times, the table of contents will appear at the first word's position.
Template:Hl3 colspan="3"| Editing
__NOEDITSECTION__ Hides the section edit links beside headings. This is especially useful, where a heading is created from within a template: the normal wiki section-edit would in this case edit the template code, which is normally counterintuitive to the user. If a template contains multiple headings, it may be necessary to add "__NOEDITSECTION__" after each heading.
__NEWSECTIONLINK__ Adds a link ("+" by default) beside the "edit" tab for adding a new section on a non-talk page (see Template:Mediawiki). 1.7+
__NONEWSECTIONLINK__ Removes the link beside the "edit" tab on pages in talk namespaces. Template:Mediawiki
Template:Hl3 colspan="3"| Categories
__NOGALLERY__ Used on a category page, replaces thumbnails in the category view with normal links. 1.7+
__HIDDENCAT__ Used on a category page, hides the category from the lists of categories in its members and parent categories (there is an option in the user preferences to show them). 1.13+
Template:Hl3 colspan="3"| Language conversion
__NOCONTENTCONVERT__
__NOCC__
On wikis with language variants, don't perform any content language conversion (character and phase) in article display; for example, only show Chinese (zh) instead of variants like zh_cn, zh_tw, zh_sg, or zh_hk.
__NOTITLECONVERT__
__NOTC__
On wikis with language variants, don't perform language conversion on the title (all other content is converted).
Template:Hl3 colspan="3"| Other
__START__ No effect.
__END__ Explicitly marks the end of the article, to prevent MediaWiki from removing trailing whitespace. Removed in Template:Mediawiki. 1.1–1.8
__INDEX__ Tell search engines to index the page (overrides Template:Mediawiki, but not robots.txt). 1.14+
__NOINDEX__ Tell search engines not to index the page (ie, do not list in search engines' results). Template:Mediawiki
__STATICREDIRECT__ On redirect pages, don't allow MediaWiki to automatically update the link when someone moves a page and checks "Update any redirects that point to the original title". Template:Mediawiki



Template:WikiDoc Sources