Difference between revisions of "Template:TOCleft"
Jump to navigation
Jump to search
m (Well, that broke it completely; lets try this again.) |
m (Looks like my <noinclude> was around the wrong thing, this should get it working again.) |
||
Line 1: | Line 1: | ||
+ | <noinclude> | ||
This template shows a left-aligned ''table of contents''. | This template shows a left-aligned ''table of contents''. | ||
− | <noinclude> | + | </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 8: | Line 9: | ||
{{!}} | {{!}} | ||
{{!}}} | {{!}}} | ||
− | }} | + | }} |
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.