Difference between revisions of "Template:TOC/doc"
From EVE University Wiki
m (Commented out example; it shows on the Template Page) |
Tag: Undo |
||
Line 15: | Line 15: | ||
:: Whether to align the table of contents to the "right" or "left". The default is left. | :: Whether to align the table of contents to the "right" or "left". The default is left. | ||
− | + | ; Sample | |
:<code><nowiki>{{TOC|limit=2|align=right}}</nowiki></code> | :<code><nowiki>{{TOC|limit=2|align=right}}</nowiki></code> | ||
::gives... | ::gives... | ||
− | {{TOC|limit=2|align=right}} | + | {{TOC|limit=2|align=right}} |
== section 1 == | == section 1 == |
Revision as of 20:52, 12 August 2022
- Description
- This template changes the way the table of contents is rendered.
- Dependencies
-
- Uses
- MediaWiki:Common.css
- Syntax
- {{TOC|<limit=>|<align=>}}
- Parameters
-
- limit
- How many heading levels to show in the table of contents. The lower, the fewer headings are shown. Note that in articles, the main level for headings starts at 2 (the article title is H1, so limit=1 would generally show no headings at all).
- align
- Whether to align the table of contents to the "right" or "left". The default is left.
- Sample
{{TOC|limit=2|align=right}}
- gives...
section 1
section 1.1
section 1.1.1
section 1.1.1.1
- See also