SocialEntity:400 and Numbering ordered lists: Difference between pages

(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">
    "wikipageid": 657,
/*Numbering nested ordered lists */
    "namespace": 0,
.mw-content-ltr ol, .ve-ce-branchNode ol{ counter-reset: item; margin-left:1.5em }
    "titletext": "Reference:Math",
.mw-content-ltr ol li { display: block }
    "description": "",
.mw-content-ltr ol li:before, .ve-ce-branchNode ol li:before { content: counters(item, ".") "."; counter-increment: item; margin-right:0.5em  }
    "parentid": 0,
.ve-ce-branchNode ol li p { display: inline}
    "id": 400,
</syntaxhighlight>
    "ownerid": 6,
 
    "type": "wikipage",
Output:
    "archived": false,
 
    "tags": [
# Step 1
        "Reference:Math"
## Substep 1
    ],
## Substep 2
    "resolved": false
### 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:

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