Steps to replicate the issue:
- As an admin (or account with admin permissions) open https://es.wikipedia.org/wiki/Especial:Bloquear/Johannnes89?usecodex=1&uselang=en
- Open the "Add block" section, subsection "Reason"
What happens?:
- Only the pre-defined common block reasons are shown (in English), none of the custom reasons defined in https://es.wikipedia.org/wiki/MediaWiki:Ipbreason-dropdown
What should have happened instead?:
- All of the custom reasons defined in https://es.wikipedia.org/wiki/MediaWiki:Ipbreason-dropdown should appear, just as they do when viewing the page in Spanish: https://es.wikipedia.org/wiki/Especial:Bloquear/Johannnes89?usecodex=1&uselang=es
- Compare with the regular (non-Codex) block page: https://es.wikipedia.org/wiki/Especial:Bloquear/Johannnes89?uselang=en and https://es.wikipedia.org/wiki/Especial:Bloquear/Johannnes89?uselang=es both show the custom block reasons.
Other information:
- I initially noticed this when trying https://pl.wikipedia.org/wiki/Specjalna:Blokuj/Johannnes89 (the first production wiki with Multiblocks per T377121), because my global language settings are English.
- Probably unrelated: I noticed that https://meta.wikimedia.org/wiki/User:WhitePhosphorus/js/GS_Rationale.js doesn't work on Codex Special:Block pages, is there documentation on how to update such scripts?
Derived Requirement
Ensure that the Codex version of Special:Block displays all custom block reasons defined in MediaWiki:Ipbreason-dropdown for the local wiki, regardless of the language selected via the uselang parameter.
Test Steps
Test Case 1: Ensure Custom Block Reasons Appear on Codex Special:Block in Alternate Language
- Log into a wiki with administrator privileges (e.g., es.wikipedia.org).
- Open the URL: https://es.wikipedia.org/wiki/Especial:Bloquear/Johannnes89?usecodex=1&uselang=en.
- Expand the "Add block" section.
- Open the "Reason" dropdown.
- ✅❓❌⬜ AC1: Confirm that the list includes all custom block reasons defined in MediaWiki:Ipbreason-dropdown, in addition to the standard reasons.
Test Case 2: Ensure Custom Block Reasons Are Not Dependent on Interface Language
- In the same admin account, open https://es.wikipedia.org/wiki/Especial:Bloquear/Johannnes89?usecodex=1&uselang=es.
- Expand the "Add block" section and view the "Reason" dropdown.
- Compare the options listed with those from the uselang=en version.
- ✅❓❌⬜ AC2: Confirm that both versions (English and Spanish interface) show the same set of custom block reasons, despite the difference in UI language.
QA Results - Local
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T390721#10730419 |
| 2 | ✅ | T390721#10730419 |





