Difference between revisions of "Template:TOC"

From The Utopian Encyclopedia
Jump to: navigation, search
m (I'm just crazy)
 
Line 1: Line 1:
{| style="background:transparent; {{#if: {{{float|}}} | float:{{{1|right}}} | width:100%}}"
+
{| style="background:transparent; width:100%}}"
 
|-
 
|-
|{{#if: {{{float|}}} | | align="{{{1|right}}}" }}| __TOC__
+
| align="{{{1|right}}}"| __TOC__
 
|}
 
|}
 
 
<noinclude>
 
<noinclude>
Simple ToC template.
+
Just a simple ToC template
Default places a non-floating ToC on the right. Even if TOC is not available by default.
 
 
 
float=val turns floating on or off (on update, replace #if: with #switch: so 1 = on and 0 = off
 
 
 
Usage:
 
Default: {{TOC}}
 
Align:  {{TOC|left}}, {{TOC|right}}, {{TOC|center}}
 
Float:  {{TOC|float=1}}
 
Float with Alignment: {{TOC|left|float=1}}
 
  
 +
Default adds a ToC, even if one isn't normally availiable, aligned to the right. at least it SHOULD.
  
Again, don't mind me, I'm just crazy.
+
<nowiki>usage: {{TOC|left}}, {{TOC|right}}, {{TOC|center}}</nowiki>
 
</noinclude>
 
</noinclude>

Revision as of 07:29, 17 November 2009

Just a simple ToC template

Default adds a ToC, even if one isn't normally availiable, aligned to the right. at least it SHOULD.

usage: {{TOC|left}}, {{TOC|right}}, {{TOC|center}}