Jump to content

Help talk:Extension:ParserFunctions

Add topic
From mediawiki.org
(Redirected from Talk:ParserFunctions)
Latest comment: 3 months ago by Matěj Suchánek in topic #time in other languages

Date math vs. invalid dates

[edit]

The function performs a certain amount of date mathematics

  • now -1 months

seems the be the only non-disputable example of say date math expression, while the others like

  • January 0 2008
  • February 29 2007

could be called rather invalid dates. See bugs e.g. T178175, T321989, T411471. —mykhal (talk) 08:30, 3 December 2025 (UTC)Reply

#time in other languages

[edit]

Hello, I'm stuck with a template that is supposed to compare current time with time included as a parameter of the template itself.

For example, the user includes a template that has a "date" parameter with a simple date written by the user, like "26 june". In english I can easily compare this date to the current timestamp by using {{#timel: YmdHis | 26 june }}, but in Italian it gives an error, because apparently #time doesn't accept anything but dates in english.

Is there any solution, like auto-translating dates to english? I can't expect users to write dates in languages other than their own.

Thanks. Wedhro (talk) 09:58, 18 July 2026 (UTC)Reply

See phab:T21412. There is even an attempt to get this done, but it's not made it yet. --Matěj Suchánek (talk) 09:57, 25 July 2026 (UTC)Reply