Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prtksxna/persistent-toc
A gadget to add persistent table of contents on Wikipeida articles
https://github.com/prtksxna/persistent-toc
mediawiki mediawiki-gadget
Last synced: 21 days ago
JSON representation
A gadget to add persistent table of contents on Wikipeida articles
- Host: GitHub
- URL: https://github.com/prtksxna/persistent-toc
- Owner: prtksxna
- License: mit
- Created: 2015-01-09T10:33:33.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-08-17T17:54:10.000Z (about 2 years ago)
- Last Synced: 2024-04-14T18:37:24.482Z (7 months ago)
- Topics: mediawiki, mediawiki-gadget
- Language: JavaScript
- Size: 8.79 KB
- Stars: 11
- Watchers: 4
- Forks: 4
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Persistent Table of Contents for Wikipedia
A gadget to add persistent table of contents on Wikipedia articles. The table of contents move to the left sidebar after scrolling past the first section and they expand on hover.
Please [report problems](https://github.com/prtksxna/persistent-toc/issues/new) on the [issue tracker](https://github.com/prtksxna/persistent-toc/issues/).
## Usage
Add the following code to your [common.js](https://en.wikipedia.org/wiki/Special:MyPage/common.js):
```javascript
mw.loader.load( 'https://cdn.rawgit.com/prtksxna/persistent-toc/master/ptoc.css', 'text/css' );
mw.loader.load( 'https://cdn.rawgit.com/prtksxna/persistent-toc/master/ptoc.js', 'text/javascript' );
```## Screenshots
![screen shot 2015-01-09 at 5 31 40 pm](https://cloud.githubusercontent.com/assets/9491/5679441/95938c88-9825-11e4-9c5f-bfb824c0ea5b.png)
![screen shot 2015-01-09 at 5 32 03 pm](https://cloud.githubusercontent.com/assets/9491/5679440/958f8214-9825-11e4-84ec-493858df1c03.png)