Template:FloatingTOC: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div style="float:{{{side|right}}};margin:10px | <includeonly><div style="float:{{{side|right}}};margin:0px 30px 0px 10px{{#if:{{{maxwidth|}}}|;max-width:{{{maxwidth}}}px}}">__TOC__</div></includeonly><noinclude>{{documentation}}<!-- | ||
Margins: top right bottom left | |||
--></noinclude> |
Latest revision as of 16:47, 16 February 2015
Documentation
This template makes table of contents (TOC) of the affected page a floating element of the right side (by default).
You can specify the following variables:
- side: Specifies the side to pin the TOC to. Possible values: left, right
- maxwidth: Specifies the maximal TOC width in pixels.