What is the problem?
In the Special:Contributions link below the target input, some usernames do not look correct in RTL. I think they need to be wrapped in <bdi> element like we use in other places. This particularly effects temporary account usernames, where the tilde appears on the wrong side.
I also notice that the target input does not support RTL well either. This seems to be a wider bug.
Steps to reproduce problem
Expected behaviour: The link ~תרומות של 2024-20310
Observed behaviour: The link is תרומות של ~2024-20310
Environment
Wiki(s): https://test.wikipedia.beta.wmflabs.org MediaWiki 1.44.0-alpha (4a859d0) 09:52, 18 February 2025.
Screenshots
How a temporary username looks in Special:Block:
How it should look for comparison, from the top of Special:Contributions:
Derived Requirement
The Special:Contributions link displayed below the target input on Special:Block should correctly support RTL (right-to-left) languages by ensuring usernames, particularly temporary accounts, are wrapped in a <bdi> element to maintain correct text direction.
Additionally, the target input field on Special:Block should properly support RTL input.
Test Steps
Test Case 1: Ensure Special:Contributions Link Displays Correctly in RTL
- Navigate to Special:Block on an RTL-language wiki (e.g., Hebrew).
- Enter a temporary username (e.g., ~2024-20310) in the target input field.
- Observe the Special:Contributions link displayed below the input field.
- ✅❓❌⬜ AC1: Confirm that the username is correctly wrapped in a <bdi> element and appears in the correct order (e.g., ~תרומות של 2024-20310).
Test Case 2: Ensure Target Input Field Supports RTL Properly
- Navigate to Special:Block on an RTL-language wiki (e.g., Hebrew).
- Enter a temporary username (e.g., ~2024-20310) in the target input field.
- ✅❓❌⬜ AC2: Confirm that the text input aligns correctly for RTL and the tilde (~) remains on the correct side of the username.
QA Results - Test Wiki
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T386700#10592358 |
| 2 | ✅ | T386700#10592358 |










