Revision: 8709 Author: xqt Date: 2010-11-07 20:14:24 +0000 (Sun, 07 Nov 2010) Log Message: ----------- bugfix for disambig templates bug #3097996, #3086562
Modified Paths: -------------- trunk/pywikipedia/families/wikipedia_family.py
Modified: trunk/pywikipedia/families/wikipedia_family.py =================================================================== --- trunk/pywikipedia/families/wikipedia_family.py 2010-11-07 19:10:24 UTC (rev 8708) +++ trunk/pywikipedia/families/wikipedia_family.py 2010-11-07 20:14:24 UTC (rev 8709) @@ -740,10 +740,10 @@ }
self.disambiguationTemplates = { - # If no templates are given, retrieve names from the live wiki - # ([[MediaWiki:Disambiguationspage]]) + # set value to None, instead of a list, to retrieve names from + # the live wiki ([[MediaWiki:Disambiguationspage]] '_default': [u'Disambig'], - 'ang': [u'Geodis'], + 'ang': [u'Disambig', u'Geodis'], 'arc': [u'ܕ'], 'ast': [u'Dixebra'], 'av': [u'Неоднозначность'], @@ -751,71 +751,75 @@ 'az': [u'Dəqiqləşdirmə'], 'ba': [u'Күп мәғәнәлелек'], 'bcl': [u'Clarip'], - 'be': [u'Неадназначнасць'], - 'be-x-old': [u'Неадназначнасьць'], - 'bn': [u'দ্ব্যর্থতা নিরসন'], + 'be': [u'Неадназначнасць', u'Disambig'], + 'be-x-old': [u'Неадназначнасьць', u'Disambig'], + 'bn': [u'দ্ব্যর্থতা নিরসন', u'Disambig'], 'bs': [u'Čvor'], 'cdo': [u'Gì-ngiê'], - 'crh': [u'Çoq manalı'], + 'crh': [u'Çoq manalı', u'Disambig'], 'dsb': [u'Wěcejwóznamowosć'], 'ext': [u'Desambiguáncia'], 'fiu-vro': [u'Täpsüstüslehekülg'], 'fo': [u'Fleiri týdningar'], 'frp': [u'Homonimos'], - 'fur': [u'Disambiguazion'], + 'fur': [u'Disambiguazion', u'Disambig'], 'fy': [u'Tfs', u'Neibetsjuttings'], - 'ga': [u'Idirdhealú'], - 'gan': [u'扤清楚'], + 'ga': [u'Idirdhealú', u'Disambig'], + 'gan': [u'扤清楚', u'Disambig'], 'gd': [u'Soilleireachadh'], 'gv': [u'Reddaghey'], 'haw': [u'Huaʻōlelo puana like'], - 'hi': [u'बहुविकल्पी शब्द'], + 'hi': [u'बहुविकल्पी शब्द', u'Disambig',], 'hr': [u'Preusmjerenje u razdvojbu', u'Razdvojba', u'razdvojba1', u'Nova razdvojba'], - 'hsb': [u'Wjacezmyslnosć'], - 'ht': [u'Menm non'], - 'hu': [u'Egyert', u'Egyért', u'Egyért-redir'], - 'hy': [u'Երկիմաստ', u'Բազմիմաստություն', u'Բազմանշանակ'], - 'ia': [u'Disambiguation'], - 'io': [u'Homonimo'], + 'hsb': [u'Wjacezmyslnosć', u'Disambig'], + 'ht': [u'Menm non', u'Disambig'], + 'hu': [u'Egyert', u'Disambig', u'Egyért', u'Egyért-redir'], + 'hy': [u'Երկիմաստ', u'Բազմիմաստություն', u'Բազմանշանակ', u'Disambig'], + 'ia': [u'Disambiguation', u'Disambig'], + 'io': [u'Homonimo', u'Disambig'], 'kab': [u'Asefham'], 'kg': [u'Bisongidila'], - 'krc': [u'Кёб магъаналы'], - 'lb': [u'Homonymie', u'Homonymie Ofkierzungen'], + 'kn': [u'ದ್ವಂದ್ವ ನಿವಾರಣೆ'], + 'krc': [u'Кёб магъаналы', u'Disambig'], + 'lb': [u'Homonymie', u'Disambig', u'Homonymie Ofkierzungen'], 'li': [u'Verdudeliking', u'Verdudelikingpazjena', u'Vp'], 'lmo': [u'Desambiguació', u'Dezambiguasiú', u'Desambiguazion', u'Desambiguassiú', u'Desambiguació'], - 'lv': [u'Nozīmju atdalīšana'], - 'mk': [u'Појаснување', u'Geodis'], - 'mn': [u'Салаа утгатай'], - 'ms': [u'Nyahkekaburan'], + 'lv': [u'Nozīmju atdalīšana', u'Disambig'], + 'mk': [u'Појаснување', u'Disambig', u'Geodis'], + 'mn': [u'Салаа утгатай', u'Disambig'], + 'ms': [u'Nyahkekaburan', u'Disambig'], 'mzn': [u'گجگجی بایری'], 'nap': [u'Disambigua'], - 'nds': [u'Mehrdüdig Begreep'], + 'nds': [u'Mehrdüdig Begreep', 'Disambig'], 'nl': [u'Dp', u'DP', u'Dp2', u'Dpintro', u'Cognomen', u'Dp cognomen'], 'nn': [u'Fleirtyding', u'Tobokstavforkorting', u'Pekerside', - u'Peikar'], - 'no': [u'Peker', u'Etternavn', u'Tobokstavsforkortelse', - u'Trebokstavsforkortelse', u'Flertydig', u'Pekerside'], + u'Peikar', u'Disambig'], + 'no': [u'Peker', u'Etternavn', u'Disambig', + u'Tobokstavsforkortelse', u'Trebokstavsforkortelse', + u'Flertydig', u'Pekerside'], 'nov': [u'Desambig'], 'nrm': [u'Page dé frouque'], - 'oc': [u'Omonimia'], + 'oc': [u'Omonimia', u'Disambig'], 'pms': [u'Gestion dij sinònim'], - 'qu': [u"Sut'ichana qillqa", u'SJM'], + 'qu': [u"Sut'ichana qillqa", u'Disambig', u'SJM'], 'rmy': [u'Dudalipen'], - 'ro': [u'Dezambiguizare', u'Hndis', u'Dez', u'Dezamb'], + 'ro': [u'Dezambiguizare', u'Disambig', u'Hndis', u'Dez', + u'Dezamb'], 'sc': [u'Disambigua'], - 'scn': [u'Disambigua', u'Sigla2', u'Sigla3'], - 'sk': [u'Rozlišovacia stránka', u'Disambiguation'], - 'sq': [u'Kthjellim'], + 'scn': [u'Disambigua', u'Disambig', u'Sigla2', u'Sigla3'], + 'sk': [u'Disambig', u'Rozlišovacia stránka', u'Disambiguation'], + 'sq': [u'Kthjellim', u'Disambig'], 'srn': [u'Dp'], 'stq': [u'Begriepskläärenge'], 'sw': [u'Maana'], - 'tg': [u'Ибҳомзудоӣ', u'Рафъи ибҳом', u'Disambiguation'], - 'th': [u'แก้กำกวม', u'คำกำกวม'], + 'tg': [u'Ибҳомзудоӣ', u'Disambig', u'Рафъи ибҳом', + u'Disambiguation'], + 'th': [u'แก้กำกวม', u'Disambig', u'คำกำกวม'], 'to': [u'Fakaʻuhingakehe'], - 'tr': [u'Anlam ayrım', u'Anlam ayrımı', + 'tr': [u'Anlam ayrım', u'Disambig', u'Anlam ayrımı', u'Kişi adları (anlam ayrımı)', u'Yerleşim yerleri (anlam ayrımı)', u'kısaltmalar (anlam ayrımı)'], @@ -824,10 +828,10 @@ 'wo': [u'Bokktekki'], 'yi': [u'באדייטען'], 'zea': [u'dp', u'Deurverwiespagina'], - 'zh': [u'消歧义', u'消歧义页', u'消歧義', u'消歧義頁', + 'zh': [u'Disambig', u'消歧义', u'消歧义页', u'消歧義', u'消歧義頁', u'Letter disambig'], - 'zh-classical': [u'釋義', u'消歧義'], - 'zh-yue': [u'搞清楚'], + 'zh-classical': [u'Disambig', u'釋義', u'消歧義'], + 'zh-yue': [u'搞清楚', u'Disambig'], }
self.disambcatname = {