Feature request from [[ https://www.mediawiki.org/wiki/Topic:Vqahikwnnq2x1mvc ]].
Add a code to #time parser function format string which will output the day as ordinal numberUnlike PHP's [[ https://www.php.net/manual/en/function.date.php | date function ]], MediaWiki does not support `jS` in format strings (used by e.g. Given `j` outputs "Day of`#time` in #parserfunctions) for the month,day as an ordinal number. not zero-padded.",There are likely more use cases for formatting numbers as ordinals (e.g. the new syntax could be `J`T95553), so that `{{#time: J F Y | 2000-01-20 }}` outputs "20th January 2020"so localization of ordinal numbers should first become part of the core's internationalization.
There are likely more use cases**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"
T95553),- `{{#time: J F Y | 2000-01-20 | cs }}` outputs "20. so localization of ordinal numbers for various languages should first become part of the core's internationalization.ledna 2000"