Template:TOC center/doc

Template page

This category is an index of templates which use TemplateStyles. It is automatically populated by {{Uses TemplateStyles}}.


{{TOC center}} forces the auto-generated Table of Contents for an article to appear in a table that is floated at the center of the page, in order to improve page layout on non-article pages.

Usage

Insert {{TOC center}} at the point in the article where you want the top of the Table of Contents box to appear.

Limitations

Since the Vector 2022 skin forces the table of contents into a sidebar or a pop-up menu, this template does not control the placement of the TOC in that skin.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template in articles based on this TemplateData.

TemplateData for TOC center

TOC center forces the auto-generated Table of Contents for an article to appear floated at the center of the page, in order to improve page layout on non-article pages.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Limitlimit

Limits the depth of subheadings shown

Example
2
Numberoptional

See also