Difference between revisions of "Template:TOC"

(Add float left and right capabilities)
Line 1: Line 1:
__TOC__
+
<includeonly><div{{#if:{{{left|}}}|style="float: left"|}}{{#if:{{{right|}}}|style="float: right"|}}>__TOC__</div></includeonly><noinclude>
 +
Template for including the table of contents.
 +
 
 +
== Usage ==
 +
 
 +
Include a TOC at the top, not wrapped:
 +
<pre>
 +
{{TOC}}
 +
</pre>
 +
 
 +
Include a TOC which floats left:
 +
<pre>
 +
{{TOC|left}}
 +
</pre>
 +
 
 +
Include a TOC which floats right:
 +
<pre>
 +
{{TOC|right}}
 +
</pre>
 +
</noinclude>

Revision as of 11:46, 1 June 2016

Template for including the table of contents.

Usage

Include a TOC at the top, not wrapped:

{{TOC}}

Include a TOC which floats left:

{{TOC|left}}

Include a TOC which floats right:

{{TOC|right}}