Tritt unserem Discord bei und informiere dich auf unserem Twitter-Kanal über die aktuellsten Themen rund um Fallout!
akt |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
<onlyinclude><includeonly><!-- | <onlyinclude><includeonly><!-- | ||
--><div class="fw-toc-template{{#if:{{{limit|}}}| fw-toclimit-{{{limit}}}}}" style="background: transparent; max-width: | --><div class="fw-toc-template{{#if:{{{limit|}}}| fw-toclimit-{{{limit}}}}}" style="background: transparent; max-width: 320px;<!-- | ||
-->{{#switch:{{lc:{{#if:{{{float|}}}|{{{float}}}|{{{1|}}}}}}}<!-- | -->{{#switch:{{lc:{{#if:{{{float|}}}|{{{float}}}|{{{1|}}}}}}}<!-- | ||
-->|right=float: right; clear: right; padding: 0 0 5px 10px;<!-- | -->|right=float: right; clear: right; padding: 0 0 5px 10px;<!-- | ||
| Zeile 9: | Zeile 9: | ||
--></includeonly></onlyinclude> | --></includeonly></onlyinclude> | ||
{{Dokumentation}} | {{Dokumentation}} | ||
[[Kategorie:Navigationsvorlagen]] | [[Kategorie:Navigationsvorlagen]] | ||
[[en:Template:TOC]] | |||
[[ja:テンプレート:TOC]] | |||
Version vom 5. Juni 2015, 19:53 Uhr
Template for manipulating the table of contents (TOC) of an article: a maximum level for shown headlines can be specified, and the TOC can be aligned to the left/right of an article (with text flowing around it).
Benutzung
Simply place the following where you want the TOC to appear:
{{TOC}}
Parameter
<unnamed 1> oder float
Specifies alignment of the TOC; sets CSS "float" (and "clear") attribute for the box.
Verfügbare Optionen:
- left: TOC will be aligned to the left, and text will flow around it on the right.
- right: TOC will be aligned to the right, and text will flow around it on the left.
limit
If specified, subheadings with a level lower than
limit will not be shown in the TOC. For example, with limit set to 3, only headings up to level 3 (===) will be displayed. Usually used for articles with a lot of subheadings in order to downsize the TOC.Technisches
- Lower level headlines are hidden via CSS. See MediaWiki:Common.css.