Page MenuHomePhabricator

Don't allow structured data captions/statements on "File" pages which are just redirects
Closed, ResolvedPublic

Event Timeline

Change 483950 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/WikibaseMediaInfo@master] Hide structured data captions on redirect pages

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

Change 483950 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Hide structured data captions on redirect pages

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

So the tentative solution as implemented is to hide the input field for redirects? But when the redirect link is malformed, it would show up. Perhaps the input field should be hidden for all pages without a file.

So the tentative solution as implemented is to hide the input field for redirects? But when the redirect link is malformed, it would show up.

Not tentative, merged, and now deployed to Wikimedia Commons.

Perhaps the input field should be hidden for all pages without a file.

File pages that don't exist already don't get a captions box. Checking for binary file being attached could be a bit too expensive a test.

Confirmed working on production with Redirect-testing.jpg and ImageRedirectTest.jpg