**Problem:**
Instead of adding identical values for many languages, editors will soon be able to add a `mul` Label and Alias in the termbox. It is however not immediately obvious, that the `mul` entries will work as fallbacks. Editors will only see "No label defined" which might convince some editors to add the redundant Labels again. We need to make this more intuitive.
**Notes:**
* In story writing, it was decided to split the original task into viewing (T329655) and editing (T338330).
* T332175 does the same thing on mobile
* The reason is that we only allow the language code `mul` for Labels and Aliases and not for descriptions (T313027).
* We only consider `mul` values as intentional fallbacks. So we only use `mul` values as placeholders and not `en` values.
* The placeholders could update live, on publish, or on reload (not ideal, but ok for now).
* The list of Aliases could be extensive, or their text or that of Labels could be long (e.g. https://www.wikidata.org/wiki/Q84621524). Therefore we only use the first alias as a placeholder, followed by an ellipsis symbol. We should truncate the text of the MUL placeholders used for aliases in cases it's too long. A maximum of 2 lines of text should be displayed under all circumstances. Ellipsis will be used to indicate that the text was abbreviated.
**Solution:**
If a `mul` Label /Alias is available, use it as a placeholder for all other existing languages with an empty value.
**Mockups:**
{F37112610}
| [[ https://www.figma.com/file/UMHGYSxln03lGx2z7GxzP2/Multiple-languages?type=design&node-id=340-8642&mode=design&t=d0477X8hCtNiYCRO-0 | Link to Figma specs ]] |
**BDD:**
Adding `mul` Label/Alias: The `mul` Label/Alias is used as a placeholder for all empty Labels/Aliases after a `mul` value is published on desktop (and mobile).
GIVEN an Item without a `mul` Label/Alias
WHEN the `mul` Label/Alias is added on desktop (or mobile)
AND the user publishes their changes to the termbox
THEN the default Label/Alias placeholder value of all languages is replaced by a placeholder that matches the new `mul` Label/Alias
Removing `mul` Label/Alias: There is no placeholder for empty Labels/Aliases after a `mul` value is removed on desktop (and mobile).
GIVEN an Item with a `mul` Label/Alias
WHEN the `mul` Label/Alias is removed on desktop (or mobile)
AND the user publishes their changes to the termbox
THEN the default Label/Alias placeholder value of all languages is replaced by a placeholder that matches the old copy
Existing `mul` Label/Alias: The `mul` Label/Alias is used as a placeholder for all empty Labels/Aliases when the Item is opened for (viewing or) editing on desktop (and mobile).
GIVEN an Item with a `mul` Label/Alias specified
WHEN the Item is opened for (viewing or) editing on desktop (or mobile)
THEN all empty Labels/Aliases are shown with the `mul` Label/Alias as a placeholder (in gray, see mockups)
**Acceptance criteria:**
[] The `mul` Labels and Aliases are used as placeholders for all empty Labels and Aliases when the Item is opened for editing on desktop.
* It does not matter if a (manually entered) Label is duplicated in the placeholder for the Alias (that is falling back to `mul`).
[] For Labels: We reuse the whole `mul` Label as a placeholder (we might test truncation for Labels only at a later time, see T340615).
[] For Aliases: If there is more than one `mul` Alias, only the first is reused as a placeholder, followed by an ellipsis symbol. If the text of the `mul` placeholder is still too long, it is truncated (a maximum of 2 lines of text should be displayed under all circumstances). Ellipsis is used to indicate that the text was abbreviated.
[] When an empty Label or Alias is edited, the placeholder value disappears on desktop (see mockups and BDD).
[] Release to test.wikidata.org