TOC – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix abc)
m (Text replacement - "\{\{( *)Important( *)\|" to "{{$1Feature$2|$2important$2|")
Line 12: Line 12:
__TOC__
__TOC__
}}</div></includeonly><noinclude>
}}</div></includeonly><noinclude>
{{Important | Only '''one''' TOC (Table of Contents) is possible per page, with the exception of the ''abc'' one.}}
{{Feature | important | Only '''one''' TOC (Table of Contents) is possible per page, with the exception of the ''abc'' one.}}


== Usage ==
== Usage ==

Revision as of 02:12, 7 February 2021

Only one TOC (Table of Contents) is possible per page, with the exception of the abc one.

Usage

{{TOC|mode|size|limit|nonum}}

  • 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)
  • nonum: (Optional, default empty) y to hide numbers