There schould be a count() at https://commons.wikimedia.org/w/index.php?title=Special%3AGlobalUsage&limit=50&target=Test.svg (Special:GlobalUsage) to see how much times a file has been used.
Description
Description
Event Timeline
Comment Actions
Would you be ok with - if > 5000 times, just say > 5000? As that would make the patch less scary performance wise.
If added, should also probably add to ?action=info
Comment Actions
Yes, it should be fine.
For a exact output we/i can write a tools labs tool if necessary. Just tested with the most used file:
MariaDB [commonswiki_p]> SELECT COUNT(gil_page) -> FROM globalimagelinks -> WHERE gil_to = "Commons-logo.svg"; +-----------------+ | COUNT(gil_page) | +-----------------+ | 7939852 | +-----------------+ 1 row in set (6.02 sec)
EDIT: Created http://tools.wmflabs.org/globalusagecount/
Comment Actions
Included the aforementioned tool labs tools in MediaWiki:Globalusage-header-image (with i18n support) , so we don't have to care about performance on production.