On Fri, Jan 16, 2009 at 6:10 AM, Ilmari Karonen nospam@vyznev.net wrote:
MediaWiki 1.14alpha, which is what Wikipedia is running, has renamed the "Image:" namespace to "File:", and a lot of Wikipedia editors have already switched to using the new name. If you want to copy templates from Wikipedia to a wiki running an older version and be sure that all images in them will work, you have (at least) three options:
Use an older version of the template, from November 2008 or earlier.
Replace all instances of "File:" (and "File talk:") with "Image:"
(and "Image talk:", respectively) in the template code.
- Add the following lines to the LocalSettings.php file for your wiki:
$wgNamespaceAliases['File'] = NS_IMAGE; $wgNamespaceAliases['File_talk'] = NS_IMAGE_TALK;
The best option is none of the above. Wait a little while and use 1.14, which has the change by default. Failing that, you can use the 1.14 branch right now, which also has the change. In general, you can't always get compatibility with Wikipedia content unless you're running the same version or later, although usually it will pretty much work.