Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 37: | Zeile 37: | ||
margin-right: 0.4em; | margin-right: 0.4em; | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight>Ausgabe: | ||
# Schritt 1 | |||
## Unterschritt 1 | |||
## Unterschritt 2 | |||
### Unterunterschritt 1 | |||
# Schritt 2 | |||
[[Kategorie:Anpassung]] | [[Kategorie:Anpassung]] | ||
[[de:{{FULLPAGENAME}}]] | [[de:{{FULLPAGENAME}}]] | ||
[[en:Numbering ordered lists]] | [[en:Numbering ordered lists]] |
Version vom 10. Januar 2023, 16:30 Uhr
Um Aufzählungszeichen fortlaufend zu nummerieren, können Sie folgendes CSS zur Seite MediaWiki:Common.css hinzufügen.
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;
}
Ausgabe:
- Schritt 1
- Unterschritt 1
- Unterschritt 2
- Unterunterschritt 1
- Schritt 2