FANDOM


(tweak spacing)
(allow max-width to be changed)
 
Line 1: Line 1:
<div style="float: right; clear: {{{clear|right}}}; margin-bottom: .5em; padding: .5em 0 .8em 1.4em; background: transparent; max-width: 20em;">__TOC__</div><noinclude>
+
<div style="float: right; clear: {{{clear|right}}}; margin-bottom: .5em; padding: .5em 0 .8em 1.4em; background: transparent; max-width: {{{maxwidth|20em}}};">__TOC__</div><noinclude>
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Latest revision as of 21:40, April 22, 2016

Export this template, then import, to install it.
Use edit summary: Copied from [[w:c:templates:Template:Tocright]] to properly attribute this template's editors.
This template is probably not already on your wiki.
Template documentation
Note: the template above may sometimes be partially or fully invisible.

View or edit this documentation. (How does this work?)

Editors can experiment with this template's sandbox and test case pages.
Description
This template will float the article's table of contents (ToC) to the right. It will also force a ToC to appear even if it would not normally appear.
Use it only when needed.
Syntax
{{tocright|style=code}}
Parameters
maxwidth = Optionally change max-width allowed for TOC box (default is 20em)
Community content is available under CC-BY-SA unless otherwise noted.