Difference between revisions of "Ordered lists"
Jump to navigation
Jump to search
(create a list demo / test page) |
(add an item using Visual Editor to see if the content is accurately presented in the edit interface.) |
||
Line 1: | Line 1: | ||
Ordered List with nested ordered lists having an automatic (sitewide) list style that changes to lower alpha | Ordered List with nested ordered lists having an automatic (sitewide) list style that changes to lower alpha | ||
and lower roman because we set the style rules in MediaWiki:Common.css with | and lower roman because we set the style rules in MediaWiki:Common.css with | ||
− | <syntaxhighlight lang= | + | <syntaxhighlight lang="css"> |
.mw-body ol { | .mw-body ol { | ||
list-style-type:decimal | list-style-type:decimal | ||
Line 14: | Line 14: | ||
− | # List item | + | #List item |
− | # List item 2 | + | #List item 2 |
− | ## Sub list | + | ##Sub list |
− | ## Sub list | + | ##Sub list |
− | ## Sub list | + | ##Sub list |
− | ### third-level list | + | ###third-level list |
− | ### third-level list | + | ###third-level list |
− | ### third-level list | + | ###third-level list |
− | ## Sub list | + | ###third-level list |
− | # List | + | ##Sub list |
− | # List | + | #List |
− | # List | + | #List |
− | # List | + | #List |
+ | #List | ||
[[Category:MediaWiki]] | [[Category:MediaWiki]] | ||
[[Category:Style]] | [[Category:Style]] |
Latest revision as of 09:45, 14 July 2023
Ordered List with nested ordered lists having an automatic (sitewide) list style that changes to lower alpha and lower roman because we set the style rules in MediaWiki:Common.css with
.mw-body ol {
list-style-type:decimal
}
.mw-body ol li > ol {
list-style-type:lower-alpha
}
.mw-body ol li > ol li > ol {
list-style-type:lower-roman
}
- List item
- List item 2
- Sub list
- Sub list
- Sub list
- third-level list
- third-level list
- third-level list
- third-level list
- Sub list
- List
- List
- List
- List