Difference between revisions of "Template:HoverTOC"

From LGPedia
Jump to: navigation, search
(this is usable by now, and added extra control for margin)
Line 1: Line 1:
 +
{{delete|This template is no longer used anywhere.}}
 +
 
<includeonly><div id="hoverTOC" style="float: {{{align|right}}}; margin-{{{align|right}}}: {{{space|10}}}px;"><div id="hoverTOCtitle">Contents</div>__TOC__</div></includeonly>
 
<includeonly><div id="hoverTOC" style="float: {{{align|right}}}; margin-{{{align|right}}}: {{{space|10}}}px;"><div id="hoverTOCtitle">Contents</div>__TOC__</div></includeonly>
 
<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''.</noinclude>

Revision as of 05:35, 27 May 2007

Crystal clear trashcan full.png
This article has been nominated for deletion
Reason: This template is no longer used anywhere.

Please discuss this proposal on this article's talk page


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.