Motivation
When I import a file from dewiki to Wikimedia Commons, German namespace prefixes in links on the file page aren't translated to English. This means that the links in exported files turn to redlinks. Examples:
- Benutzer: should be User:. Urheber=[[Benutzer:Bjs]] should be Author=[[User:Bjs]]
- Datei: should be File:. Quelle=[[:Datei:xyp.jpg]]should be Source=[[:File:xyp.jpg]].
- Kategorie: should be Category:. Changing [[Kategorie:Datei:Ansbach]] to [[Category:Ansbach]] on Commons would already work, as do most names of places. And even if categories don't exist, changing the link to Category:means that Commons recognizes the link as a category, and it can be changed with HotCat.
Acceptance Criteria
- On the most recent file page, all namespace names are recognized as such, e.g. coming as "Kategorie:...", the text is recognized as being the category namespace with the target wiki's namespace label.
- This should not break any links, especially in relation to T198584: Update wikilinks to point back to source project
Notes
The mapping will happen through canonical namespaces
Source of this request: https://de.wikipedia.org/wiki/Wikipedia_Diskussion:Technische_Wünsche/Topwünsche/Verschieben_von_Dateien_nach_Commons#Weitere_Ersetzungswünsche