Revision: 8134 Author: xqt Date: 2010-04-28 06:03:43 +0000 (Wed, 28 Apr 2010)
Log Message: ----------- additional family files >= version 1.14
Added Paths: ----------- branches/rewrite/pywikibot/families/anarchopedia_family.py branches/rewrite/pywikibot/families/lyricwiki_family.py branches/rewrite/pywikibot/families/wikia_family.py
Copied: branches/rewrite/pywikibot/families/anarchopedia_family.py (from rev 8132, trunk/pywikipedia/families/anarchopedia_family.py) =================================================================== --- branches/rewrite/pywikibot/families/anarchopedia_family.py (rev 0) +++ branches/rewrite/pywikibot/families/anarchopedia_family.py 2010-04-28 06:03:43 UTC (rev 8134) @@ -0,0 +1,152 @@ +# -*- coding: utf-8 -*- +import family + +# The Anarchopedia family + +class Family(family.Family): + def __init__(self): + family.Family.__init__(self) + self.name = 'anarchopedia' + + self.languages_by_size = [ + 'ar','sr','da','de','nl','el','en','fa','fi','fr','he','sr','hy','id','it','ja', + 'ko','lv','lit','no','sr','pl','pt','ro','ru','es','sq','sr','sv','tr','zh', + ] + for l in self.languages_by_size: + self.langs[l] = '%s.anarchopedia.org' % l + + self.namespaces[1]['fr'] = u'Discuter' + + self.namespaces[3]['fr'] = u'Discussion Utilisateur' + + self.namespaces[4] = { + '_default': u'Anarchopedia', + 'ar': u'أنارشوبيديا', + 'el': u'Αναρχοπαίδεια', + 'eo': u'Anarĥopedio', + 'es': u'Anarcopedia', + 'fa': u'آنارکوپديا', + 'he': u'אנרכופדיה', + 'hy': u'Անարխոպեդիա', + 'it': u'Anarcopedia', + 'ja': u'アナーキォペディア', + 'ko': u'아나코백과', + 'lv': u'Anarkopēdija', + 'pt': u'Anarcopédia', + 'ro': u'Anarhopedia', + 'ru': u'Анархопедия', + 'sq': u'Anarshipedia', + 'sr': u'Anarhopedija / Анархопедија', + 'tr': u'Anarşipedi', + 'zh': u'安那其百科', + } + self.namespaces[5] = { + '_default': u'Anarchopedia talk', + 'ar': u'نقاش أنارشوبيديا', + 'bs': u'Разговор о Anarchopedia', + 'da': u'Anarchopedia-diskussion', + 'de': u'Anarchopedia Diskussion', + 'el': u'Αναρχοπαίδεια συζήτηση', + 'es': u'Anarcopedia Discusión', + 'fa': u'بحث آنارکوپديا', + 'fi': u'Keskustelu Anarchopediasta', + 'fr': u'Discussion Anarchopedia', + 'he': u'שיחת אנרכופדיה', + 'hy': u'Անարխոպեդիայի քննարկում', + 'id': u'Pembicaraan Anarchopedia', + 'it': u'Discussioni Anarcopedia', + 'ja': u'アナーキォペディア‐ノート', + 'ko': u'아나코백과토론', + 'lv': u'Anarkopēdija diskusija', + 'nl': u'Overleg Anarchopedia', + 'no': u'Anarchopedia-diskusjon', + 'or': u'Anarchopedia-diskusjon', + 'pl': u'Dyskusja Anarchopedia', + 'pt': u'Anarcopédia Discussão', + 'ro': u'Discuţie Anarhopedia', + 'ru': u'Обсуждение Анархопедии', + 'sh': u'Разговор о Anarhopedija / Анархопедија', + 'sq': u'Anarshipedia diskutim', + 'sr': u'Разговор о Anarhopedija / Анархопедија', + 'sv': u'Anarchopediadiskussion', + 'tr': u'Anarşipedi tartışma', + 'zh': u'安那其百科 talk', + } + + self.namespaces[6]['tr'] = u'Resim' + self.namespaces[6]['da'] = u'Billede' + self.namespaces[6]['sq'] = u'Figura' + + self.namespaces[7]['da'] = u'Billeddiskussion' + self.namespaces[7]['fr'] = u'Discussion Fichier' + self.namespaces[7]['sq'] = u'Figura diskutim' + self.namespaces[7]['tr'] = u'Resim tartışma' + + + self.namespaces[11]['fr'] = u'Discussion Modèle' + + self.namespaces[13]['fr'] = u'Discussion Aide' + + self.namespaces[14]['sq'] = u'Kategori' + + self.namespaces[15]['fr'] = u'Discussion Catégorie' + self.namespaces[15]['sq'] = u'Kategori Diskutim' + + self.namespaces[100] = {'en':u'Focus'} + + self.namespaces[101] = {'en':u'Focus talk'} + + + self.nocapitalize = self.langs.keys() + + self.obsolete = { + 'ara': 'ar', + 'bos': 'bs', + 'zho': 'zh', + 'dan': 'da', + 'deu': 'de', + 'dut': 'nl', + 'ell': 'el', + 'eng': 'en', + 'epo': 'eo', + 'fas': 'fa', + 'fra': 'fr', + 'fin': 'fi', + 'heb': 'he', + 'ind': 'id', + 'ita': 'it', + 'jpn': 'ja', + 'lit': 'lt', + 'lav': 'lv', + 'nor': 'no', + 'nsh': 'sh', + 'pol': 'pl', + 'por': 'pt', + 'rum': 'ro', + 'rus': 'ru', + 'spa': 'es', + 'srp': 'sr', + 'srp': 'hr', + 'swe': 'sv', + 'kor': 'ko', + 'sqi': 'sq', + 'hye': 'hy', + 'tur': 'tr', + + 'ell': 'gre', + 'srp': 'hrv', + 'nno': None, + 'nob': None, + } + + def version(self, code): + return "1.14alpha" + + def scriptpath(self, code): + return '' + + def path(self, code): + return '/index.php' + + def apipath(self, code): + return '/api.php'
Copied: branches/rewrite/pywikibot/families/lyricwiki_family.py (from rev 8132, trunk/pywikipedia/families/lyricwiki_family.py) =================================================================== --- branches/rewrite/pywikibot/families/lyricwiki_family.py (rev 0) +++ branches/rewrite/pywikibot/families/lyricwiki_family.py 2010-04-28 06:03:43 UTC (rev 8134) @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- + +import family + +# The LyricWiki family + +# user_config.py: +# usernames['lyricwiki']['en'] = 'user' + +class Family(family.Family): + def __init__(self): + family.Family.__init__(self) + self.name = 'lyricwiki' + self.langs = { + 'en': 'lyrics.wikia.com', + } + + self.namespaces[4] = { + '_default': [u'LyricWiki', self.namespaces[4]['_default']], + } + self.namespaces[5] = { + '_default': [u'LyricWiki talk', self.namespaces[5]['_default']], + } + self.namespaces[110] = { '_default': u'Forum', } + self.namespaces[111] = { '_default': u'Forum talk', } + self.namespaces[112] = { '_default': u'Gracenote', } + self.namespaces[113] = { '_default': u'Gracenote talk', } + self.namespaces[400] = { '_default': u'Video', } + self.namespaces[401] = { '_default': u'Video talk', } + self.namespaces[500] = { '_default': u'User blog', } + self.namespaces[501] = { '_default': u'User blog comment', } + self.namespaces[502] = { '_default': u'Blog', } + self.namespaces[503] = { '_default': u'Blog talk', } + + def version(self, code): + return "1.15.1" + + def scriptpath(self, code): + return '' + + def apipath(self, code): + return '/api.php' \ No newline at end of file
Copied: branches/rewrite/pywikibot/families/wikia_family.py (from rev 8132, trunk/pywikipedia/families/wikia_family.py) =================================================================== --- branches/rewrite/pywikibot/families/wikia_family.py (rev 0) +++ branches/rewrite/pywikibot/families/wikia_family.py 2010-04-28 06:03:43 UTC (rev 8134) @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- + +__version__ = '$Id$' + +import family + +# The Wikia Search family +# user-config.py: usernames['wikia']['wikia'] = 'User name' + +class Family(family.Family): + def __init__(self): + family.Family.__init__(self) + self.name = u'wikia' + + self.langs = { + u'wikia': None, + } + + self.namespaces[4] = { + '_default': [u'search', self.namespaces[4]['_default']], + } + self.namespaces[5] = { + '_default': [u'search talk', self.namespaces[5]['_default']], + } + self.namespaces[100] = { + '_default': u'Forum', + } + self.namespaces[101] = { + '_default': u'Forum talk', + } + self.namespaces[112] = { + '_default': u'Mini', + } + self.namespaces[113] = { + '_default': u'Mini talk', + } + + def hostname(self, code): + return u'www.wikia.com' + + def version(self, code): + return "1.15.1" + + def scriptpath(self, code): + return '' + + def apipath(self, code): + return '/api.php'
pywikipedia-svn@lists.wikimedia.org