Template:TOC

From GodWiki
Jump to: navigation, search
📝Under active creation
This article is the target of an editor's creative exploration.
Their message is: This template is experimental and may change. I'll avoid making breaking changes if possible, but cannot guarantee it. If you choose to use it on a User: page, I will leave a message on your User talk: notifying you if changes are needed; otherwise I will make any necessary changes on any page using this template as required.
If you have something to add to this article, please discuss it on the talk page. [07:51, 25 August 2020 (UTC)]
Table of Contents
📚 Documentation

Quick & Dirty Docs

First draft, Djonni (talk) 07:51, 25 August 2020 (UTC)

Currently supported parameters:

Unnamed parameters 1..20
Up to 20 headers in the document to include in the ToC. The text must match the header text exactly or linking won't work. Note that an {{anchor}} in the article text may be used instead of a header, if necessary; in which case, the text in the ToC must exactly match the {{anchor}} text instead.
table-class
Additional text to insert into the table's class= attribute. E.g., |table-class=mw-collapsible
table-style
Additional text to insert at end of the table's style attribute. Will override default style properties if relevant. E.g., |table-style=font-size: large;
spacer=yes/no
Enables or explicitly disables a {{spacer}} at end of ToC, if necessary for mobile layout. Current default behaviour is |spacer=no, but this is subject to testing and shouldn't be relied upon. Any valid {{yesno}} value works here.