Difference between revisions of "Template:TOC"

(Add small option)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
__TOC__
+
<includeonly><div style="{{#ifeq:{{{1|}}}|small|font-size: 0.75em|}}{{#ifeq:{{{1|}}}|left|float: left|}}{{#ifeq:{{{1|}}}|right|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>
 +
 
 +
 
 +
Include a TOC with small font:
 +
<pre>
 +
{{TOC|small}}
 +
</pre>
 +
</noinclude>

Latest revision as of 21:43, 3 June 2017

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}}


Include a TOC with small font:

{{TOC|small}}