Pang-bô͘:Horizontal TOC

![]() | This template uses TemplateStyles: |
This template lays out the table of contents in a horizontal list rather than a vertical one.
Usage
[kái goân-sí-bé]{{horizontal TOC}}
There is no need to specify __NOTOC__
: this template handles that automatically.
To hide the generated heading numbers, use:
{{horizontal TOC|nonum=yes}}
To suppress the parentheses around subsection lists, use:
{{horizontal TOC|noparens=yes}}
To limit the depth of the generated headings to the first headings only, use:
{{horizontal TOC|limit=2}}
To float the table of contents to the center of the page, use:
{{horizontal TOC|align=center}}
For country and state lists with flag icons, see these examples: Legality of cannabis by country. And: Legality of cannabis by U.S. jurisdiction.
Limitations
[kái goân-sí-bé]Since the Vector 2022 skin forces the table of contents into a sidebar or a pop-up menu, this template does not control the placement of the TOC in that skin.
See also
[kái goân-sí-bé]- Help:TOC
- {{Compact TOC}}
- {{List TOC Letters}}
This template lays out the table of contents in a horizontal list rather than a vertical one.
參數 | 描述 | 類型 | 狀態 | |
---|---|---|---|---|
No numbers | nonum | Hide the generated heading numbers
| 字串 | 非必填 |
Limit | limit | Limits the depth of subheadings shown. For instance using limit=4 will hide the fourth level and deeper subheadings in the hierarchy. And limit=2 will hide all subheadings leaving only the main headings. This works by hiding the lower levels with CSS | 數值 | 非必填 |
No parenthesis | no_parenthesis | Separates entries by bullets, regardless of sub-sections.
| 字串 | 非必填 |
Align | align | Which side of the page to align the ToC to. Allowed values are left, right, center
| 字串 | 非必填 |
Clear | clear | Align underneath floating images and tables or not. Allowed values are left, right, both, none
| 字串 | 非必填 |
Links | links | Specify a list of links for the table of contents instead of the section links automatically generated by the TOC magic word
| 字串 | 非必填 |
Téng-bīn ê bûn-kiāⁿ sī tùi Pang-bô͘:Horizontal TOC/doc khàm-ji̍p--ê. (pian-chi̍p | le̍k-sú) Pian-chip-chiá ē-sái tī chit-ê pang-bô͘ ê soa-a̍p (chhòng-kiàn | mirror) kap chhì-giām-kheh-suh (chhòng-kiàn) ia̍h-bīn chò si̍t-giām. Chhiáⁿ tī chú-ia̍h-bīn /doc lāi-bīn ka-thiam lūi-pia̍t. Pún pang-bô͘ ê chú-ia̍h-bīn. |