Template:Hide inline TOC
<div style="display:none">__FORCETOC__</div>
Reason
[edit]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 phab:T317818 § 8778839
Usage
[edit]Place {{Hide inline TOC}}, or its redirect, {{Hit}}, anywhere on the page, preferably at the top.
See also
[edit]- {{TOC hidden}}