Feature request from https://www.mediawiki.org/wiki/Topic:Vqahikwnnq2x1mvc.
Unlike PHP's date function, MediaWiki does not support jS in format strings (used by e.g. #time in ParserFunctions) for the day as an ordinal number. There are likely more use cases for formatting numbers as ordinals (e.g. T95553), so localization of ordinal numbers should first become part of the core's internationalization.
Format string token discussion
In PHP, j corresponds to the day and S to the ordinal suffix in English. They are two distinct tokens. As different languages have different ways of formatting ordinal numbers, MediaWiki may have to treat it as one. There are currently no two-letter tokens (except MediaWiki's own tokens starting with x), so a different one may have to be introduced in MediaWiki (e.g. J).
Acceptance criteria:
- {{#time: J F Y | 2000-01-20 }} outputs "20th January 2000"
- {{#time: J F Y | 2000-01-20 | cs }} outputs "20. ledna 2000"