http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11733
Revision: 11733 Author: xqt Date: 2013-07-09 12:14:07 +0000 (Tue, 09 Jul 2013) Log Message: ----------- ignore section titles beeing processed, re-add dictionary unless we have redesigned the whole bot ... in progress
Modified Paths: -------------- branches/rewrite/scripts/featured.py
Modified: branches/rewrite/scripts/featured.py =================================================================== --- branches/rewrite/scripts/featured.py 2013-07-09 12:10:36 UTC (rev 11732) +++ branches/rewrite/scripts/featured.py 2013-07-09 12:14:07 UTC (rev 11733) @@ -140,6 +140,134 @@
featured_name = { 'wikidata': (DATA, u'Q4387444'), + 'af': (BACK, u"Voorbladster"), + #'af': (CAT, u"Voorbladartikels"), + 'als': (CAT, u"Wikipedia:Bsunders glungener Artikel"), + 'am': (CAT, u"Wikipedia:Featured article"), + 'an': (CAT, u"Articlos destacatos"), + 'ang': (CAT, u"Fulgōd ȝeƿritu"), + 'ar': (CAT, u"مقالات مختارة"), + 'ast': (CAT, u"Uiquipedia:Artículos destacaos"), + 'az': (BACK, u"Seçilmiş məqalə"), + 'bar': (CAT, u"Berig"), + 'bat-smg': (CAT, u"Vikipedėjės pavīzdėnē straipsnē"), + 'be-x-old': (CAT, u"Вікіпэдыя:Абраныя артыкулы"), + 'bg': (CAT, u"Избрани статии"), + 'bn': (BACK, u"নির্বাচিত নিবন্ধ"), + 'br': (CAT, u"Pennadoù eus an dibab"), + 'bs': (CAT, u"Odabrani članci"), + 'ca': (CAT, u"Llista d'articles de qualitat"), + 'ceb': (CAT, u"Mga napiling artikulo"), + 'cs': (CAT, u"Wikipedie:Nejlepší články"), + 'cy': (BACK, u"Erthygl ddethol"), + 'da': (CAT, u"Fremragende artikler"), + 'de': (CAT, u"Wikipedia:Exzellent"), + 'dv': (BACK, u"Featured article"), + 'el': (BACK, u"Αξιόλογο άρθρο"), + 'en': (CAT, u"Featured articles"), + 'eo': (CAT, u"Elstaraj artikoloj"), + 'es': (BACK, u"Artículo destacado"), + #'es': (CAT, u"Wikipedia:Artículos destacados"), + 'et': (CAT, u"Eeskujulikud artiklid"), + 'eu': (CAT, u"Nabarmendutako artikuluak"), + 'ext': (BACK, u"Destacau"), + 'fa': (BACK, u"مقاله برگزیده"), + #'fa': (CAT, u"مقالههای برگزیده"), + 'fi': (CAT, u"Suositellut artikkelit"), + #'fi': (CAT, u"Suositellut sivut"), + 'fo': (CAT, u"Mánaðargrein"), + 'fr': (CAT, u"Article de qualité"), + 'frr': (BACK, u"Exzellent"), + 'gl': (CAT, u"Wikipedia:Artigos de calidade"), + 'gv': (CAT, u"Artyn reiht"), + 'he': (CAT, u"ערכים מומלצים"), + 'hi': (BACK, u"निर्वाचित लेख"), + 'hr': (CAT, u"Izabrani članci"), + 'hsb': (CAT, u"Ekscelentny"), + 'hu': (CAT, u"Kiemelt cikkek"), + 'hy': (BACK, u"Ընտրված հոդված"), + #'hy': (CAT, u"Վիքիպեդիա:Ցուցափեղկ"), + 'ia': (CAT, u"Wikipedia:Articulos eminente"), + 'id': (BACK, u"Featured article"), + 'is': (CAT, u"Wikipedia:Úrvalsgreinar"), + 'it': (CAT, u"Voci in vetrina"), + 'ja': (BACK, u"Featured article"), + #'ja': (CAT, u"秀逸な記事"), + 'ka': (CAT, u"რჩეული სტატიები"), + 'kk': (CAT, u"Уикипедия:Таңдаулы мақалалар"), + 'kl': (CAT, u"Anbefalet"), + 'km': (BACK, u"អត្ថបទពិសេស"), + 'kn': (BACK, u"ವಿಶೇಷ ಲೇಖನ"), + 'ko': (CAT, u"알찬 글"), + 'krc': (CAT, u"Википедия:Сайланнган статьяла"), + 'kv': (CAT, u"Википедия:Бур гижӧдъяс"), + 'la': (CAT, u"Paginae mensis"), + 'lad': (CAT, u"Artikolos valutosos"), + 'li': (CAT, u"Wikipedia:Sjterartikele"), + 'lmo': (CAT, u"Articol ben faa"), + 'lo': (CAT, u"ບົດຄວາມດີເດັ່ນ"), + 'lt': (CAT, u"Vikipedijos pavyzdiniai straipsniai"), + 'lv': (CAT, u"Vērtīgi raksti"), + 'mk': (BACK, u"Избрана"), + #'mk': (CAT, u"Избрани статии"), + 'ml': (BACK, u"Featured"), + #'ml': (CAT, u"തിരഞ്ഞെടുത്ത ലേഖനങ്ങൾ"), + 'mt': (CAT, u"Artikli fil-vetrina"), + 'mr': (CAT, u"मुखपृष्ठ सदर लेख"), + 'ms': (BACK, u"Rencana pilihan"), + 'nah': (BACK, u"Featured article"), + 'nds-nl': (BACK, u"Etelazie"), + 'nl': (CAT, u"Wikipedia:Etalage-artikelen"), + 'nn': (BACK, u"God artikkel"), + #'nn': (CAT, u"Wikipedia/Gode artiklar"), + 'no': (CAT, u"Utmerkede artikler"), + 'nv': (CAT, u"Naaltsoos nizhónígo ályaaígíí"), + 'oc': (CAT, u"Article de qualitat"), + 'pl': (CAT, u"Artykuły na medal"), + 'pt': (CAT, u"!Artigos destacados"), + 'qu': (CAT, u"Wikipidiya:Kusa qillqa"), + 'ro': (CAT, u"Articole de calitate"), + 'ru': (BACK, u"Избранная статья"), + #'ru': (CAT, u"Википедия:Избранные статьи"), + 'sco': (CAT, u"Featurt"), + 'sh': (CAT, u"Izabrani članci"), + 'simple': (CAT, u"Very good articles"), + 'sk': (BACK, u"Perfektný článok"), + #'sk': (CAT, u"Wikipédia:Najlepšie články"), + 'sl': (CAT, u"Vsi izbrani članki"), + 'sq': (BACK, u"Artikulli perfekt"), + #'sr': (CAT, u"Изабрани"), + 'sr': (CAT, u"Сјајни чланци"), + 'sv': (CAT, u"Wikipedia:Utmärkta artiklar"), + 'sw': (BACK, u"Makala_nzuri_sana"), + #'sw': (CAT, u"Makala nzuri"), + 'szl': (CAT, u"Wyrůżńůne artikle"), + 'ta': (CAT, u"சிறப்புக் கட்டுரைகள்"), + 'te': (CAT, u"విశేషవ్యాసాలు"), + 'th': (BACK, u"บทความคัดสรร"), + #'th': (CAT, u"บทความคัดสรร"), + 'tl': (BACK, u"Napiling artikulo"), + #'tl': (CAT, u"Napiling artikulo"), + 'tn': (CAT, u"Featured articles"), + 'tr': (BACK, u"Seçkin madde"), + #'tr': (CAT, u"Vikipedi seçkin maddeler"), + #'tt': (CAT, u"Сайланган мәкаләләр"), + 'tt': (CAT, u"Şäp mäqälä"), + 'udm': (CAT, u"Википедия:Быръем статьяос"), + 'uk': (CAT, u"Вибрані статті"), + 'ur': (CAT, u"منتخب مقالے"), + 'uz': (CAT, u"Vikipediya:Tanlangan maqolalar"), + 'vec': (BACK, u"Vetrina"), + 'vi': (CAT, u"Bài viết chọn lọc"), + 'vo': (CAT, u"Yegeds gudik"), + 'wa': (CAT, u"Raspepyî årtike"), + 'yi': (CAT, u"רעקאמענדירטע ארטיקלען"), + 'yo': (BACK, u"Àyọkà pàtàkì"), + #'yo': (CAT, u"Àwọn àyọkà pàtàkì"), + 'zh': (CAT, u"特色条目"), + 'zh-classical': (CAT, u"卓著"), + 'zh-yue': (BACK, u"正文"), + #'zh-yue': (CAT, u"維基百科正文"), }
good_name = { @@ -276,6 +404,11 @@ % (page.title(), oursite)) return
+ if ourpage.section(): + pywikibot.output(u"%s -> our page is a section link: %s" + % (page.title(), ourpage.title())) + return + if not ourpage.exists(): pywikibot.output(u"%s -> our page doesn't exist: %s" % (page.title(), ourpage.title()))