TOC – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Add arguments) |
Lou Montana (talk | contribs) m (Add size) |
||
Line 1: | Line 1: | ||
<includeonly><div class="{{#if:{{{3|}}}|toclimit-{{{3|}}}; {{#if:{{{4|}}}|ht-{{#replace:{{{4}}}| | ht-}}|ht-1 ht-2 ht-3 ht-4 ht-5 ht-6}}}}">{{#switch:{{{1|}}} | <includeonly><div class="{{#if:{{{3|}}}|toclimit-{{{3|}}}; {{#if:{{{4|}}}|ht-{{#replace:{{{4}}}| | ht-}}|ht-1 ht-2 ht-3 ht-4 ht-5 ht-6}}}}" {{#if:{{{2|}}}|style="font-size: {{{2}}}em"}}>{{#switch:{{{1|}}} | ||
|abc= | |abc= | ||
<div class="toc-horizontal">[[#A|A]][[#B|B]][[#C|C]][[#D|D]][[#E|E]][[#F|F]][[#G|G]][[#H|H]][[#I|I]][[#J|J]][[#K|K]][[#L|L]][[#M|M]][[#N|N]][[#O|O]][[#P|P]][[#Q|Q]][[#R|R]][[#S|S]][[#T|T]][[#U|U]][[#V|V]][[#W|W]][[#X|X]][[#Y|Y]][[#Z|Z]][[##|#]]</div> | <div class="toc-horizontal">[[#A|A]][[#B|B]][[#C|C]][[#D|D]][[#E|E]][[#F|F]][[#G|G]][[#H|H]][[#I|I]][[#J|J]][[#K|K]][[#L|L]][[#M|M]][[#N|N]][[#O|O]][[#P|P]][[#Q|Q]][[#R|R]][[#S|S]][[#T|T]][[#U|U]][[#V|V]][[#W|W]][[#X|X]][[#Y|Y]][[#Z|Z]][[##|#]]</div> | ||
Line 7: | Line 7: | ||
__NOTOC__ | __NOTOC__ | ||
|side= | |side= | ||
<div class="toc-side | <div class="toc-side">__TOC__</div> | ||
| | | | ||
__TOC__ | __TOC__ |
Revision as of 23:47, 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