Difference between revisions of "Template:TOC"

(Created page with "<div class="stactictoc" style="clear: {{{clear|both}}}; margin-bottom: .5em; float: {{{align|none}}}; {{#ifeq: {{lc:{{{align|}}}}} | right | margin-left:0.5em; | {{#ifeq: {{lc...")
 
m (Updating)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="stactictoc" style="clear: {{{clear|both}}}; margin-bottom: .5em; float: {{{align|none}}}; {{#ifeq: {{lc:{{{align|}}}}} | right | margin-left:0.5em; | {{#ifeq: {{lc:{{{align|}}}}} | left | margin-right:0.5em; | <!-- align=none --> }} }} width: {{{width|auto}}};" {{#if:{{{limit|}}}|class="toclimit-{{{limit|}}}"}}>__TOC__</div>
+
#REDIRECT [[Template:Compact TOC]]
 
+
{{R from shortcut}}
<noinclude>
 
 
 
Template for show 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'' - "both" (default), "left" or "right"
 
 
 
 
 
<pre>
 
{{TOC
 
|align=
 
|limit=
 
|width=
 
|clear=
 
|}
 
</pre>
 
</noinclude>
 

Latest revision as of 21:50, 3 May 2023

  • From a template shortcut: This is a redirect from a shortcut page name in any namespace to a page in template namespace.
    • Shortcuts are wikilinked on community pages, talk pages, and edit summaries, but not in mainspace articles. Transclusions in mainspace are common and do not need to be "fixed".