Zuletzt bearbeitet vor 3 Monaten
von Margit Link-Rodrigue

Aufzählungslisten nummerieren: Unterschied zwischen den Versionen

Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 3: Zeile 3:
counter-reset:section;  
counter-reset:section;  
list-style-type:none;  
list-style-type:none;  
    display: table;
    margin-left:1.4em!important;
}
}
article ol li {  
article ol > li {  
list-style-type:none;  
list-style-type:none;  
    display: table-row;
}
}
article ol li ol {  
article ol > li ol {  
counter-reset:subsection;  
counter-reset:subsection;  
}
}
article ol li ol li ol{  
article ol li ol > li ol{  
counter-reset:subsubsection;  
counter-reset:subsubsection;  
}
}
article ol li:before{
article ol > li:before{
     counter-increment:section;
     counter-increment:section;
     content:counter(section) ". ";
     content:counter(section) ". ";
     float: left;
     display: table-cell;
     margin-right: 0.4em;
    text-align: right;
     padding-right: 0.5em;
}
}
article ol li ol li:before {
article ol li ol > li:before {
     counter-increment:subsection;
     counter-increment:subsection;
     content:counter(section) "." counter(subsection) " ";
     content:counter(section) "." counter(subsection) " ";
}
}
article ol li ol li ol li:before {
article ol > li ol > li ol > li:before {
     counter-increment:subsubsection;
     counter-increment:subsubsection;
     content:counter(section) "." counter(subsection) "." counter(subsubsection) "" ;
     content:counter(section) "." counter(subsection) "." counter(subsubsection) "" ;
}
}
article li  {
    line-height:1.4em
    }
article li p {
    line-height:1.8em;margin-top:0; margin-bottom:0
    }
/*Count footnotes separately*/
/*Count footnotes separately*/
article ol.references {  
article ol.references {  

Version vom 30. März 2023, 16:40 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; 
    display: table;
    margin-left:1.4em!important;
	}
article ol > li { 
	list-style-type:none; 
    display: table-row;
	}
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) ". ";
    display: table-cell;
    text-align: right;
    padding-right: 0.5em;
	}
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) "" ;
	}
article li  {
    line-height:1.4em
    }
article li p {
    line-height:1.8em;margin-top:0; margin-bottom:0
    }
/*Count footnotes separately*/	
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:

  1. Schritt 1
    1. Unterschritt 1
    2. Unterschritt 2
      1. Unterunterschritt 1
  2. Schritt 2



Feedback zur Dokumentation ist im Community-Forum möglich.

Diskussionen