Last modified: 2013-09-02 10:39:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T55620, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53620 - Need a way to use e.g. 01, 02... or i, ii... for numbered lists
Need a way to use e.g. 01, 02... or i, ii... for numbered lists
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.22.0
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-31 09:58 UTC by Chris McKenna
Modified: 2013-09-02 10:39 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Chris McKenna 2013-08-31 09:58:10 UTC
There needs to be a way of defining ordered lists that use something other than 1,2,3. e.g. 01, 02, 03... / i., ii., iii... / A, B, C, etc.
Comment 1 Brion Vibber 2013-09-01 19:23:21 UTC
I don't think we'd add new syntax for this, as it's doable through existing HTML and CSS.

See documentation for the CSS list-style or list-style-type properties, there are many options:
https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type

You can either put the styles into global stylesheets like MediaWiki:Common.css or you can manually put a style attribute on an HTML list element:

<ol style="list-style: decimal-leading-zero">
<li> shows 01.
<li> shows 02.
<li> shows 03.
</ol>

<ol style="list-style: lower-roman">
<li> shows i.
<li> shows ii.
<li> shows iii.
</ol>

Note that in the inline style case, you may need to use <li> explicitly rather than #/* markup.


In the CSS stylesheet case, you can reference the list by wrapping it in a div or something, in which case you can just use the existing # syntax for ordered lists:

In CSS:
.list-roman ol { list-style: lower-roman }

In page:
<div class="list-roman">
# shows i.
# shows ii.
# shows iii.
</div>

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links