Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)