TOC – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Template creation) |
Lou Montana (talk | contribs) m (Add arguments) |
||
Line 14: | Line 14: | ||
== Usage == | == Usage == | ||
{{<nowiki/>TOC|'''''mode'''''|'''''limit'''''}} | {{<nowiki/>TOC|'''''mode'''''|'''''size'''''|'''''limit'''''|'''''levels'''''}} | ||
* mode: (Optional, default "normal" - case-insensitive) one of: | * mode: (Optional, default "normal" - case-insensitive) one of: | ||
** abc - a horizontal A..Z | ** abc - a horizontal A..Z TOC (more of an ''index'') | ||
** horizontal - a horizontal | ** horizontal - a horizontal TOC, where full titles are kept | ||
** normal - the normal | ** normal - the normal TOC - can be placed at the wanted position with this | ||
** none - no | ** none - no TOC on the page (similar to <tt>__NOTOC__</tt>) | ||
** side - sets the | ** side - sets the TOC to the right | ||
* size: (Optional, default 1) size in em (e.g <tt>.9</tt> for 90%) | * size: (Optional, default 1) size in em (e.g <tt>.9</tt> for 90%) | ||
* limit: (Optional, default empty) sub-level limit (e.g <tt>2</tt> | * limit: (Optional, default empty) sub-level limit (e.g <tt>2</tt> |
Revision as of 23:44, 28 December 2020
Usage
{{TOC|mode|size|limit|levels}}
- mode: (Optional, default "normal" - case-insensitive) one of:
- abc - a horizontal A..Z TOC (more of an index)
- horizontal - a horizontal TOC, where full titles are kept
- normal - the normal TOC - can be placed at the wanted position with this
- none - no TOC on the page (similar to )
- side - sets the TOC to the right
- size: (Optional, default 1) size in em (e.g .9 for 90%)
- limit: (Optional, default empty) sub-level limit (e.g 2
- levels: (Optional, default empty) wanted sub-levels (e.g 2 4