Vorlage:Inhaltsverzeichnis als Fließtext
Aus Offene Naturführer
Erzeugt ein Inhaltsverzeichnis, bei dem die erste Ebene Fließtext ist oder die 2. Ebene zusätzlich als Fließtext erscheint.
Nutzung
{{Inhaltsverzeichnis als Fließtext}}
Ein kompaktes Layout (für die 2. Ebene)
{{Inhaltsverzeichnis als Fließtext|kompakt}}
Parameter
- |1=kompakt
- für optional noch kompakteres Layout
Technische Abhängigkeiten
.toc-sections1-inline #toc ul li.toclevel-1 {
/* make toclevel 1 "inline" */
float: left;
margin-right: 0.7em;
}
/* Falls <div class="toc-fullwidth-compact"> benutzt wird,
fließt der Text der niedrigeren 2. Ebene, um es kompakter zu gestalten
Derzeit nur für die 2. Ebene
*/
.toc-fullwidth-compact #toc { float: none; margin-left: 0px; }
.toc-fullwidth-compact #toc li.toclevel-2 { float: left;}
.toc-fullwidth-compact #toc li.toclevel-2 ~.toclevel-2 { margin-left: 0.5em; }
.toc-fullwidth-compact #toc li.toclevel-1 { clear: both; }
.toc-fullwidth-compact #toc li.toclevel-1 > ul { margin: 0 0 0 1.5em; }
.toc-fullwidth-compact #toc li.toclevel-2 > ul { margin: 0 0 0 1.0em; }