[Pywikipedia-l] Fwd: [Wikitech-l] Canonical namespace change coming: Image: -> File:

Bryan Tong Minh bryan.tongminh at gmail.com
Tue Oct 7 07:53:54 UTC 2008


---------- Forwarded message ----------
From: Brion Vibber <brion at wikimedia.org>
Date: Mon, Oct 6, 2008 at 8:24 PM
Subject: [Wikitech-l] Canonical namespace change coming: Image: -> File:
To: Wikimedia developers <wikitech-l at lists.wikimedia.org>


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

As per long-time wistful desire, we're planning to rename the 'Image:'
namespace to 'File:'. This will reduce confusion with audio, video, and
document file uploads being called 'images' -- they're now all
first-class citizens. :)

This should go smoothly and transparently for most purposes. 'Image:'
will continue to be an alias, and perhaps even recommended for inline usage.

But some user scripts and bots might get confused, so we're giving
warning first!


Image description pages will now sit at the 'File:' title rather than
the 'Image:' title, and the JavaScript variables and HTML body classes
will reflect this, such as:

   var wgCanonicalNamespace = "File";
   var wgPageName = "File:Wiki.png";

   <body class="mediawiki ltr ns-6 ns-subject
                page-File_Wiki_png skin-monobook">

If your script or bot relies on wgCanonicalNamespace being 'Image', or
the value of the language-specific prefix, consider updating it to allow
both 'Image' and 'File' or check the number instead (6).


I've made a patch against r41626 and attached it to the bug:
https://bugzilla.wikimedia.org/show_bug.cgi?id=44

Unless there's a major issue, my plan is to commit it one week from
today. Once the core English namespace is changed, other localizations
may update their localized namespace names and aliases at their convenience.

Please *do not* update localizations before it's been committed!

- -- brion
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjqV84ACgkQwRnhpk1wk45odgCdEj4f0EWh3/l5+a1txTQbUJOu
uEsAoLDS32CQK7J/cHnwK84N01Afnk2Q
=oSxs
-----END PGP SIGNATURE-----

_______________________________________________
Wikitech-l mailing list
Wikitech-l at lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l



More information about the Pywikipedia-l mailing list