http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11502
Revision: 11502 Author: xqt Date: 2013-05-05 10:58:03 +0000 (Sun, 05 May 2013) Log Message: ----------- update Module namespace aliases for wikidatza
Modified Paths: -------------- trunk/pywikipedia/families/wikidata_family.py
Modified: trunk/pywikipedia/families/wikidata_family.py =================================================================== --- trunk/pywikipedia/families/wikidata_family.py 2013-05-05 10:39:31 UTC (rev 11501) +++ trunk/pywikipedia/families/wikidata_family.py 2013-05-05 10:58:03 UTC (rev 11502) @@ -19,6 +19,12 @@ # Override defaults self.namespaces[1]['repo'] = [u'Talk', u'Item talk'] self.namespaces[0]['repo'] = [u'', u'Item'] + del(self.namespaces[828]['_default']) + del(self.namespaces[829]['_default']) + self.namespaces[828]['client'] = u'Module' + self.namespaces[829]['client'] = u'Module talk' + self.namespaces[828]['wikidata'] = u'Module' + self.namespaces[829]['wikidata'] = u'Module talk'
# Most namespaces are inherited from family.Family. # Translation used on all wikis for the different namespaces.
pywikipedia-svn@lists.wikimedia.org