Numbering ordered lists: Difference between revisions

(Created page with "To number nested ordered lists , you can add the following CSS to the page ''MediaWiki:Common.css''.<syntaxhighlight lang="text"> .mw-content-ltr ol, .ve-ce-branchNode ol{ co...")
Tag: 2017 source edit
 
No edit summary
Line 1: Line 1:
To number nested ordered lists , you can add the following CSS to the page ''MediaWiki:Common.css''.<syntaxhighlight lang="text">
To number nested ordered lists , you can add the following CSS to the page ''MediaWiki:Common.css''.<syntaxhighlight lang="text">
 
/*Numbering nested ordered lists */
.mw-content-ltr ol, .ve-ce-branchNode ol{ counter-reset: item; margin-left:1.5em }
.mw-content-ltr ol, .ve-ce-branchNode ol{ counter-reset: item; margin-left:1.5em }
.mw-content-ltr li { display: block }
.mw-content-ltr li { display: block }
Line 9: Line 9:
Output:
Output:


# Schritt 1
# Step 1
## Unterschritt 1
## Substep 1
## Unterschritt 2
## Substep 2
### Unterschritt Level 2
### Sub-substep 1


[[Category:Customization]]
[[Category:Customization]]
[[en:{{FULLPAGENAME}}]]
[[en:{{FULLPAGENAME}}]]
[[de:Aufzählungslisten_nummerieren]]
[[de:Aufzählungslisten_nummerieren]]

Revision as of 16:49, 23 May 2022

To number nested ordered lists , you can add the following CSS to the page MediaWiki:Common.css.

/*Numbering nested ordered lists */
.mw-content-ltr ol, .ve-ce-branchNode ol{ counter-reset: item; margin-left:1.5em }
.mw-content-ltr li { display: block }
.mw-content-ltr li:before, .ve-ce-branchNode li:before { content: counters(item, ".") "."; counter-increment: item; margin-right:0.5em  }
.ve-ce-branchNode  li p { display: inline}

Output:

  1. Step 1
    1. Substep 1
    2. Substep 2
      1. Sub-substep 1



To submit feedback about this documentation, visit our community forum.

Discussions