Difference between revisions of "Template:TOCleft"

From RimWorld Wiki
Jump to navigation Jump to search
(Created template for a left-aligned Table of Contents)
 
m (Looks like my <noinclude> was around the wrong thing, this should get it working again.)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<noinclude>
 
This template shows a left-aligned ''table of contents''.
 
This template shows a left-aligned ''table of contents''.
 +
</noinclude>
 
{| cellspacing="0" cellpadding="0" style="clear: {{{clear|left}}}; margin-bottom: .5em; float: left; padding: .5em 0 .8em 1.4em; background: none; width: {{{width|{{{1|auto}}}}}};"
 
{| cellspacing="0" cellpadding="0" style="clear: {{{clear|left}}}; margin-bottom: .5em; float: left; padding: .5em 0 .8em 1.4em; background: none; width: {{{width|{{{1|auto}}}}}};"
 
| __TOC__
 
| __TOC__
Line 7: Line 9:
 
{{!}}
 
{{!}}
 
{{!}}}
 
{{!}}}
}}<noinclude>
+
}}
 
 
  
  
Line 17: Line 18:
  
  
 +
<noinclude>
 
== Usage ==
 
== Usage ==
 
<pre style="width: 50%;">
 
<pre style="width: 50%;">

Latest revision as of 02:17, 29 August 2014

This template shows a left-aligned table of contents.






Usage[edit]

{{TOCleft}}

Parameters (optional)[edit]

clear
Sets the CSS clear property, which forces this float underneath the side specified with this attribute. So, clear=right (which is the default) will place the element after all the right floating elements before it. Options are left, right, both, or none.
width
Set the CSS width.
fix=y
Created a fixed width invisible table, used to solve vertical spacing issues when using this template on pages that contain tables.