Snippets/Direct imagelinks to Commons

Description
Files hosted at Commons have local image links redirected to Commons. Supports HTTPS.

Via LocalSettings.php
Since MediaWiki 1.16 it might be sufficient just to set the following flag in LocalSettings.php $wgUseInstantCommons = true;

You might need to configure also the following variables when your host is behind a firewall/proxy: $wgHTTPProxy = "myproxy.mycomp.net:8080";