Page MenuHomePhabricator

Preset for "current day" on Wikifunctions integration wikis
Open, MediumPublicFeature

Description

Feature summary (what you would like to be able to do and where):
Click a button (or just leave blank) where a date/month/year (and maybe time, though that might be too granular) input is used to fill the input with "{{#time:d/n/Y}}." This has the effect of filling the input with the current day at runtime. This should only be done on wikis with the ParserFunctions extension

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

  • Useful for interacting with the current date, which has many uses, especially for figuring out the amount of time passed since an event.

Benefits (why should this be implemented?):

  • An easier and faster solution that works with the VisualEditor.

Event Timeline

Perhaps it's better to use '{{#time:Y-m-d}}', since in this way it uses the ISO 8601 format. The d/n/Y format could be misinterpreted by the reader functions in some languages (for example, the en-us reader interprets 06/8/2025 as '8 June 2025').

Jdforrester-WMF subscribed.

We're already working on blank inputs as "default values". Moving to product for this particular request.

Product review:

  • As I said above, we're working this Quarter on blank values for date Type inputs giving the current day; see T390553 and its descendents for more details.
  • For the rest of this task, adding a button to the editing UX to trigger this new behaviour, I'm moving this to Design Backlog for our designer to consider if this is something we want to do.

@Jdforrester-WMF Why is this the parent of a # workstream like "Null Values"?

@Jdforrester-WMF Why is this the parent of a # workstream like "Null Values"?

Because this product request is blocked by the null values work. As you can see, it's been through product review and is now in the design backlog.

Could you please add the support for blank fields also for Z20159 (Gregorian Year)?