Problem:
With T338330 we implemented the use of mul Labels as placeholders for Labels (both editing and viewing mode) and Aliases (only in the editing mode). The text of Labels/Aliases can be long (e.g. https://www.wikidata.org/wiki/Q84621524), which could lead to a very content-heavy table with suboptimal UX.
Solution:
We should truncate the text of the MUL placeholders used for Labels/Aliases. A maximum of 2 lines of text should be displayed under all circumstances. Ellipsis will be used to indicate that the text was abbreviated.
Mockups:
| Read mode | Edit mode | |
| Labels | ||
| Aliases | N/A (No changes) | |
Acceptance criteria:
- Placeholders for Labels/Aliases can only take 2 lines (+ellipsis) in both viewing and edit modes.
- Release to test.wikidata.org
Notes:
- We already only reuse the first of several mul Aliases as a placeholder (see T338330).
- We tentatively don't see the need to add a title/tooltip that would display the whole text on hover, since the full label/alias will be fully visible in the Multiple languages entry, which will always be in sight due to its placement.
- Regarding the amount of lines of text: the assumption is that 1 line wouldn't be enough in some cases to convey the meaning (that placeholders are the same as MUL), and that the 2-line limit will offer more coverage (most placeholders won't need ellipsis). Nevertheless, using longer placeholders disrupts the alignment of the termbox table quite a bit on edit mode (see mocks), due to the way it's designed. So using 1 line instead of 2 cannot be discarded in case we want to prioritize avoiding this disruption.


