http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11126
Revision: 11126 Author: xqt Date: 2013-02-25 12:30:01 +0000 (Mon, 25 Feb 2013) Log Message: ----------- update namespace aliases for wikidata
Modified Paths: -------------- trunk/pywikipedia/families/wikidata_family.py
Modified: trunk/pywikipedia/families/wikidata_family.py =================================================================== --- trunk/pywikipedia/families/wikidata_family.py 2013-02-25 12:17:52 UTC (rev 11125) +++ trunk/pywikipedia/families/wikidata_family.py 2013-02-25 12:30:01 UTC (rev 11126) @@ -34,23 +34,35 @@ 'client': u'Testwiki talk', 'repo': u'Testwiki talk', } + self.namespaces[102] = { + 'repo': u'Property', + } + self.namespaces[103] = { + 'repo': u'Property talk', + } + self.namespaces[104] = { + 'repo': u'Query', + } + self.namespaces[105] = { + 'repo': u'Query talk', + } self.namespaces[120] = { - '_default': u'Property', + 'wikidata': u'Property', } self.namespaces[121] = { - '_default': u'Property talk', + 'wikidata': u'Property talk', } self.namespaces[122] = { - '_default': u'Query', + 'wikidata': u'Query', } self.namespaces[123] = { - '_default': u'Query talk', + 'wikidata': u'Query talk', } self.namespaces[1198] = { - '_default': u'Translations', + 'wikidata': u'Translations', } self.namespaces[1199] = { - '_default': u'Translations talk', + 'wikidata': u'Translations talk', }
def shared_data_repository(self, code, transcluded=False):