Page MenuHomePhabricator

Support default values when fields are left blank for date inputs in the Wikifunctions integration so that editors can use it more simply
Closed, ResolvedPublic

Description

Description

Allow for Wikifunctions calls in WIkipedia to set empty values for inputs of "Gregorian calendar date/Z20420", which would be interpreted by default as the current date.

Acceptance criteria

  • Functions which take Gregorian calendar date input types should allow empty values which will be interpreted as today's date in the client wiki locale.

Subtasks

  • T391019 [Spike]: decide whether to set default values in the client or in the server, contemplate pros and cons of both solutions
  • T391021 [Wikilambda]: implement setting of date default value to today's day
    • If we set args in client:
      • ClientHooks: request function from Wikifunctions and replace empty argument with default value
      • ClientHooks: adapt caching strategy to new default value features
  • T391023 [VisualEditor Wikifunctions]: allow dates with empty values without stopping them on validation
  • T391077 [Design]: investigate effects of displaced Wikifunctions default values user guidance

Completion checklist

Related Objects

Event Timeline

gengh updated the task description. (Show Details)
DSantamaria triaged this task as Medium priority.Apr 9 2025, 4:58 PM
DSantamaria changed the task status from In Progress to Open.May 12 2025, 3:40 PM
DSantamaria changed the task status from Open to In Progress.May 20 2025, 1:37 PM