GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main page
  • Contents
  • Current events
  • Random article
  • About Wikipedia
  • Contact us
  • Help
  • Learn to edit
  • Community portal
  • Recent changes
  • Upload file
  • Special pages
  • Search
  • Donate

This view

  • Original page
  • New address

GeezerVison is showing en.wikipedia.org — Template:Hide inline TOC - Wikipedia

Template documentationviewedithistorypurge
Use {{NOTOC inline}} instead
This template is rated as unstable. It has missing dependencies, compatibility issues, or output errors that make it unusable. Editors are encouraged to improve its compatibility or nominate it for deletion if it cannot be fixed.
This template displays the TOC on the left-hand sidebar on the Vector 2022 skin, while hiding it in other skins. This is useful when a TOC is useful for navigating the page with the sidebar, but is too large to be displayed inline in the legacy skin. It only contains the following:
<div style="display:none">__FORCETOC__</div>

Reason

The Vector 2022 skin has the TOC on the sidebar, thus the TOC is not inserted inside articles (inline). However, some TOC templates automatically hide the TOC, and other pages manually hide it by using the _NOTOC_ magic word. This makes browsing lists much harder. Many of these pages are alphabetical lists, where having a TOC is useful for navigation.

Non–Vector 2022 TOCs are inside .mw-parser-output, so one could just have TemplateStyles with #toc { display: none; } and it would hide the TOC for all non–Vector 2022 skins. However, many custom TOC templates like {{Compact TOC}} automatically add id="toc", so it is not so simple.

There is a relevant discussion at Wikipedia talk:Manual of Style/Glossaries § Compact ToC hostile to Vector2022 users and phab:T317818 § 8778839.

Usage

Place {{Hide inline TOC}}, or its redirect, {{Hit}}, anywhere on the page, preferably at the top.

See also

  • {{TOC hidden}}
The above documentation is transcluded from Template:Hide inline TOC/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:Hide_inline_TOC&oldid=1364120771"
Categories:
  • Unstable templates
  • Wikipedia table of contents templates
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.