Manipulating Wikidata complex values (GlobeCoordinates, Times, Quantities...) in Lua modules is painful. It would be nice to provide a good Lua library making easy to parse such values and render them.
It should provide:
- Good getters to easily retrieve the different value parameters (e.g. the item id of the globe ready to be passed into mw.wikibase.getLabel()).
- Extensible default rendering based on what already exists in MediaWiki
- Parsers and constructors to allow infobox builders to use DataValue as an internal representation for both values from Wikibase and values inputted by the user. Allowing them to just have one rendering system instead of two. For example the Time implementation may expose the same parsers as the ones used for interpreting the human inputs in the Wikibase UI.