• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:TOC center

  • Template
  • Talk
  • Language
  • Watch
  • View source
(Redirected from Template:TOCcenter)

Contents

  • 1 Usage
  • 2 Limitations
  • 3 TemplateData
    • 3.1 See also
Template documentation[view] [edit] [history] [purge]
This template is not for use in articles. Including it in the article namespace will result in a normal TOC being shown.
This template does not work properly in the Vector 2022 skin. Read the documentation for an explanation.
CSSThis template uses TemplateStyles:
  • Template:TOC limit/styles.css (sandbox)
  • Template:TOC center/styles.css

{{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. See a monthly parameter usage report for Template:TOC center in articles based on its 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[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Limitlimit

Limits the depth of subheadings shown

Example
2
Numberoptional

See also

  • Help:Section#Floating the TOC
  • Template:TOCleft(edit talk links history)
  • Template:TOC right(edit talk links history)
  • Help:Magic words
The above documentation is transcluded from Template:TOC center/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:TOC_center&oldid=872696691"
Last edited on 8 December 2018, at 16:38

Languages

    • Azərbaycanca
    • 한국어
    • Bahasa Indonesia
    • Íslenska
    • मैथिली
    • पालि
    • Română
    • کوردی
    • Српски / srpski
    • తెలుగు
    • Türkçe
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 8 December 2018, at 16:38 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop