Difference between revisions of "TOC"
From LRDE
(Created page with "<div style="clear: {{{clear|both}}}; margin-bottom: .5em; float: {{{align|none}}}; {{#ifeq: {{lc:{{{align|}}}}} | right | margin-left:2.5em; | {{#ifeq: {{lc:{{{align|}}}}} | l...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div style="clear: {{{clear| |
+ | <div style="clear: {{{clear|left}}}; margin-bottom: .5em; float: {{{align|none}}}; {{#ifeq: {{lc:{{{align|}}}}} | right | margin-left:2.5em; | {{#ifeq: {{lc:{{{align|}}}}} | left | margin-right:2.5em; | <!-- align=none --> }} }} width: {{{width|auto}}};" {{#if:{{{limit|}}}|class="toclimit-{{{limit|}}}"}}>__TOC__</div> |
<noinclude> |
<noinclude> |
||
+ | Template for showing the table of contents, with the option to set limited level and alignment to left or right. |
||
− | {{doc}} |
||
+ | |||
− | [[Category:Utility templates|{{PAGENAME}}]] |
||
+ | ;Parameters |
||
+ | * ''align'' - "none" (default), "left" or "right" |
||
+ | * ''limit'' - max. number of nested levels; if assigned, adds CSS class = "toclimit-<limit>" |
||
+ | * ''width'' - "auto" (default) or width size in px |
||
+ | * ''clear'' - "left" (default), "both" or "right" |
||
</noinclude> |
</noinclude> |
Latest revision as of 18:45, 24 February 2014
Template for showing the table of contents, with the option to set limited level and alignment to left or right.
- Parameters
- align - "none" (default), "left" or "right"
- limit - max. number of nested levels; if assigned, adds CSS class = "toclimit-<limit>"
- width - "auto" (default) or width size in px
- clear - "left" (default), "both" or "right"