Currently 2332 links on mediawiki.org alone.
https://www.mediawiki.org/w/index.php?title=Special:LinkSearch&limit=5000&offset=0&target=https%3A%2F%2Fbugzilla.wikimedia.org%2Fbuglist.cgi
https://www.mediawiki.org/w/index.php?title=Special:LinkSearch&limit=5000&offset=0&target=http%3A%2F%2Fbugzilla.wikimedia.org%2Fbuglist.cgi
For more: https://wiki.toolserver.org/view/MySQL_queries#List_of_external_links_from_all_wikis
We need a map of all subtypes of links; probably the best way is to make strict apache rewrite rules which match only what they're sure to be able to translate meaningfully to phabricator URLs, then run them on the full list of known URLs and see what's not yet matched. When something is not immediate to match, a sub-task needs to be filed to make it possible.
Example challenge: http://fab.wmflabs.org/T171#15
Reference: http://www.w3.org/Provider/Style/URI.html