Difference between revisions of "Template:TOC"
Jump to navigation
Jump to search
(Created page with "<noinclude>* '''limit:''' How many layers of titles that should be displayed * '''cols(default 1):''' How many columns should be in the table of contents * '''clear(default "b...") |
|||
Line 1: | Line 1: | ||
<noinclude>* '''limit:''' How many layers of titles that should be displayed | <noinclude>* '''limit:''' How many layers of titles that should be displayed | ||
* '''cols(default 1):''' How many columns should be in the table of contents | * '''cols(default 1):''' How many columns should be in the table of contents | ||
* '''collapsed(default "false"):''' Set whether the TOC should start collapsed | |||
* '''clear(default "both"):''' Set the "clear" css | * '''clear(default "both"):''' Set the "clear" css | ||
* '''align(default "right"):''' Set the "alignment" css | * '''align(default "right"):''' Set the "alignment" css | ||
* '''width(default "auto"):''' Set the "width" css | * '''width(default "auto"):''' Set the "width" css | ||
</noinclude><includeonly><div class="{{#if:{{{limit|}}}|toclimit{{{limit}}}}} {{#if:{{{cols|}}}|toc-cols{{{cols}}}}}" style="clear: {{{clear|both}}}; margin-bottom: .5em; float: {{{align|right}}}; {{#ifeq: {{lc:{{{align|}}}}} | right | margin-left:2.5em; | {{#ifeq: {{lc:{{{align|}}}}} | left | margin-right:2.5em; | <!-- align=none --> }} }} width: {{{width|auto}}};">__TOC__</div></includeonly> | </noinclude><includeonly><div class="{{#if:{{{limit|}}}|toclimit{{{limit}}}}} {{#if:{{{collapsed|}}}|mw-collapsed}} {{#if:{{{cols|}}}|toc-cols{{{cols}}}}}" style="clear: {{{clear|both}}}; margin-bottom: .5em; float: {{{align|right}}}; {{#ifeq: {{lc:{{{align|}}}}} | right | margin-left:2.5em; | {{#ifeq: {{lc:{{{align|}}}}} | left | margin-right:2.5em; | <!-- align=none --> }} }} width: {{{width|auto}}};">__TOC__</div></includeonly> |
Latest revision as of 17:42, 27 March 2022
- limit: How many layers of titles that should be displayed
- cols(default 1): How many columns should be in the table of contents
- collapsed(default "false"): Set whether the TOC should start collapsed
- clear(default "both"): Set the "clear" css
- align(default "right"): Set the "alignment" css
- width(default "auto"): Set the "width" css