We've Moved! Just as Gamepedia has joined forces with Fandom, this wiki had joined forces with our Fandom equivalent. The wiki has been archived and we ask that readers and editors move to the now combined wiki on Fandom. Click to go to the new wiki.

Template:Document TOC

From The Vault - Fallout Wiki
Jump to: navigation, search

Contents

Template documentation (for the template shown above, sometimes hidden or invisible)

Meta-template for creating a manual table of contents for documents which are split up into multiple wiki articles (up to 9 plus an overview page for the document). Should only be used for fairly static articles where headlines and structure do not change.

Usage

{{Document TOC
|main     =Main page of document
|link1    =First part of document
|content1 =
* Example section 1
** Subsection of example section 1
* Example section 2
|link2    =Second part of document
|content2 =
* Example section 1
** Subsection of example section 1
* Example section 2
}}

Parameters

OptionalIcon optional.png
(default: "no")
collapsed

If set to "yes", the TOC will be collapsed when loading pages it is used on.

RequiredIcon required.png
(default: none)
content1 up to content9

Table of contents for the various document parts. Use an unnumbered list which contains direct links to headlines of the document main page (see Help:Links on how to link directly to headlines on pages).

RequiredIcon required.png
(default: none)
link1 up to link9

Link to/name of the pages with document parts.

OptionalIcon optional.png
(default: none)
main

The document's main/overview page, if any.

OptionalIcon optional.png
(default: none)
maincontent

Table of contents for document main/overview page, if desired. Use an unnumbered list which contains direct links to headlines of the document main/overview page (see Help:Links on how to link directly to headlines on pages).

OptionalIcon optional.png
(default: "Main page of document")
mainname

Name to be displayed for the document's main/overview page.

RequiredIcon required.png
(default: "Part #")
name1 up to name9

Names to be displayed for the document parts.

OptionalIcon optional.png
(default: "300px")
width

Width of TOC.

Copy/paste

{{Document TOC
|main     =
|link1    =
|content1 =
|link2    =
|content2 =
|link3    =
|content3 =
|link4    =
|content4 =
|link5    =
|content5 =
|link6    =
|content6 =
|link7    =
|content7 =
|link8    =
|content8 =
|link9    =
|content9 =
}}

Technical

Documentation transcluded from Template:Document TOC/doc.