Brion Vibber wrote:
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).
What about adding the NS_* constants to wikibits.js ?
You know, wgCanonicalNamespace == "Image" is much clearer than
wgNamespaceNumber == 6. Specially because I need to look up the values
each time...