Difference between revisions of "Template:TOC float"

From Team Fortress Wiki
Jump to: navigation, search
m (forgot)
 
Line 1: Line 1:
 
{| cellspacing="0" cellpadding="0" style="{{#switch:{{{1|}}}
 
{| cellspacing="0" cellpadding="0" style="{{#switch:{{{1|}}}
   | left = clear: {{{clear|left}}}; float: left; padding: .5em 1.4em .8em 0;
+
   | left = clear: {{{clear|left}}}; float: left; padding: .5em 1.4em .8em 0;  
 
   | right  
 
   | right  
 
   | #default = clear: {{{clear|right}}}; float: right; padding: .5em 0 .8em 1.4em;
 
   | #default = clear: {{{clear|right}}}; float: right; padding: .5em 0 .8em 1.4em;
   }} background: none; width:{{{width|auto}}};"
+
   }} background: none; width:{{{width|auto}}}; margin-bottom: .5em;"
| __TOC__{{{2|}}}
+
| __TOC__
 
|}<noinclude>
 
|}<noinclude>
 
* {{tlx|TOC float|left}} to float the Table of Contents on the left side of the page.
 
* {{tlx|TOC float|left}} to float the Table of Contents on the left side of the page.
 
* {{tlx|TOC float|right}} for the right [default].
 
* {{tlx|TOC float|right}} for the right [default].
 
* Other parameters:
 
* Other parameters:
** ''2 = '' any content to accompany the TOC. Use ''2 = '' if it contains an = (equals) sign.
 
 
** ''clear = right'', ''left'' &ndash; defines which side of the page to "clear".
 
** ''clear = right'', ''left'' &ndash; defines which side of the page to "clear".
 
** ''width = auto'' [default] &ndash; define a custom width.  
 
** ''width = auto'' [default] &ndash; define a custom width.  
 
[[Category:Templates|TOC float]]
 
[[Category:Templates|TOC float]]
 
</noinclude>
 
</noinclude>

Latest revision as of 09:37, 9 August 2010

  • {{TOC float|left}} to float the Table of Contents on the left side of the page.
  • {{TOC float|right}} for the right [default].
  • Other parameters:
    • clear = right, left – defines which side of the page to "clear".
    • width = auto [default] – define a custom width.