Add a table of contents to a wiki

Learn how to use the table-of-contents (TOC) macro to create a list of the topics (or sections) of a given wiki page.

The markup language you are using in your Wiki will determine what style of TOC you can create.  The following table shows the markup syntax for each available language.

言語 Description and Markup
Creole

Allows you to create a TOC for the Wiki itself or just a page. Use the following to create a page-level TOC

<<toc>> 

You can also create a table of contents for a Wiki use:

<<toc path depth>>

For example, to list all the pages in your Wiki and their headings to a level of 2, enter the following:

<<toc / 2>>

See Macro Reference for Creole Markup in this documentation for more information.

Markdown

You can only create a page-level table of contents. The syntax is:

[TOC]

See the extension documentation for more information.

resStructuredText

You can create a page-level TOC. The syntax is as follows:

.. contents::

See the reStructureText documentation for more information.

Textile You cannot create a TOC for a page or the Wiki itself with Textile.

 

関連トピック

Special support for Creole

最終更新日 2014 年 1 月 20 日

この翻訳に満足しましたか?

はい
いいえ
この記事についてのフィードバックを送信する

お探しの情報が見つかりませんか?

コミュニティへの質問

Powered by Confluence and Scroll Viewport.