Template:HoverTOC: Difference between revisions

From LGPedia
Jump to navigationJump to search
Renegade (talk | contribs)
this is usable by now, and added extra control for margin
Renegade (talk | contribs)
m Changing category sort key
 
(3 intermediate revisions by 3 users not shown)
Line 2: Line 2:
<noinclude>This template reduces the Table of Contents to a small, right-floating block that expands if the user hovers over it. This is useful for pages with big TOCs, where the displaying of the TOC ruins the layout.
<noinclude>This template reduces the Table of Contents to a small, right-floating block that expands if the user hovers over it. This is useful for pages with big TOCs, where the displaying of the TOC ruins the layout.
==Usage==
==Usage==
<pre>{{HoverTOC}}</pre>'''align=''' can be set to either ''left'', ''right'' or ''none''. ''right'' is default.<br>'''space=''' can be set to control the margin on align's side (if it's left or right). It defaults to ''10''.</noinclude>
<pre>{{HoverTOC}}</pre>'''align=''' can be set to either ''left'', ''right'' or ''none''. ''right'' is default.<br>'''space=''' can be set to control the margin on align's side (if it's left or right). It defaults to ''10''.
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 21:13, 9 August 2007

This template reduces the Table of Contents to a small, right-floating block that expands if the user hovers over it. This is useful for pages with big TOCs, where the displaying of the TOC ruins the layout.

Usage

{{HoverTOC}}

align= can be set to either left, right or none. right is default.
space= can be set to control the margin on align's side (if it's left or right). It defaults to 10.