User:Phlsph7/ClassicalTOC(Vector2022)

From Wikipedia, the free encyclopedia
User script
Classical TOC (Vector 2022)
DescriptionRestores the classical table of contents used in the Vector 2010 legacy skin.
Author(s)Phlsph7
First releasedFebruary 12, 2023; 13 months ago (2023-02-12)
UpdatedMay 8, 2023
    (11 months ago)
Browser supportall modern browsers
Skin supportVector 2022
SourceUser:Phlsph7/ClassicalTOC(Vector2022).js

Classical TOC (Vector 2022) is a user script for the new Vector 2022 skin. It restores how the table of contents (TOC) was displayed in the classical Vector 2010 legacy skin. The classical TOC has a static position between the lead of the article and the first section. It is presented in a grey box that can be folded. The classical TOC can be used together with the new TOC floating on the left or the user may decide to hide the new TOC by clicking on its hide-button.

Installation[edit]

To install this script, go to your common.js and add the following line:

importScript('User:Phlsph7/ClassicalTOC(Vector2022).js'); // Backlink: [[User:Phlsph7/ClassicalTOC(Vector2022).js]]

If you run into problems or have suggestions on how to improve the script, please discuss them at User_talk:Phlsph7/ClassicalTOC(Vector2022).