Difference between revisions of "Template:Tocright"

From /tg/station 13 Wiki
Jump to navigation Jump to search
(Created page with "<div style="float:right; clear:right; margin-bottom:.5em; padding:.5em 0 .8em 1.4em; background:#fff; max-width:20em;">__TOC__</div>")
 
m
Line 1: Line 1:
 
<div style="float:right; clear:right; margin-bottom:.5em; padding:.5em 0 .8em 1.4em; background:#fff; max-width:20em;">__TOC__</div>
 
<div style="float:right; clear:right; margin-bottom:.5em; padding:.5em 0 .8em 1.4em; background:#fff; max-width:20em;">__TOC__</div>
 +
 +
<noinclude>
 +
=Usage=
 +
Insert '''<nowiki>{{tocright}}</nowiki>''' at the point in the article where you want the top of the table of contents box to appear. It will float to the right of the page, allowing the normal article to be displayed to the left alongside the table of contents. This is especially useful (and better-looking) for pages with a long table of contents.
 +
</noinclude>

Revision as of 22:18, 6 January 2024


Usage

Insert {{tocright}} at the point in the article where you want the top of the table of contents box to appear. It will float to the right of the page, allowing the normal article to be displayed to the left alongside the table of contents. This is especially useful (and better-looking) for pages with a long table of contents.