Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/332/
Reported by: pathoschild
Created on: 2013-02-23 02:45:38
Subject: Let bots use canonical namespaces
Original description:
Let bots use canonical namespaces instead of translations from the family files. This is useful for crosswiki bots, where invalid namespace names may not be detected by the operator \(most recently \[1\]\[2\]\).
The attached patch implements this by adding an optional constructor argument to Page. For example, the current behaviour is unchanged:
ns = wikipedia.Page\(site, title\).namespaceName\(\) \# Utilisateur:Pathoschild
But a constructor argument enables canonical namespaces:
ns = wikipedia.Page\(site, title, translateNamespace=False\).namespaceName\(\) \# User:Pathoschild
\[1\] http://meta.wikimedia.org/wiki/User\_talk:Pathoschild?oldid=5269904\#Probl.C3.A8me\_avec\_ton\_bot\_sur\_Wikinews\_portugais
\[2\] http://meta.wikimedia.org/wiki/User\_talk:Pathoschild?oldid=5269904\#Polish\_Wikivoyage\_user\_js\_files
Version: compat-(1.0)
Severity: enhancement
See Also:
https://sourceforge.net/p/pywikipediabot/feature-requests/332