A
Table of Contents (ToC) is an organized list that displays all items in a hierarchical list below a specific resource. There are three different types of TOCs on World Anvil. They can be added using
BBCode. This means that they can be added anywhere where BBCode can be used.
Table of Contents: World
The table of contents of the entire world can be added with the BBCode
[toc]. It is display on the
world homepage and in the global navigation sidebar. This BBCode works anywhere within a world to display the contents as an interactive tree view. The example to the right is the table of contents of this world. The
World Codex heading is always added and can only be hidden with
CSS.
Table of Contents: Category
This feature is available to
Master, Grandmaster and
Sage guild members.
The table of contents for a particular
category shows the tree view of all categories and articles added under that category. This table of contents does not have its own heading.
In the sidebar is an example of how the ToC looks under the
Navigation heading. This is added in addition to the category TOC BBCode. Below is an example of the BBCode with the
horizontal option. It looks like this
[toc:6fba5523-5ebd-49c8-b659-81e3d7352f6a|horizontal].
Table of Contents: Article
The article table of contents
[articletoc] creates a table of contents for the article it is in. It is created based on all headers within the article
vignette field. This can sometimes cause the list to contain unexpected headings from embedded articles. The article table of contents added to this article at the top of the sidebar contains all the categories from the horizontal category table of contents because that element uses headings for the text.
There are no configurations to change this behavior or to limit the size of the headings that the list picks up. It is possible to customize the output with
CSS.
I used
but there is a certain minor problem that I don't really like - I used the prompts bellow the main space to fill out the article and when I made the toc it worked fine, but when it sends you to the particular header you clicked, it shows what's beneath the header but not the header itself and it kinda ruins the presentation. It's nothing big but a "how to fix it" if it's fixable would be really appreciated, thanks!This seems to be a bug, good catch! Can you report it using the "report a bug" button you'll find in the help page? You'll need a separate account for that because the bug tracker is a third-party service. Make sure to specify that the issue is with pre-defined field headers. Thank you!
Oh, cool, thank you. I've already reported bugs so I have an account.