Template:Tocright: Difference between revisions

From Chibi-Robo! Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
<noinclude>''This template will float the article table of contents to the right. Use it only when needed.'' [[Category:General wiki templates|{{PAGENAME}}]]
<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>
</noinclude><div style="clear: {{{clear|right}}}; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: transparent; max-width: 20em;">__TOC__</div>
{{documentation}}</noinclude>

Latest revision as of 17:15, 22 October 2017

Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
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.
Parameters
maxwidth = Optionally change max-width allowed for TOC box (default is 20em)
Syntax
{{tocright}}

de:Vorlage:Tocrechts

ja:テンプレート:Tocright
The above text is transcluded from Template:Tocright/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror ) and testcases (create) pages.
Please add categories and interwikis to Template:Tocright/doc. (View all subpages of this page.)