Help:Using Images from Commons
From eagle-rock.org
$wgForeignFileRepos
This is the extension that allows us to set our wiki to use media from [Wikimedia Commons]
Using files from Wikimedia Commons : ForeignAPIRepo
Details of the code can be found on the $wgForeignFileRepos Extension Page [[1]]