Page MenuHomePhabricator

Numbered list with shared placings?
Closed, DeclinedPublic

Description

Hi!

The help section on the page http://en.wikipedia.org/wiki/Wikipedia:Lists mentions both wiki markup and html solutions for making numbered lists. Neither one seems to address a problem I've encountered. Namely the possibility of having a nice hanging indent for shared placings in a list (like from a sports event or other competition), while at the same time respecting the total number of list entries.

As it is now, both wiki markup (#) and html (<li>) are well suited for lists with no shared placings, but in my experience neither one adds the possibility of making a nice list with, say, five competitors in which with one is the winner, one placed second, two placed third, none placed fourth and one placed fifth. Either the numbering goes haywire, or the left hanging indent on the second line of the shared placings does so.

Maybe there is no solution, and going to tables is the only solution.

Many thanks for any input.

Per A J Andersson
Göteborg, Sweden


Version: unspecified
Severity: enhancement

Details

Reference
bz20921

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 10:56 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz20921.
bzimport added a subscriber: Unknown Object (MLST).

You can use the 'value' attribute on the <li> element for this; our wikitext HTML subset passes this through:

<ol>
<li>One
<li>Two
<li>Three
<li value=3>Three again
<li value=5>Five
</ol>

Hi! Thanks for the input! Sorry for being so late on this. This is a close to working solution, but not very handsome. What I had in mind was a correct listing with a hanging indent on the second tied line (instead of a second number three). This hanging indent would line up vertically with the "tab" position of the other One, Two, Three starting values. I guess this is harder to achieve. But thanks anyhow, for your input (which I already got from another source last year).