User:Shahadat/FloatingTOC
Jump to navigation
Jump to search
Introduction
This duplicate the Table of Contents and makes it float at the bottom right portion of the screen. It can be collapsed/expanded.
Installation
To implement this, add this to your common.js page (or any skin works fine):
importScript('User:Shahadat/FloatingTOC.js'); // [[User:Shahadat/FloatingTOC.js]]
Options
To make the default position left instead of right, add
var leftDefault = true; importScript('User:Shahadat/FloatingTOC.js');
just before importScript.
Similarly, for it to be hidden or collapsed by default, add
var hideDefault = true;
To do
- Currently manually clicking too tedious and makes it rather useless in practise
- add feature (which can be disabled on the fly) where it un-collapses when scrolling/reading and collapses on mouse hover.
Notes
This script is inspired from and replaces User:Shahadat/FloatingTOC.css.
Script Attribution
![]() | This script was manually imported from Wikipedia in compliance with their CC-BY-SA license. This script is utilized either partially or in full, incorporating corrections, modifications, or imported from the original script. For details regarding the original script and its creator, please refer to the following link: https://en.wikipedia.org/wiki/User:Ugog_Nizdast/FloatingTOC |