Page MenuHomePhabricator

Error for file namespace should escape the title in the link
Closed, ResolvedPublic

Description

In looking at the error from T211052, I noticed that the error has the page title unescaped for the File namespace:

"wikibase-mediainfo" content is not allowed on page [[File:Foo.png]] in slot "⧼slot-name-main⧽"

This renders in wikitext poorly. :-) Instead, we'd want:

"wikibase-mediainfo" content is not allowed on page [[:File:Foo.png]] in slot "⧼slot-name-main⧽"

Event Timeline

Change 477625 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/core@master] PageUpdater: Escape the File namespace in error links to pages

https://gerrit.wikimedia.org/r/477625

Change 477625 merged by jenkins-bot:
[mediawiki/core@master] i18n: Escape the File and Category namespaces in error links to pages

https://gerrit.wikimedia.org/r/477625

Jdforrester-WMF triaged this task as Medium priority.
Jdforrester-WMF removed a project: Patch-For-Review.