Difference between revisions of "Template:Tocright"

From Mine Blocks Wiki
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>
== Usage ==
+
{{Documentation}}
Adds the [[:mw:Table of Contents|Table of Contents]] to the right side of the page. To use, simply type <pre><nowiki>{{Tocright}}</nowiki></pre> in the page's code.
+
<!-- Put categories/interwiki on the documentation page. -->
 
</noinclude>
 
</noinclude>

Latest revision as of 18:00, 7 July 2023

Template-info.png Template documentation Note: parts of or the entire template might not be visible without values provided.

{{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.