Difference between revisions of "Template:Tocright"
Jump to navigation
Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!
(Created page with "<includeonly><div style="float: right; clear: {{{clear|right}}}; padding-left: 1.4em; max-width: 20em;">__TOC__</div></includeonly><noinclude> == Usage == Adds the :mw:Table...") |
|||
Line 1: | Line 1: | ||
<includeonly><div style="float: right; clear: {{{clear|right}}}; padding-left: 1.4em; max-width: 20em;">__TOC__</div></includeonly><noinclude> | <includeonly><div style="float: right; clear: {{{clear|right}}}; padding-left: 1.4em; max-width: 20em;">__TOC__</div></includeonly><noinclude> | ||
− | + | {{Documentation}} | |
− | + | <!-- Put categories/interwiki on the documentation page. --> | |
</noinclude> | </noinclude> |
Latest revision as of 18:00, 7 July 2023
{{Tocright}} 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.
Usage
Insert {{Tocright}}
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. Use the clear parameter to prevent collision with text on either left, right, or both sides of the content.
Avoid placing the TOC in a visually poor location. Crossing a section division is probably a poor idea.