Template:Tocright: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(This revision and previous are available under: CC BY-SA 3.0. See list of authors in previous history below.) |
||
Line 1: | Line 1: | ||
Causes the page Table of Contents, TOC, to be positioned to the right on wiki pages. Use this at, or near, the top of a page to position the TOC to the right. See also <nowiki>{{toc}}</nowiki>. | |||
;Usage | |||
:<code>clear =</code> ''Optional'' CSS 'clear' setting for the outer float container. Default is 'right'. | |||
:<code>width =</code> ''Optional'' outer box width (especially good for crazy long section names). Default is 'inherit'. | |||
;Example | |||
:<code><nowiki>{{tocright}}</nowiki></code> - floats TOC to right side and clears right | |||
:<code><nowiki>{{tocright|width=30%}}</nowiki></code> - floats TOC to right side, clears right, and restricts TOC max-width to 30% of content width | |||
[[Category:General wiki templates|{{PAGENAME}}]][[ru:Шаблон:СодержаниеСправа]] | |||
---- | |||
;Template | |||
<onlyinclude><!-- | |||
--><div style="float:right;clear:{{{clear|right}}};margin:.5em 0 1em 1em;width:{{{max-width|inherit}}};">__TOC__</div><!-- | |||
--></onlyinclude> |
Revision as of 21:39, 22 April 2016
Causes the page Table of Contents, TOC, to be positioned to the right on wiki pages. Use this at, or near, the top of a page to position the TOC to the right. See also {{toc}}.
- Usage
clear =
Optional CSS 'clear' setting for the outer float container. Default is 'right'.width =
Optional outer box width (especially good for crazy long section names). Default is 'inherit'.
- Example
{{tocright}}
- floats TOC to right side and clears right{{tocright|width=30%}}
- floats TOC to right side, clears right, and restricts TOC max-width to 30% of content widthru:Шаблон:СодержаниеСправа
- Template