Ordnung.css
/* Fügt Nummerierung zum Inhaltsverzeichnis hinzu*/ div.toc {
counter-reset: toc-Teil;
} div.toctitle {
counter-reset: toc-Paragraph;
} div.toc ul li.toclevel-1 span.toctext:before {
content: "Teil "counter(toc-Teil) " - "; counter-increment: toc-Teil;
} div.toc ul li.toclevel-2 span.toctext:before {
content: "§ "counter(toc-Paragraph) " "; counter-increment: toc-Paragraph;
}
/* Erlaub durch einen container der Klasse "no-teil" einen Inhalt nur mit Paragraphen*/ .no-teil div.toc {
counter-reset: revert;
} .no-teil div.toc ul li.toclevel-1 span.toctext:before {
content: "§ "counter(toc-Paragraph) " "; counter-increment: toc-Paragraph;
} .no-teil div.toc ul li.toclevel-2 span.toctext:before {
content: revert; counter-increment: revert;
}
/* Erlaub durch einen container der Klasse "no-start-teil-x" den n-ten Top-Level-Eintrag des Inhaltsverzeichnisses mit Paragraphen zu bezeichnen*/ .no-start-teil-1 div.toc ul li.toclevel-1:nth-child(1) span.toctext:before, .no-start-teil-2 div.toc ul li.toclevel-1:nth-child(2) span.toctext:before, .no-start-teil-3 div.toc ul li.toclevel-1:nth-child(3) span.toctext:before, .no-start-teil-4 div.toc ul li.toclevel-1:nth-child(4) span.toctext:before, .no-start-teil-5 div.toc ul li.toclevel-1:nth-child(5) span.toctext:before, .no-start-teil-6 div.toc ul li.toclevel-1:nth-child(6) span.toctext:before, .no-start-teil-7 div.toc ul li.toclevel-1:nth-child(7) span.toctext:before, .no-start-teil-8 div.toc ul li.toclevel-1:nth-child(8) span.toctext:before, .no-start-teil-9 div.toc ul li.toclevel-1:nth-child(9) span.toctext:before, .no-start-teil-10 div.toc ul li.toclevel-1:nth-child(10) span.toctext:before {
content: "§ "counter(toc-Paragraph) " "; counter-increment: toc-Paragraph;
}
/* Unterdrückt die Überschrift-Nummerierung innerhalb des Inhaltsverzeichnisses*/ div.mw-parser-output div.toc h2::before {
content: revert; counter-increment: revert;
}
/* Fügt Nummerierung im Dokument den Überschriften hinzu*/ body {
counter-reset: Teil;
} h1 {
counter-reset: Paragraph;
} div.mw-parser-output h2::before {
content: "Teil "counter(Teil) " - "; counter-increment: Teil;
} div.mw-parser-output h3::before {
content: "§ "counter(Paragraph) " "; counter-increment: Paragraph;
}
/* Fügt Nummerierung im Dokument den Absätzen hinzu*/ div.mw-parser-output li.nonum::before {
display: none;
} div.mw-parser-output ol {
counter-reset: Absatz; margin-left: 0; padding-left: 0;
} div.mw-parser-output ol.noreset {
counter-reset: revert;
} div.mw-parser-output ol > li {
display: block; margin-bottom: .5em; margin-left: 2em;
} div.mw-parser-output ol > li::before {
display: inline-block; content: "("counter(Absatz) ") "; counter-increment: Absatz; width: 2em; margin-left: -2em;
}
div.mw-parser-output ol ol {
margin-left: 0.95em; padding-left: 1.95em; text-indent: 1em;
} div.mw-parser-output ol > li > ol, div.mw-parser-output ul > li > ol {
padding-left: 0em;
} div.mw-parser-output ol ol > li {
margin-bottom: 0em; margin-left: 0.1em;
} div.mw-parser-output ol ol > li::before {
content: counter(Absatz) ". "; margin-left: -3em;
} div.mw-parser-output ol.letter, div.mw-parser-output ol.letter.noreset {
counter-reset: Absatz-Letter;
} div.mw-parser-output ol.letter ol {
counter-reset: revert;
} div.mw-parser-output ol.letter ol > li {
text-indent: 0em; margin-left: 1em;
} div.mw-parser-output ol.letter ol > li::before {
content: "("counter(Absatz-Letter, upper-alpha) ") "; counter-increment: Absatz-Letter; width: 2em; margin-left: -2em;
}