Template:Horizontal TOC/doc:修订间差异

模板页面
无编辑摘要
 
(繁简转换 by ZF-bot
 
(未显示另一用户的1个中间版本)
第36行: 第36行:


<includeonly>
<includeonly>
[[Category:目模板]]
[[Category:目模板]]
</includeonly>
</includeonly>

2023年9月24日 (日) 23:16的最新版本

该模板将目录的垂直列表以水平方式显示。

使用

{{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 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}}

参见