Template:Tocright/doc
Jump to navigation
Jump to search
| File:Edit-copy green.svg | This is a {{#switch: Template | Template = template | Module = module | user = user page | #default = page }} documentation subpage for Template:Tocright. It contains usage information, categories, and other content that is not part of the original {{#if: | {{{text2}}} | {{ #if: | {{{text1}}} | {{ #ifeq: Template | User | template template page | {{ #if: Template | template page|article}}}}}}}}. |
[[Category:{{#switch: Template | Template = Template | Module = Module | User = User | #default = Page }} documentation]]
- 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
- {{ #if: |
}}{{{{ #if: | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: tocright | 0 | 1 }} | : || {{ #if: || Template }} }}:tocright|{{ #ifeq: {{ #sub: tocright | 0 | 1 }} | : | : }}{{ #ifeq: | Template | Tocright | tocright }}]]{{ #if: style=code
| |style=code }}{{ #if:
| |{{{3}}} }}{{ #if:
| |{{{4}}} }}{{ #if:
| |{{{5}}} }}{{ #if:
| |{{{6}}} }}{{ #if:
| |{{{7}}} }}{{ #if:
| |{{{8}}} }}{{ #if:
| |{{{9}}} }}{{ #if:
| |{{{10}}} }}{{ #if:
| |{{{11}}} }}{{ #if:
| |{{{12}}} }}{{ #if:
| |{{{13}}} }}{{ #if:
| |{{{14}}} }}{{ #if:
| |{{{15}}} }}{{ #if:
| |{{{16}}} }}{{ #if:
| |{{{17}}} }}{{ #if:
| |{{{18}}} }}{{ #if:
| |{{{19}}} }}{{ #if:
| |{{{20}}} }}{{ #if:
| |{{{21}}} }}}}{{ #if: | }}
- Parameters
maxwidth =Optionally change max-width allowed for TOC box (default is20em)