Page MenuHomePhabricator

Add support for top-level statements with quantity values, and units for quantity data type
Open, Needs TriagePublic

Description

ATM we only support 'quantity' data types in SDoC for statement qualifiers AND when entering data for a qualifier whose property has a data type of "quantity", the user can't enter units for the quantity, only a number

In wikidata the user can enter the number and the units - e.g. if the statement is 'length' they can add the value for length plus 'metres', 'inches', etc

We want to support top-level statements with quantity data types, plus units for those quantity values, so we can have statements about, for example, the dimensions of an image

Acceptance criteria:

  • can enter statements with quantity values as top-level statements, not just qualifiers
  • can enter units for the quantity values
    • via File page
    • via UploadWizard

Event Timeline

Cparle created this task.Sep 4 2019, 11:31 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 4 2019, 11:31 AM
Cparle renamed this task from Add support for units for quantity data type in Commons UI to Add support for top-level statments with quantity values, and units for quantity data type .Sep 4 2019, 11:37 AM
Cparle renamed this task from Add support for top-level statments with quantity values, and units for quantity data type to Add support for top-level statements with quantity values, and units for quantity data type .
Cparle updated the task description. (Show Details)
Cparle updated the task description. (Show Details)
Cparle updated the task description. (Show Details)Sep 4 2019, 2:25 PM

Quantity datatype support is introduced in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikibaseMediaInfo/+/542253, but some updated UI designs are needed to improve the user experience.