Last modified: 2014-05-23 00:22:39 UTC
When an image is moved a redirect is created. The file links section of the new image page will then include a reference to this redirect. However, the file links section does not provide any information about where the redirected image title is used. The result is that image moving effectively hides information on image use by forcing one to look at WhatLinksHere for the original title to figure out where the image is used rather than being able to obtain this information from the image page itself.
The api doesn't see the usage either. The following image is used in [[en:Donde los ponys pastan]] http://en.wikipedia.org/w/api.php?action=query&list=imageusage&iutitle=File:Porter_-_Donde_Los_Ponys_Pastan_album_cover.jpg
Special:Whatlinkshere should work.
I think this should be higher-priority than "enhancement": without accurate image usage data, two of my bots can't function properly, and a third will actively cause problems. I'd really rather not go back to screen-scraping, because page HTML is subject to change without notice.
carnildo. I agree with you, but just so you know. You can use this: http://en.wikipedia.org/w/api.php?action=query&list=backlinks&bltitle=File:Porter_-_Donde_Los_Ponys_Pastan_album_cover.jpg&blredirect&blfilterredir=redirects to find redirects for the file. And then you can do seperate imageuse queries again for the redirects to the file.
raising the priority of this bug. Now that file moves are available, this issue has become much more important.
Raised once more to 'critical'. This can cause non-free images to be deleted in the mistaken belief that they are not in use.
No, this is not "critical". Just tell your trigger-happy admins to check for redirects before deleting a file.
There's no need to war over the importance categorization. "blocker" or "enhancement", clearly nobody gives a shit and this bug will get fixed when someone gets around to it.
This "bug" is in GlobalUsage aswell. Although local pagelinks (Special:WhatLinksHere) does list redirects (as a sub-list-item under the redirect itself) - globalusage does not.
*** Bug 23353 has been marked as a duplicate of this bug. ***
This appears to have been fixed somewhere around the line. Consider [[commons:File:%22A_Spiritual_Landscape%22_by_Lucian_Popov.jpg]] It has a redirect [[commons:File:Popov 006.jpg]] I used the redirect on the pages [[testwiki:User:Bawolff/fileRedirTest]] and [[commons:User:Bawolff/test]]. Both of these usages appear on the image description page of [[commons:File:"A_Spiritual_Landscape"_by_Lucian_Popov.jpg]]. Specificly I see: File usage on Commons The following 3 pages link to this file: * User:Bawolff/test * File:Popov 006.jpg (file redirect) o User:Bawolff/test File usage on other wikis The following other wikis use this file: * Usage on ru.wikipedia.org o Попов, Лукиан Васильевич * Usage on test.wikipedia.org o User:Bawolff/fileRedirTest ----- The only minor thing is that in the global usage section, usages of redirects and main file are lumped together. But I think that's ok. So calling this fixed. Please reopen if there are further issues.