Revision: 8758 Author: purodha Date: 2010-12-05 18:46:44 +0000 (Sun, 05 Dec 2010) Log Message: ----------- Set some data on families that redirect their interlanguage links to multilingual family wikipedia.
Modified Paths: -------------- trunk/pywikipedia/families/README-family.txt trunk/pywikipedia/families/incubator_family.py trunk/pywikipedia/families/test_family.py trunk/pywikipedia/families/wikipedia_family.py
Modified: trunk/pywikipedia/families/README-family.txt =================================================================== --- trunk/pywikipedia/families/README-family.txt 2010-12-05 13:12:36 UTC (rev 8757) +++ trunk/pywikipedia/families/README-family.txt 2010-12-05 18:46:44 UTC (rev 8758) @@ -113,6 +113,12 @@ # family. self.interwiki_forward = None
+ # Some families, e. g. wikipedia, receive forwarded interlanguage + # links from other families, e. g. incubator, commons, or meta. + # These families can set this variable to the names of their source + # families. + self.interwiki_forwarded_from = {} + # Which language codes no longer exist and by which language code # should they be replaced. If for example the language with code xx: # has been replaced by code yy:, add {'xx':'yy'} to obsolete.
Modified: trunk/pywikipedia/families/incubator_family.py =================================================================== --- trunk/pywikipedia/families/incubator_family.py 2010-12-05 13:12:36 UTC (rev 8757) +++ trunk/pywikipedia/families/incubator_family.py 2010-12-05 18:46:44 UTC (rev 8758) @@ -28,6 +28,7 @@ self.namespaces[101] = { '_default': u'Lost talk', } + self.interwiki_forward = 'wikipedia' self.cross_projects = [ 'wikipedia', 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews', 'wikiversity', 'meta', 'mediawiki', 'test', 'commons', 'species',
Modified: trunk/pywikipedia/families/test_family.py =================================================================== --- trunk/pywikipedia/families/test_family.py 2010-12-05 13:12:36 UTC (rev 8757) +++ trunk/pywikipedia/families/test_family.py 2010-12-05 18:46:44 UTC (rev 8758) @@ -125,6 +125,7 @@ self.namespaces[133] = { '_default': u'نقاش المساعدة', } + self.interwiki_forward = 'wikipedia' self.cross_projects = [ 'wikipedia', 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews', 'wikiversity', 'meta', 'mediawiki', 'incubator', 'commons', 'species',
Modified: trunk/pywikipedia/families/wikipedia_family.py =================================================================== --- trunk/pywikipedia/families/wikipedia_family.py 2010-12-05 13:12:36 UTC (rev 8757) +++ trunk/pywikipedia/families/wikipedia_family.py 2010-12-05 18:46:44 UTC (rev 8758) @@ -886,6 +886,16 @@ 'zh-min-nan': u'Khu-pia̍t-ia̍h', }
+ # families that redirect their interlanguage links here. + self.interwiki_forwarded_from = [ + 'commons', + 'incubator', + 'meta', + 'species', + 'strategy', + 'test', + ] + # CentralAuth cross avaliable projects. self.cross_projects = [ 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews', 'wikiversity',
pywikipedia-svn@lists.wikimedia.org