Numbering ordered lists: Difference between revisions

No edit summary
No edit summary
Line 2: Line 2:
/*Numbering nested ordered lists */
/*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 ol li { display: block }
.mw-content-ltr li:before, .ve-ce-branchNode li:before { content: counters(item, ".") "."; counter-increment: item; margin-right:0.5em  }
.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 li p { display: inline}
.ve-ce-branchNode ol li p { display: inline}
</syntaxhighlight>
</syntaxhighlight>


Line 13: Line 13:
## Substep 2
## Substep 2
### Sub-substep 1
### Sub-substep 1
# asfsadf
## dsafsaf


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

Revision as of 16:55, 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 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}

Output:

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



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

Discussions