Difference between revisions of "Ordered lists"

From Freephile Wiki
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='css'>
+
<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 10: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 
}


  1. List item
  2. List item 2
    1. Sub list
    2. Sub list
    3. Sub list
      1. third-level list
      2. third-level list
      3. third-level list
      4. third-level list
    4. Sub list
  3. List
  4. List
  5. List
  6. List