Template:Tocright: Difference between revisions

From tgwiki2
Jump to navigation Jump to search
imported>Gregariousjb
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>"
 
imported>Gregariousjb
mNo edit summary
 
(One intermediate revision by the same user not shown)
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>

Latest revision as of 22:19, 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.