=== Description
In Legacy Vector you can configure how sections and sub-sections display in the table of contents using [[ https://en.wikipedia.org/wiki/Template:TOC_limit | Template:TOC limit ]]. Currently in Vector 2022 there is no such equivalent for the table of contents.
In T300973 we made it so that top level sections in the table of contents dynamically expand/collapse their sub-sections based on how many total sections & sub-sections are in the article. However this approach does not always yield the best table of contents presentation, particularly for pages that have many sub-sections that are all nested within a single parent section. A clear example is [[ https://en.wikipedia.org/wiki/Wikipedia:Closure_requests?useskin=vector-2022 | Wikipedia:Closure requests ]].
{F35520684 width=600}
=== To-do
Introduce some kind of configurability that allows editors to customize the display of sections and sub-sections in the table of contents (similar to [[ https://en.wikipedia.org/wiki/Template:TOC_limit | Template:TOC limit ]]). A simple starting point might be a single option that forces all sections in the table of contents to be expanded by default. As an example, the result of this preference being turned on for [[ https://en.wikipedia.org/wiki/Wikipedia:Closure_requests?useskin=vector-2022 | Wikipedia:Closure requests ]] would be:
{F35520670 width=600}