Template:TOC/doc

From EVE University Wiki
< Template:TOC
Revision as of 11:12, 29 February 2024 by Evon R'al (talk | contribs) (Add comment on the sample only working in a specific situation.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Description
This template changes the way the table of contents is rendered.
Dependencies
Uses
MediaWiki:Common.css
__TOC__
Syntax
{{TOC|<limit=>|<align=>}}
Parameters
limit
Number indicating the highest heading level to show in the table of contents. The lower, the fewer heading levels are shown. Note that in articles, the main level for headings starts at 2 (the article title is H1). Valid values 2 till 6. Defaults to no limit.
align
Whether to align the table of contents to the "right" or "left". The default is left.
Sample
{{TOC|limit= 3|align= right}}
gives... (Note: Due to the way this template, the documentation template and the table of contents code works the sample does not function when not looking directly on the doc page.)

section 1

section 1.1

section 1.1.1

section 1.1.1.1
See also