This point needs a lot of work: https://www.mediawiki.org/wiki/Help:Extension:Media_Viewer#How_can_I_disable_Media_Viewer_for_unrelated_images.3F. We're talking of thousands (or probably an order of 10^5) templates to edit across all Wikimedia projects. It would be nice to have GCI students audit (AKA Special:Random over and over) one wiki from the long tail and fix at least the most important templates (usually infobox and navbox meta-templates, if such a thing exists); on small wikis, they're hopefully not fully protected.
Nemo