Template:Fancy TOC/doc

The template displays a table of contents box that can be limited to a set height and width, and will allow scrolling to see the remainder of the table of contents that doesn't fix within the size that is set.

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.