Template:TOC right/doc
< Template:TOC right
Jump to navigation
Jump to search
Revision as of 17:27, 10 June 2023 by Gwyneth Llewelyn (talk | contribs) (Cleaning up some explanations that may not be pertinent for the SL Wiki; prepared documentation to deal with *both* TOC left and right templates.)
This is a documentation subpage for Template:TOC right. It contains usage information, categories and other content or metadata that is not part of the original template. |
This template may require cleanup to meet this wiki's Editing Guidelines. No cleanup reason has been specified. Please help improve this template if you can; the talk page may contain suggestions. |
{{TOC right}} forces the auto-generated Table of Contents for an article to appear floated to the right side of the page, in order to improve article layout; {{TOC left}} is the equivalent template to float the TOC to the left.
Usage
- Insert
{{TOC right}}
at the point in the article where you want the top of the Table of Contents box to appear. This should usually be after the text of the lead section, and just before the first section heading, in accordance with MOS:LEADELEMENTS. Use with {{-}} or {{clear}} to prevent collision with text; use the clear parameter (see below) to prevent collision with images.
- Avoid placing the TOC in a visually poor location. Crossing a section division is probably a poor idea.
Note
Unlike Wikipedia, which uses TemplateStyles, the SL Wiki already included a reasonably good 'hacked' {{TOC}} template, and {{TOC right}} only redirects it (probably badly).[1]
See also
- Template:TOC(edit talk links history)
- Template:TOC right(edit talk links history)
- Template:TOC left(edit talk links history)
- ↑ Still a work in progress, mind you — Gwyneth Llewelyn