Page MenuHomePhabricator

MUL - Truncate placeholders for Wikidata Labels and Aliases
Open, Needs TriagePublic

Description

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 modeEdit mode
Labels
Screenshot 2023-06-23 at 15.35.18.png (1×2 px, 428 KB)
Screenshot 2023-06-23 at 15.37.03.png (1×2 px, 428 KB)
AliasesN/A (No changes)
Screenshot 2023-06-23 at 15.37.55.png (1×2 px, 399 KB)

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.

Event Timeline

Manuel renamed this task from MUL - Truncate placeholders for Labels to MUL - Truncate placeholders for Wikidata Labels.Jun 28 2023, 9:46 AM
Manuel renamed this task from MUL - Truncate placeholders for Wikidata Labels to MUL - Truncate placeholders for Wikidata Labels and Aliases.Jun 28 2023, 10:52 AM
Manuel updated the task description. (Show Details)
Manuel added a subscriber: Sarai-WMDE.