Page MenuHomePhabricator

Support normalized quantities in Lua
Open, Needs TriagePublic

Description

As a template editor, I want to ensure my infobox always displays a quantity using the same unit, no matter which (convertible) unit is used in Wikidata.

Problem:
Wikibase supports unit conversion, but currently only in the RDF export – it’s not available to client wikis.

See T190813: Module for unit conversions for some related discussion.

Example:
Football players’ heights might be given in m or cm (query), but an infobox should always display it the same way.

Screenshots/mockups:

BDD
GIVEN
AND
WHEN
AND
THEN
AND

Acceptance criteria:

Open questions:

  • Do we also want to make this available via parser functions?
  • Should this be an interface similar to RDF, where you can get the converted value of a certain Wikibase quantity, or a more general unit conversion module that you can also feed your own quantities into?

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.
StatusAssignedTask
OpenNone
OpenNone

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 7 2019, 10:34 AM