Page MenuHomePhabricator

MW should only interpret ':' as a list entry when it is on the beginning on a newline, not in the definitionlist-header
Open, LowPublicFeature

Description

Author: gnu1742

Description:
You define a definitionlist like this:

;The Events at 17:42 UTC

Mediawiki interprets this as an Definitionlist with "The Events at 17" as the Definition (<dt>) and "42 UTC" as the first Definitionlistentry (<dd>) and so this construct is rendered like this:

The Events at 17 (<-- Bold)

42 UTC

So the colon in 17:42 should not be interpreted as a definitionlistentry. A colon should only be interpreted as a definitionlistentry when it is at the beginning of a new line.


Version: unspecified
Severity: enhancement

Details

Reference
bz16170

Event Timeline

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

I see the issue, but I think it was made this way on purpose. I got the following from comments in Parser.php:

  1. The one nasty exception: definition lists work like this:
  2. ; title : definition text
  3. So we check for : in the remainder text to split up the
  4. title and definition, without b0rking links.

While standard practice is to separate them by lines (meaning :'s should be usable on a title line ';'), I'm unsure as to what this might break, changing the behavior.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM
Aklapper removed a subscriber: wikibugs-l-list.

I support this idea, but we would need a RFC, because this would break many pages.