Différences entre versions de « Help/Table of contents »
Ligne 1 : | Ligne 1 : | ||
− | By default, a '''table of contents''' (TOC) is automatically generated on a page when more than three section headings are used. | + | By default, a '''table of contents''' (TOC) is automatically generated on a page when more than three section headings are used. Typically, the table reproduces and numbers these headings. All HTML in the headings is stripped in the TOC, except <nowiki><sup>, <sub>, <i>, <b>, <span dir="rtl">, <span dir="ltr"></nowiki>. |
− | |||
− | Typically, the table reproduces and numbers these headings. | ||
− | |||
− | All HTML in the headings is stripped in the TOC, except <nowiki><sup>, <sub>, <i>, <b>, <span dir="rtl">, <span dir="ltr"></nowiki>. | ||
'''Hiding the TOC'''<br> | '''Hiding the TOC'''<br> |
Version du 26 octobre 2020 à 22:32
By default, a table of contents (TOC) is automatically generated on a page when more than three section headings are used. Typically, the table reproduces and numbers these headings. All HTML in the headings is stripped in the TOC, except <sup>, <sub>, <i>, <b>, <span dir="rtl">, <span dir="ltr">.
Hiding the TOC
Place __NOTOC__
anywhere you want on the page to hide its TOC.
Positioning the TOC
The default position of the TOC is directly above the first section heading. Any prior text is placed before the TOC. To place it elsewhere, use the magic word __TOC__
at the preferred position on the page.
Adding the TOC
If you have three or fewer headings but want to have a TOC, write either the magic word __FORCETOC__
anywhere on the page to make it display at the default location, or __TOC__
at the preferred position.
Floating
The TOC can be made to display as a floating element on the page, with text flowing around it. For this, enclose the TOC in an element with the CSS style float:left;
or float:right;
.