Page MenuHomePhabricator

Look into ways to build list-style-types for explicit numbering in PHP/JS
Open, Needs TriagePublic

Description

We want to replace the implicit list numbering and list styling done in CSS with explicit numbers. One piece missing then would be the localized list-style-types that are applied using CSS.

Currently the Language class is used to get the localized version of a footnote number. We want to use the same mechanism for the generation of the numbers for the reference lists to replace the CSS currently used there.

One part that's missing is the list style for the numbers there. E.g If the number should be prefixed or suffixed with brackets or a dot.

Steps

  • Look into the list-style-types used
  • Try to find ways to replace these styles in PHP/JS
  • Add the mapping to the Language class in PHP/JS
  • Write a PoC patch that showcases how this could be done

For the specific mapping see for example
resources/src/mediawiki.skinning/i18n-ordered-lists.less