Page MenuHomePhabricator

Date ranges are not rendered properly
Closed, InvalidPublic

Description

Author: psychonaut

Description:
My only experience with the MediaWiki software is as a Wikipedia author, so
forgive me if this bug is misfiled.

Anyway, Wikipedia has some feature whereby dates of the form [[20 July]] or
[[July 20]] are automatically rendered according to the reader's preferred
settings. However, this feature does not work for date ranges, so far as I can
tell. In particular, it would be nice if the following formats could be
accounted for:

[[20 July|20]]–[[22 July]]
[[July 20]]–[[July 22|22]]

At the moment, these are rendered as follows in American English:

20–July 22 (incorrect)
July 20–22 (correct)

and as follows in International English:

20–22 July (correct)
20 July–22 (incorrect)

Both ought to be rendered the "correct" way depending on the user's settings.

Note that there are many more possible connectives other than –
("through", "to", "-", etc.), it may be necessary to introduce an entirely new
syntax for date ranges, or simply stipulate that the relatively neutral –
be used in all cases.


Version: 1.17.x
Severity: normal

Details

Reference
bz1802

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 8:20 PM
bzimport set Reference to bz1802.
bzimport added a subscriber: Unknown Object (MLST).

karun.84 wrote:

Are they being rendered as the correct or incorrect format in your bug report?

psychonaut wrote:

The bug report specifies exactly how they are being rendered, and which formats are correct and incorrect. What needs clarification exactly?

(In reply to comment #0)

Anyway, Wikipedia has some feature whereby dates of the form [[20 July]] or
[[July 20]] are automatically rendered according to the reader's preferred
settings.

Anybody having more info about this feature (and if it really exists)?

psychonaut wrote:

Perhaps it was removed, or at least deactivated on Wikipedia, following the 2008 RFC on date linking: [[Wikipedia:Manual of Style/Dates and numbers/Date Linking RFC]] If that's the case then this bug report is no longer relevant for Wikipedia. If the code supporting the feature has also been removed from MediaWiki then this bug can be closed as WONTFIX.