mediawiki/extensions/StickyTOC - Gitiles

MediaWiki extension StickyTOC

Clone this repo:
  1. 594241d build: Updating dependencies by libraryupgrader · 3 weeks ago master
  2. 54fc6d0 build: Updating grunt-banana-checker to 0.13.0 by libraryupgrader · 5 months ago
  3. c695e7d build: Updating dependencies by libraryupgrader · 5 months ago
  4. 8bf76da Localisation updates from https://translatewiki.net. by Translation updater bot · 6 months ago
  5. 0811c33 build: Updating dependencies by libraryupgrader · 6 months ago

StickyTOC

Makes the TOC float to a page side and act as a sticky panel

Requirements:

Setup

  • Clone the extension into the extensions folder
  • Add wfLoadExtension('StickyTOC'); to the bottom of LocalSettings.php

Configuration

  • $wgStickyTOCFloat - allows controlling to which side the TOC will float. By default it's set to left, but it can be changed to right or aside:
    • left - TOC floats to the left
    • right - TOC floats to the right
    • aside - TOC jumps to the left and acts as a column, shifting the page contents to the right
  • $wgStickyTOCNavbar - If set to truem will force the TOC to treat the current layout navbar as being sticky. By default this is set to false. There is no need to change this for the default Chameleon stickyhead.xml layout, only for custom ones.
  • $wgStickyTOCReplaceTitle - If set to true will replace TOC title with article title. By default this is set to false.

Created for the National Gallery of Art HEALD wiki.