Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 12: | Zeile 12: | ||
### Unter-Unterschritt 1 | ### Unter-Unterschritt 1 | ||
<span><br /></span> | |||
Alternativ, um 1.1, 1.2.2 usw zu erzeugen, wird folgende Syntax verwendet:<syntaxhighlight lang="text"> | Alternativ, um 1.1, 1.2.2 usw zu erzeugen, wird folgende Syntax verwendet:<syntaxhighlight lang="text"> | ||
article ol { | article ol { | ||
counter-reset:section; list-style-type:none; | counter-reset:section; | ||
list-style-type:none; | |||
} | } | ||
article ol li { | article ol li { | ||
Zeile 28: | Zeile 29: | ||
article ol li:before{ | article ol li:before{ | ||
counter-increment:section; | counter-increment:section; | ||
content:counter(section) ". "; | content:counter(section) ". "; | ||
float: left; | float: left; | ||
margin-right: 0.4em; | margin-right: 0.4em; | ||
Zeile 39: | Zeile 40: | ||
counter-increment:subsubsection; | counter-increment:subsubsection; | ||
content:counter(section) "." counter(subsection) "." counter(subsubsection) "" ; | content:counter(section) "." counter(subsection) "." counter(subsubsection) "" ; | ||
} | |||
/*Fußnoten separat zählen*/ | |||
article ol.references { | |||
counter-reset:ref; list-style-type:none; | |||
} | |||
article ol.references li:before{ | |||
counter-increment:ref; | |||
content:counter(ref) ". "; | |||
float: left; | |||
margin-right: 0.4em; | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |
Version vom 10. Januar 2023, 17:24 Uhr
Um Aufzählungszeichen fortlaufend zu nummerieren, können Sie folgendes CSS zur Seite MediaWiki:Common.css hinzufügen.
/*Aufzählungsllisten fortlaufend nummerieren */
.mw-content-ltr ol, .ve-ce-branchNode ol{ counter-reset: item; margin-left:1.5em }
.mw-content-ltr ol li { display: block }
.mw-content-ltr ol li:before, .ve-ce-branchNode ol li:before { content: counters(item, ".") "."; counter-increment: item; margin-right:0.5em }
.ve-ce-branchNode ol li p { display: inline}
Ausgabe:
- Schritt 1
- Unterschritt 1
- Unterschritt 2
- Unter-Unterschritt 1
Alternativ, um 1.1, 1.2.2 usw zu erzeugen, wird folgende Syntax verwendet:
article ol {
counter-reset:section;
list-style-type:none;
}
article ol li {
list-style-type:none;
}
article ol li ol {
counter-reset:subsection;
}
article ol li ol li ol{
counter-reset:subsubsection;
}
article ol li:before{
counter-increment:section;
content:counter(section) ". ";
float: left;
margin-right: 0.4em;
}
article ol li ol li:before {
counter-increment:subsection;
content:counter(section) "." counter(subsection) " ";
}
article ol li ol li ol li:before {
counter-increment:subsubsection;
content:counter(section) "." counter(subsection) "." counter(subsubsection) "" ;
}
/*Fußnoten separat zählen*/
article ol.references {
counter-reset:ref; list-style-type:none;
}
article ol.references li:before{
counter-increment:ref;
content:counter(ref) ". ";
float: left;
margin-right: 0.4em;
}