Template:TOC left/doc
This is a documentation subpage for Template:TOC left. It contains usage information, categories, and other content that is not part of the original template page. |
Purpose
[edit]{{TOC left}}
forces the auto-generated "Table of Contents" for an article to appear floated to the left side of the page (as seen left), in order to improve article layout.
Usage
[edit]Insert {{TOC left}}
at the point in the article where you want the top of the Table of Contents box to appear. Use with {{-}}
or {{Clear}}
to prevent images collisions.
Cautions
[edit]Do not use this template to just force word wrap around the TOC, as this is an inappropriate method of achieving this. Instead add a CSS class to your current skin's .css file, which will apply site wide. Go to Special:Mypage/skin.css, which redirects to your current skin's CSS file.
Also, a TOC that crosses a section division is probably a poor idea, if that can be avoided.
Unless the section in which the {{TOC left}}
is placed is long enough, the result may well be undesirable. Note particularly that if the TOC is floated left of a bulleted list, the bullets will be hidden.
See also
[edit]