Page MenuHomePhabricator

Show preview when entering value for math data type
Open, MediumPublic

Description

When I enter a value in the Wikibase ui for the math datatype, I expect it to show some preview how the formatted result will look like. This should behave exactly like the preview popup for dates and perhaps the same functionality can be used.

Event Timeline

Bene raised the priority of this task from to Needs Triage.
Bene updated the task description. (Show Details)
Bene added projects: Wikidata, Math.
Bene added subscribers: Bene, Physikerwelt, Lydia_Pintscher.

what is the wikibase ui?
Can you enable the VisualEditor there?

Screenshot 2016-02-02 16.54.49.png (1×960 px, 145 KB)

The wikibase ui is the ui you see when editing an item. So if you click enter on an item page on a statement with a math value, I'd like to see a preview of how my formular gets rendered like it appears when editing a date-time value on wikidata.

yes, sounds reasonable for the future.

Physikerwelt set Security to None.

For me it's still not clear, what are the main differences from the visual editor. Can't we just use the same software that is also been used in the visual editor.
@Esanders: What do you think?

The VE dialogs weren't designed to be separated from VE, so with all the dependencies it might end up being a bit heavy weight unless VE was already loaded. If you want lightweight you could probably make a simple preview gadget using Mathoid.

I think for a preview one can jus tender the input using the rendering functionality described in the hook. From this point, math should not need special treatment and should be handled like other complex types.