How to use tables of contents in BBCode & Formatting Knowledge Base | World Anvil

How to use tables of contents

Large worlds can be difficult to navigate without a solid organization system, and that's where tables of contents and breadcrumbs come in! With these easy BBCode tags, you can quickly make your content much easier to navigate.

 

Article table of contents

By adding the [articletoc] in your article, you can automatically generate a table of contents of all headers in that article. Here's how it looks:

 
[articletoc]
  1. Header 1
  2. Header 2
    1. Sub-header
In a real table of contents, clicking on each item would take you to the header.
 

World and category tables of contents

To make navigation between articles easier, you can use the [toc] tag to generate an interactive category tree. Here's how it looks:

 
[toc]

World Codex

Category 1
Category 2
In a real table of contents, clicking on each category would display all articles under that category.
 

Additionally, you can easily create a similar table of contents for a specific category by using that category's ID.

 

If you're a Guild member, simply type an open bracket [ and start typing the name of the category. A drop-down will appear with an option to embed the Category ToC directly.

 

Otherwise, follow these steps:

 
  1. Go to the Articles interface of your world.
  2. Find the category on the left side and click on it.
  3. In the panel on the right side, click on "Show additional options" and find the "Category table of contents widget section".
  4. Copy that code and paste it anywhere to embed the table of contents.
 

Breadcrumb navigation widget

Breadcrumbs show the "steps" you have to take to get to a specific article. In World Anvil's case, it will show the article's parent categories so that the reader can easily access articles of a similar topic. Simply use the [breadcrumb] like this:

 
[breadcrumb]
World name Category 1 Category 2 Article title
In a real breadcrumb, clicking on each category would display all articles under that category.