Page Table of Contents | World Anvil

Remove these ads. Join the Worldbuilders Guild

Page Table of Contents

New Feature Addition · Articles & templates · Created by vianilambo
closed
table-of-contents navigation

What functionality is missing? What is unsatisfying with the current situation?

  Currently within pages, you can use the headers to change to default fonts and CSS styles, but the change is ultimately only in appearance. There is no way to jump between headers, which is particularly useful in longer pages.  

How does this feature request address the current situation?

  I propose the addition of a feature similar to that of a wiki, primarily Wikipedia - a simple Table of Contents tag that scans the page for headers, uses their weight (h1, h2, etc.) to nest them, and then outputs the result into a table at the top of the page with links, such that clicking one of the headers there scrolls the page down to the position of that header.   Example, per Wikipedia: [img]https://upload.wikimedia.org/wikipedia/en/2/27/WP_Table_of_contents.png[/img]  

What are other uses for this feature request?

  None, the use is for navigation of longer pages alone.

Follow up


Thank you to everyone who added that I could do this in BBCode! I had only used BBCode in a forum setting before this, so I was unaware there was such a tag. Thank you!

The Team's Response

As mentioned already [articletoc] is what you need. It automatically scans the article's headers and creates a table of contents for you   https://www.worldanvil.com/w/WorldAnvilCodex/a/toc
Current score

8/300 Votes · +600 points

Votes Cast

  • +300

    by Ouranides
    on 2022-01-13 13:04
    This would be awesome!
  • +300

    by Yosua
    on 2022-01-13 12:43
  • -300

    by A Revolutionary Velociraptor
    on 2022-01-13 04:02
    what you are you looking for is the articletoc BBcode
  • +10

    by storyauthor
    on 2022-01-13 02:40
  • -300

    by A Uncontrollable Orc
    on 2022-01-13 02:07
    As stated below, I'm fairly certain there is BBcode that will make such a thing. I know I've seen several people who put in tocs to jump to things in their longer articles. Don't know if off the top of my head though, but looking through the BBC codex might help.
  • +10

    by eccbooks
    on 2022-01-12 23:42
    I think the
    bbcode will do what you're looking for.
  • +300

    by A Uncontrollable Unicorn
    on 2022-01-12 22:44
  • -20

    by A Goodhearted Mimic
    on 2022-01-12 20:02
  • +300

    by vianilambo
    on 2022-01-12 16:57