(Difference between pages)
No edit summary 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"> | ||
/*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} | |||
</syntaxhighlight> | |||
Output: | |||
# Step 1 | |||
## Substep 1 | |||
## Substep 2 | |||
### Sub-substep 1 | |||
[[Category:Customization]] | |||
[[en:{{FULLPAGENAME}}]] | |||
[[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:
- Step 1
- Substep 1
- Substep 2
- Sub-substep 1