(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: | ||
# | # Step 1 | ||
## | ## Substep 1 | ||
## | ## Substep 2 | ||
### | ### Sub-substep 1 | ||
[[Category:Customization]] | [[Category:Customization]] | ||
[[en:{{FULLPAGENAME}}]] | [[en:{{FULLPAGENAME}}]] | ||
[[de:Aufzählungslisten_nummerieren]] | [[de:Aufzählungslisten_nummerieren]] |
Revision as of 15: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:
- Step 1
- Substep 1
- Substep 2
- Sub-substep 1