Difference between revisions of "Template:TOCleft"
Jump to navigation
Jump to search
(Created template for a left-aligned Table of Contents) |
m (Hopefully fixed missing <noinclude> problem) |
||
Line 1: | Line 1: | ||
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 6: | Line 7: | ||
{{{!}} style="display:inline-block; width:100%; max-width:1000px;" | {{{!}} style="display:inline-block; width:100%; max-width:1000px;" | ||
{{!}} | {{!}} | ||
− | {{!}}} | + | {{!}}}} |
− | + | </noinclude> | |
− | |||
Line 17: | Line 17: | ||
+ | <noinclude> | ||
== Usage == | == Usage == | ||
<pre style="width: 50%;"> | <pre style="width: 50%;"> |
Revision as of 02:14, 29 August 2014
This template shows a left-aligned table of contents.
Usage
{{TOCleft}}
Parameters (optional)
- 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.