Page MenuHomePhabricator

Design: Investigate effects of displaced Wikifunctions default values user guidance
Closed, ResolvedPublic

Description

Discovery and definition

As part of the work to T390553: Support default values when fields are left blank for date inputs in the Wikifunctions integration so that editors can use it more simply we have noticed the following mismatch:

According to the design prototype, the Function description contains all the information about its use and the expected behavior with blank values, e.g.:

"Returns the number of full years between two specific dates. If the second parameter is not included it uses today's date"

Screenshot from 2025-03-22 12-34-09.png (318×541 px, 43 KB)

However the implementation of default values feature does not lie in Wikifunctions, but is part of the integration into Wikipedia. This means that a Wikifunctions user that visits the page for the "age" function, even if they see this behavior in the description, they won't be able to call the age function with an empty argument, nor they will be able to create tests for this edge case.

Screenshot from 2025-04-04 10-42-37.png (757×989 px, 96 KB)

Research and plan

  • Investigate possible drawbacks of this documentation discrepancy and suggest a way forward, which might just involve proper communication to the Wikifunctions community, a different UX solution, or even just ignoring the issue and collecting feedback after the rollout.

Completion checklist
Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Design_task_completion_checklist

Event Timeline

DSantamaria triaged this task as Medium priority.Apr 9 2025, 4:58 PM
gonyeahialam changed the task status from Open to In Progress.Jun 16 2025, 4:05 PM
gonyeahialam claimed this task.