Difference between revisions of "Template:Float toc"

From The iPhone Wiki
Jump to: navigation, search
(update to wikipedia)
Line 1: Line 1:
  +
{| cellspacing="0" cellpadding="0" style="clear: {{{clear|right}}}; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{width|{{{1|auto}}}}}};"
{| border="0" style="float:{{{1|{{{align|{{{float|right}}}}}}}}}"
 
 
|-
 
|-
|| __TOC__
+
| __TOC__
 
|}<noinclude>
 
|}<noinclude>
 
== Purpose ==
 
== Purpose ==

Revision as of 18:18, 21 February 2011

Purpose

This template floats the table of contents to the right of the page. It is useful on pages with lots of sections.

Usage

{{float toc}}

Result: Above

{{float toc|(float)}}

You can use {{float toc|left}}, {{float toc|align=left}}, {{float toc|left}} to float the table to the left.

Shortcuts