We currently have already some date/time related message parameter types such as durationParams, timeperiodParams and more. Often, we have time stamps that need to be inserted into messages in parts or as a whole. They are formatted via Language::timeAndDate(...), Language::date(...) and Language::time(...). At the moment that happens individually before each invocation of wfMessage(...). Such repetitions are tedious, unnecessary and add to code clutter. So, let us introduce:
- wfMessage(...)->dateParams(...)
- wfMessage(...)->timeParams(...)
appending date and time parametes to the list of message parameters, and
- wfMessage(...)->dateTimeParams(...)
which appends three message parameters per function parameter, which are date/time, date, and time, respectively.
The latter follows the advice https://www.mediawiki.org/wiki/Localisation#Separate_times_from_dates_in_sentences saying:
Some languages have to insert something between a date and a time which grammatically depends on other words in a sentence. Thus, they will not be able to use date/time combined. Others may find the combination convenient. Thus it is usually the best choice to supply three parameter values (date/time, date, time) in such cases, and in each translation leave either the first one or last two unused as needed.