**User story:**
As a Wikidata editor,
I want to find the `mul` Labels and Aliases at a consistent place in the termbox,
so that I am always able to find it quickly.
**Solution:**
* Always show `mul` as the last language in the "In more languages" section.
** It is not relevant if the `mul` Label or Aliases are empty or not.
** A consistent place is preferable to 'mul' jumping around from entity to entity. We chose the bottom position as it is unproblematic even for non-Latin UI users and entities that should not use `mul`. Also, it makes the fallback functionality intuitive.
* There are users working with a lot of Babels (see T329763)**Babels** (see T329763). These Power users should be able to specify a position of `mul` via their Babels.
* All Wikibase products will in the future get `mul` as an option (tmpEnableMulLanguageCode).
** Initially, we will not activate this particular feature in Wikidata either to allow for a **soft rollout**. These Power users should be able to specify a position of `mul` via their BabelsSo this needs to be configurable via a **second ([temporary](https://phabricator.wikimedia.org/T330217)) flag**.
**Mockup:**
{F36913031}
{F36913033}
| [[ https://www.figma.com/file/UMHGYSxln03lGx2z7GxzP2/Multiple-languages?node-id=340%3A7233&t=sZTXODU8Mf4RIfvr-0 | Link to Figma specs ]] |
**Expected fallback:**
{F36845476}
**Notes:**
* T336781 solves the same issue for mobile termbox.
* We only want this for Wikidata for now (tmpEnableMulLanguageCode). Initially we will not activate it in Wikidata either to allow for a soft rollout. So this needs to be configurable via a **second ([temporary](https://phabricator.wikimedia.org/T330217)) flag**.
* A consistent place is preferable to 'mul' jumping around from entity to entity. We chose the bottom position as it is unproblematic even for non-Latin UI users and entities that should not use `mul`. Also, it makes the fallback functionality intuitive.
**Open questions:**
* Do we really want this for Properties?
* Is there a better way than using this for a soft rollout?
**BDD:**
Show `mul` where the Babels say if so specified in a user's Babels.
GIVEN a wiki with language code `mul` (no matter if this is enabled or disabled)If `mul` is specified in the user's Babels:
Independent of the soft rollout, if `mul` is specified in a user's Babels, always show `mul` in the rank where the Babels say.
GIVEN a wikibase where `mul` is enabled
AND the Babel extension is enabled
AND the user has specified `mul` in their Babels
WHEN editing or viewing an Item on (mobile or) desktop
THEN show `mul` in the "In more languages" section of termbox at the position specified by the Babels
ShowIf `mul` as the last language if not configured and not specified in ais NOT specified in the user's Babels, but used in the entity.s:
GIVEN a wiki where this is configured as disAfter the soft rollout, show `mul` as the last language in the "In more languages" section.
GIVEN a wikibase where `mul` is enabled
AND the usersoft rollout phase has not specified `mul` in their Babelssuccessfully ended (=configured for normal use/no soft rollout flag exists)
WHEN editing or viewing an Item on mobile or desktop
AND the Item uses `mul`
THEN show `mul` as the last language in the "In more languages" section of termbox
Do not show `mul` if not configuredAND the user has not specified `mul` in their Babels (OR the Babel extension is disabled)
WHEN editing or viewing an Item on (mobile or) desktop
During the soft rollout, not specified in theif `mul` is NOT already user's Babelsd in the entity, and not used in the entity.do NOT show `mul`.
GIVEN a wiki where this is configured as disbase where `mul` is enabled
AND the user has not specified `mul` in their Babelswe are only in the soft rollout phase (=configured for limited rollout)
WHEN editing or viewing an Item on mobile or desktopAND the user has NOT specified `mul` in their Babels
AND `mul` is not already used in the Item does not use `mul`entity
WHEN editing or viewing an Item on (mobile or) desktop
THEN do notNOT show `mul`
Show `mul` as the last language if configured and not specified otherwise in a user's Babels.
GIVEN a wiki where this is configured as enabled
AND the Babel extension is enabled or disabled
AND the user hasn'tIndependent of the soft rollout, if `mul` is used in an entity, then show `mul` as the last language in the "In more languages" section.
GIVEN a wikibase where `mul` is enabled
AND the user has NOT specified `mul` in their Babels
AND the Item uses `mul`
WHEN editing or viewing an Item on (mobile or) desktop
THEN show `mul` as the last language in the "In more languages" section of termbox
**Acceptance criteria:****Open questions:**
[] This is configurable to make it available only on specified wikis (via a second flag, see notes)* How can we best test the two configurations for soft rollout (enabled/disabled)?
**Acceptance criteria:**
[] There is a soft rollout flag configurable to change the behavior during soft rollout.
[] Show `mul` where the Babels say if so specified in a user's Babels.
[] Show `mul` as the last language if not configured and not specified in a user's Babels, but used in the entity.
[] Do not show `mul` if not configured, not specified in the user's Babels, and not used in the entityDuring soft rollout:
[] Show `mul` in Items and Properties **where the user's Babels specify** (independent of soft rollout).
[] Show `mul` **as the last language if configured and not specified otherwise in a user's Babels.
** in the "In more languages" section of Items and Properties ...
[] ... [] for Itemsif `mul` is not specified in a user's Babels AND if `mul` is already used in an entity (only during soft rollout).
[] Do **not show `mul`** in Items and Properties ...
[] for Properties... if `mul` is not specified in the user's Babels, and `mul` is not already used in the entity (only during soft rollout).
[] We have tested both configurations (enabled/disabled) on Test WikidataAfter soft rollout:
[] Show `mul` in Items and Properties **where the user's Babels specify** (independent of soft rollout).
[] Show `mul` **as the last language** in the "In more languages" section of Items and Properties ...
[] ... if `mul` is not specified in a user's Babels (after soft rollout).
[] Release to test.wikidata.org