When translating an article users may need more information about a word to do a better translation. Surfacing a wikipedia article if such exists for the selected piece of content allows translators to quickly check the meaning of such word, and read the article to understand how related concepts about the topic are captured in the local language.
This ticket proposes to show a preview card when the user selects some text for which an article exists. That will help to surface the information in the tools panel, making it available for users to access it if they are interested in it, but not getting in their way if they were not (e.g., they may just want to delete or rewrite the selection).
The preview card will anticipate two of the common actions users do in these cases:
- Open the article. Users can open the article in a new tab/window. This saves time they would spend searching manually for it on their own.
- Adding a link to it. Providing a shortcut to quickly creating a link in one click, encourages to keep information connected.
The idea is illustrated below:
Interaction with links
If the selected element in the content is is already a link (selected by clicking on it or making a text selection that includes it), the usual link card will be shown (T168290). In this case, the page previewed will be the one the link is pointing to (i.e., not based on the label).
The design of the card will follow the specifications from T168290.
Note that the page preview card may not be the only information shown for the selected text. Other cards may show more information such as definitions from a dictionary, or alternative corrections from the Machine Translation service.