jenkins-bot has submitted this change and it was merged.
Change subject: [sync] synchronize doc from core ......................................................................
[sync] synchronize doc from core
Change-Id: I83ddd2efff59f796114f824cbf3cb45f5cf9c22f --- M families/anarchopedia_family.py M families/battlestarwiki_family.py M families/commons_family.py M families/i18n_family.py M families/incubator_family.py M families/lockwiki_family.py M families/lyricwiki_family.py M families/mediawiki_family.py M families/meta_family.py M families/omegawiki_family.py M families/osm_family.py M families/outreach_family.py M families/species_family.py M families/strategy_family.py M families/vikidia_family.py M families/wikia_family.py M families/wikibooks_family.py M families/wikidata_family.py M families/wikinews_family.py M families/wikipedia_family.py M families/wikiquote_family.py M families/wikisource_family.py M families/wikitech_family.py M families/wikiversity_family.py M families/wikivoyage_family.py M families/wiktionary_family.py M families/wowwiki_family.py 27 files changed, 264 insertions(+), 104 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/families/anarchopedia_family.py b/families/anarchopedia_family.py index cbb19bb..3f2e273 100644 --- a/families/anarchopedia_family.py +++ b/families/anarchopedia_family.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +"""Family module for Anarchopedia wiki.""" + __version__ = '$Id$'
import family @@ -7,7 +9,11 @@ # The Anarchopedia family # Offline in July 2014 class Family(family.Family): + + """Family class for Anarchopedia wiki.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'anarchopedia'
@@ -145,9 +151,11 @@ }
def version(self, code): + """Return the version for this family.""" return "1.14alpha"
def scriptpath(self, code): + """Return the script path for this family.""" return ''
def nicepath(self, code): diff --git a/families/battlestarwiki_family.py b/families/battlestarwiki_family.py index 23e40ed..9fbb6d6 100644 --- a/families/battlestarwiki_family.py +++ b/families/battlestarwiki_family.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +"""Family module for Battlestar Wiki.""" + __version__ = '$Id$'
import family @@ -7,7 +9,11 @@ # The Battlestar Wiki family, a set of Battlestar wikis. # http://battlestarwiki.org/ class Family(family.Family): + + """Family class for Battlestar Wiki.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'battlestarwiki'
@@ -58,7 +64,9 @@ }
def hostname(self, code): + """Return the hostname for a site in this family.""" return '%s.battlestarwiki.org' % code
def version(self, code): + """Return the version for this family.""" return "1.16.4" diff --git a/families/commons_family.py b/families/commons_family.py index 664ad5e..415256d 100644 --- a/families/commons_family.py +++ b/families/commons_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Wikimedia Commons."""
__version__ = '$Id$'
@@ -7,7 +8,11 @@
# The Wikimedia Commons family class Family(family.WikimediaFamily): + + """Family class for Wikimedia Commons.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'commons' self.langs = { @@ -94,4 +99,5 @@ return 'commonswiki_p'
def shared_data_repository(self, code, transcluded=False): + """Return the shared data repository for this site.""" return ('wikidata', 'wikidata') diff --git a/families/i18n_family.py b/families/i18n_family.py index e8514db..64d6dd5 100644 --- a/families/i18n_family.py +++ b/families/i18n_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Translate Wiki."""
__version__ = '$Id$'
@@ -8,7 +9,10 @@ # The Wikimedia i18n family class Family(family.Family):
+ """Family class for Translate Wiki.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'i18n' self.langs = { @@ -260,4 +264,5 @@ }
def version(self, code): + """Return the version for this family.""" return "1.23alpha" diff --git a/families/incubator_family.py b/families/incubator_family.py index 511ea94..6f3d433 100644 --- a/families/incubator_family.py +++ b/families/incubator_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Incubator Wiki."""
__version__ = '$Id$'
@@ -7,7 +8,11 @@
# The Wikimedia Incubator family class Family(family.WikimediaFamily): + + """Family class for Incubator Wiki.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'incubator' self.langs = { diff --git a/families/lockwiki_family.py b/families/lockwiki_family.py index fac9e2f..b594116 100644 --- a/families/lockwiki_family.py +++ b/families/lockwiki_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Lock Wiki."""
__version__ = '$Id$'
@@ -7,7 +8,11 @@
# The locksmithwiki family class Family(family.Family): + + """Family class for Lock Wiki.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'lockwiki' self.langs = { @@ -23,10 +28,13 @@ }
def scriptpath(self, code): + """Return the script path for this family.""" return '/lockwiki'
def version(self, code): + """Return the version for this family.""" return '1.15.1'
def nicepath(self, code): + """Return the nice article path for this family.""" return "%s/" % self.path(self, code) diff --git a/families/lyricwiki_family.py b/families/lyricwiki_family.py index 95fb8c0..05ce4b7 100644 --- a/families/lyricwiki_family.py +++ b/families/lyricwiki_family.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +"""Family module for LyricWiki.""" + __version__ = '$Id$'
import family @@ -9,7 +11,11 @@ # user_config.py: # usernames['lyricwiki']['en'] = 'user' class Family(family.Family): + + """Family class for LyricWiki.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'lyricwiki' self.langs = { @@ -34,9 +40,11 @@ self.namespaces[503] = { '_default': u'Blog talk', }
def version(self, code): + """Return the version for this family.""" return '1.19.18'
def scriptpath(self, code): + """Return the script path for this family.""" return ''
def nicepath(self, code): diff --git a/families/mediawiki_family.py b/families/mediawiki_family.py index 6a28815..6a88907 100644 --- a/families/mediawiki_family.py +++ b/families/mediawiki_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for MediaWiki wiki."""
__version__ = '$Id$'
@@ -8,7 +9,11 @@ # The MediaWiki family # user-config.py: usernames['mediawiki']['mediawiki'] = 'User name' class Family(family.WikimediaFamily): + + """Family module for MediaWiki wiki.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'mediawiki'
diff --git a/families/meta_family.py b/families/meta_family.py index 4aaade1..342f0b3 100644 --- a/families/meta_family.py +++ b/families/meta_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Meta Wiki."""
__version__ = '$Id$'
@@ -7,7 +8,11 @@
# The meta wikimedia family class Family(family.WikimediaFamily): + + """Family class for Meta Wiki.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'meta' self.langs = { diff --git a/families/omegawiki_family.py b/families/omegawiki_family.py index 44ba0e6..dc44a48 100644 --- a/families/omegawiki_family.py +++ b/families/omegawiki_family.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- - +"""Family module for Omega Wiki.""" __version__ = '$Id$'
import family @@ -8,7 +8,10 @@ # Omegawiki, the Ultimate online dictionary class Family(family.Family):
+ """Family class for Omega Wiki.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'omegawiki' self.langs['omegawiki'] = 'www.omegawiki.org' @@ -68,12 +71,15 @@ self.nocapitalize = self.langs.keys()
def hostname(self, code): + """Return the hostname for this family.""" return 'www.omegawiki.org'
def version(self, code): + """Return the version for this family.""" return "1.22.6"
def scriptpath(self, code): + """Return the script path for this family.""" return ''
def nicepath(self, code): diff --git a/families/osm_family.py b/families/osm_family.py index ca7f7e0..0cfd773 100644 --- a/families/osm_family.py +++ b/families/osm_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for OpenStreetMap wiki."""
__version__ = '$Id$'
@@ -8,7 +9,10 @@ # The project wiki of OpenStreetMap (OSM). class Family(family.Family):
+ """Family class for OpenStreetMap wiki.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'osm' self.langs = { @@ -71,4 +75,5 @@ }
def version(self, code): + """Return the version for this family.""" return "1.22.7" diff --git a/families/outreach_family.py b/families/outreach_family.py index c9785a4..1760355 100644 --- a/families/outreach_family.py +++ b/families/outreach_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Wikimedia outreach wiki."""
__version__ = '$Id$'
@@ -7,7 +8,11 @@
# Outreach wiki custom family class Family(family.WikimediaFamily): + + """Family class for Wikimedia outreach wiki.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = u'outreach' self.langs = { diff --git a/families/species_family.py b/families/species_family.py index 86abbe1..2b31aff 100644 --- a/families/species_family.py +++ b/families/species_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Wikimedia species wiki."""
__version__ = '$Id$'
@@ -7,7 +8,11 @@
# The wikispecies family class Family(family.WikimediaFamily): + + """Family class for Wikimedia species wiki.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'species' self.langs = { diff --git a/families/strategy_family.py b/families/strategy_family.py index adb3574..f70341c 100644 --- a/families/strategy_family.py +++ b/families/strategy_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Wikimedia Strategy Wiki."""
__version__ = '$Id$'
@@ -7,7 +8,11 @@
# The Wikimedia Strategy family class Family(family.WikimediaFamily): + + """Family class for Wikimedia Strategy Wiki.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'strategy' self.langs = { @@ -30,4 +35,5 @@ self.interwiki_forward = 'wikipedia'
def dbName(self, code): + """Return the database name for this family.""" return 'strategywiki_p' diff --git a/families/vikidia_family.py b/families/vikidia_family.py index 23ceb0c..e6d065d 100644 --- a/families/vikidia_family.py +++ b/families/vikidia_family.py @@ -1,12 +1,16 @@ # -*- coding: utf-8 -*- - +"""Family module for Vikidia.""" __version__ = '$Id$'
import family
class Family(family.Family): + + """Family class for Vikidia.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'vikidia'
@@ -105,11 +109,11 @@
# Which version of MediaWiki is used? REQUIRED def version(self, code): - # Replace with the actual version being run on your wiki + """Return the version for this family.""" return '1.23.1'
def code2encoding(self, code): - """Return the encoding for a specific language wiki""" + """Return the encoding for a specific language wiki.""" # Most wikis nowadays use UTF-8, but change this if yours uses # a different encoding return 'utf-8' diff --git a/families/wikia_family.py b/families/wikia_family.py index 15a9384..7b4c992 100644 --- a/families/wikia_family.py +++ b/families/wikia_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Wikia."""
__version__ = '$Id$'
@@ -8,7 +9,11 @@ # The Wikia Search family # user-config.py: usernames['wikia']['wikia'] = 'User name' class Family(family.Family): + + """Family class for Wikia.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = u'wikia'
@@ -36,10 +41,13 @@ }
def hostname(self, code): + """Return the hostname for every site in this family.""" return u'www.wikia.com'
def version(self, code): + """Return the version for this family.""" return "1.19.18"
def scriptpath(self, code): + """Return the script path for this family.""" return '' diff --git a/families/wikibooks_family.py b/families/wikibooks_family.py index bd8ddda..f5e64af 100644 --- a/families/wikibooks_family.py +++ b/families/wikibooks_family.py @@ -6,7 +6,11 @@
# The Wikimedia family that is known as Wikibooks class Family(family.WikimediaFamily): + + """Family class for Wikibooks.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wikibooks'
@@ -393,7 +397,7 @@ 'si': u'කණිෂ්ඨ විකි සාකච්ඡාව', }
- # Global bot allowed languages on http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementat... + # Global bot allowed languages on https://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementa... self.cross_allowed = [ 'af', 'ang', 'ca', 'fa', 'fy', 'it', 'nl', 'ru', 'th', 'zh', ] @@ -415,51 +419,51 @@ }
self.obsolete = { - 'aa': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Afa... - 'ak': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Aka... - 'als': None, # http://als.wikipedia.org/wiki/Wikipedia:Stammtisch/Archiv_2008-1#Afterwards.... - 'as': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ass... + 'aa': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Af... + 'ak': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ak... + 'als': None, # https://als.wikipedia.org/wiki/Wikipedia:Stammtisch/Archiv_2008-1#Afterwards... + 'as': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_As... 'ast': None, - 'ay': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Aym... - 'ba': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Bas... - 'bi': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Bis... - 'bm': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Bam... - 'bo': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Tib... - 'ch': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Cha... + 'ay': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ay... + 'ba': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ba... + 'bi': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Bi... + 'bm': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ba... + 'bo': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ti... + 'ch': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ch... 'co': None, # https://bugzilla.wikimedia.org/show_bug.cgi?id=28644 'dk': 'da', - 'ga': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Gae... - 'got': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Got... - 'gn': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Gua... - 'gu': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Guj... + 'ga': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ga... + 'got': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Go... + 'gn': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Gu... + 'gu': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Gu... 'jp': 'ja', 'kn': None, # https://bugzilla.wikimedia.org/show_bug.cgi?id=20325 - 'ks': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Kas... - 'lb': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_L%C... - 'ln': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Lin... - 'lv': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Lat... - 'mi': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Mao... + 'ks': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ka... + 'lb': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_L%... + 'ln': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Li... + 'lv': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_La... + 'mi': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ma... 'minnan': 'zh-min-nan', 'mn': None, 'my': None, - 'na': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Nau... - 'nah': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Nah... + 'na': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Na... + 'nah': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Na... 'nb': 'no', - 'nds': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Pla... - 'ps': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Pas... - 'qu': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Que... - 'rm': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Rum... - 'se': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Sam... + 'nds': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Pl... + 'ps': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Pa... + 'qu': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Qu... + 'rm': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ru... + 'se': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Sa... 'simple': 'en', # https://bugzilla.wikimedia.org/show_bug.cgi?id=20325 - 'su': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Bas...) + 'su': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ba...) 'sw': None, # https://bugzilla.wikimedia.org/show_bug.cgi?id=25170 'tk': None, 'tokipona': None, - 'ug': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Uyg... + 'ug': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Uy... 'vo': None, # https://bugzilla.wikimedia.org/show_bug.cgi?id=37413 - 'wa': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Wal... - 'xh': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Xho... - 'yo': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Yor... + 'wa': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Wa... + 'xh': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Xh... + 'yo': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Yo... 'za': None, # https://bugzilla.wikimedia.org/show_bug.cgi?id=20325 'zh-tw': 'zh', 'zh-cn': 'zh', diff --git a/families/wikidata_family.py b/families/wikidata_family.py index 64f70d5..0db371d 100644 --- a/families/wikidata_family.py +++ b/families/wikidata_family.py @@ -1,14 +1,18 @@ # -*- coding: utf-8 -*- - +"""Family module for Wikidata.""" __version__ = '$Id$'
import family
-# The wikidata family +# The Wikidata family
class Family(family.WikimediaFamily): + + """Family class for Wikidata.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wikidata' self.langs = { diff --git a/families/wikinews_family.py b/families/wikinews_family.py index 91bd3f0..49cc0d7 100644 --- a/families/wikinews_family.py +++ b/families/wikinews_family.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +"""Family module for Wikinews.""" + import family
__version__ = '$Id$' @@ -6,7 +8,11 @@
# The Wikimedia family that is known as Wikinews class Family(family.WikimediaFamily): + + """Family class for Wikinews.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wikinews'
diff --git a/families/wikipedia_family.py b/families/wikipedia_family.py index e6e4d97..cbcfbeb 100644 --- a/families/wikipedia_family.py +++ b/families/wikipedia_family.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +"""Family module for Wikipedia.""" + import family
__version__ = '$Id$' @@ -6,7 +8,11 @@
# The Wikimedia family that is known as Wikipedia, the Free Encyclopedia class Family(family.WikimediaFamily): + + """Family module for Wikipedia.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wikipedia'
@@ -1293,7 +1299,7 @@ ]
# Global bot allowed languages on - # http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementat... + # https://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementa... self.cross_allowed = [ 'ab', 'ace', 'af', 'ak', 'als', 'am', 'an', 'ang', 'ar', 'arc', 'arz', 'as', 'ast', 'av', 'ay', 'az', 'ba', 'bar', 'bat-smg', 'bcl', @@ -1394,24 +1400,24 @@ }
self.obsolete = { - 'aa': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Afa... - 'cho': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Cho... + 'aa': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Af... + 'cho': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ch... 'dk': 'da', - 'ho': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Hir... - 'hz': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Her... - 'ii': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Yi_... - 'kj': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Kwa... - 'kr': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Kan... - 'mh': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Mar... + 'ho': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Hi... + 'hz': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_He... + 'ii': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Yi... + 'kj': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Kw... + 'kr': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ka... + 'mh': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ma... 'minnan': 'zh-min-nan', - 'mo': 'ro', # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Mol... - 'mus': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Mus... + 'mo': 'ro', # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Mo... + 'mus': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Mu... 'nan': 'zh-min-nan', 'nl_nds': 'nl-nds', # miss-spelling 'nb': 'no', - 'ng': None, # (not reachable) http://meta.wikimedia.org/wiki/Inactive_wikis + 'ng': None, # (not reachable) https://meta.wikimedia.org/wiki/Inactive_wikis 'jp': 'ja', - 'ru-sib': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Sib... + 'ru-sib': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Si... 'tlh': None, 'tokipona': None, 'zh-tw': 'zh', @@ -1441,7 +1447,7 @@ 'km': { '_default': [0, 4, 12], }, - #wrong wikipedia namespace alias + # wrong wikipedia namespace alias 'mzn': { '_default': [0, 4],
@@ -1581,6 +1587,7 @@ }
def get_known_families(self, site): + """Override the family interwiki prefixes for each site.""" # In Swedish Wikipedia 's:' is part of page title not a family # prefix for 'wikisource'. if site.language() == 'sv': @@ -1598,8 +1605,7 @@ return '%swiki_p' % code
def code2encodings(self, code): - """Return a list of historical encodings for a specific language - wikipedia""" + """Return a list of historical encodings for a specific site.""" # Historic compatibility if code == 'pl': return 'utf-8', 'iso8859-2' @@ -1610,4 +1616,5 @@ return self.code2encoding(code),
def shared_data_repository(self, code, transcluded=False): + """Return the shared data repository for this site.""" return ('wikidata', 'wikidata') diff --git a/families/wikiquote_family.py b/families/wikiquote_family.py index 8741da2..44540d1 100644 --- a/families/wikiquote_family.py +++ b/families/wikiquote_family.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +"""Family module for Wikiquote.""" + import family
__version__ = '$Id$' @@ -6,7 +8,11 @@
# The Wikimedia family that is known as Wikiquote class Family(family.WikimediaFamily): + + """Family class for Wikiquote.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wikiquote'
@@ -301,39 +307,41 @@ }
self.obsolete = { - 'als': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ale... + 'als': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Al... 'ang': None, # https://bugzilla.wikimedia.org/show_bug.cgi?id=29150 'ast': None, # https://bugzilla.wikimedia.org/show_bug.cgi?id=28964 - 'bm': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Bam... + 'bm': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ba... 'co': None, - 'cr': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Neh... + 'cr': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ne... 'dk': 'da', - 'ga': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Gae... + 'ga': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ga... 'jp': 'ja', 'kk': None, # https://bugzilla.wikimedia.org/show_bug.cgi?id=20325 - 'kr': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Kan... - 'ks': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Kas... - 'kw': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ker... + 'kr': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ka... + 'ks': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ka... + 'kw': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ke... 'lb': None, 'minnan': 'zh-min-nan', - 'na': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Nau... + 'na': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Na... 'nb': 'no', - 'nds': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Low... - 'qu': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Que... - 'simple': 'en', # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Sim... - 'tk': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Tur... + 'nds': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Lo... + 'qu': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Qu... + 'simple': 'en', # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Si... + 'tk': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Tu... 'tokipona': None, - 'tt': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Tat... - 'ug': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Oyg... - 'vo': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Vol... - 'za': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Zhu... + 'tt': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ta... + 'ug': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Oy... + 'vo': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Vo... + 'za': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Zh... 'zh-tw': 'zh', 'zh-cn': 'zh' }
def code2encodings(self, code): """ - Return a list of historical encodings for a specific language wikipedia + Return a list of historical encodings for a specific language. + + @param code: site code """ # Historic compatibility if code == 'pl': @@ -341,6 +349,7 @@ if code == 'ru': return 'utf-8', 'iso8859-5' return self.code2encoding(code), - + def shared_data_repository(self, code, transcluded=False): + """Return the shared data repository for this family.""" return ('wikidata', 'wikidata') diff --git a/families/wikisource_family.py b/families/wikisource_family.py index 912e63a..725bed3 100644 --- a/families/wikisource_family.py +++ b/families/wikisource_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Wikisource.""" import family
__version__ = '$Id$' @@ -6,7 +7,11 @@
# The Wikimedia family that is known as Wikisource class Family(family.WikimediaFamily): + + """Family class for Wikisource.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wikisource'
@@ -684,9 +689,9 @@ }
self.obsolete = { - 'ang': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Old... + 'ang': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ol... 'dk': 'da', - 'ht': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Hai... + 'ht': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ha... 'jp': 'ja', 'minnan': 'zh-min-nan', 'nb': 'no', @@ -729,5 +734,7 @@ for key, values in self.authornamespaces.iteritems(): for item in values: self.crossnamespace[item].update({key: self.authornamespaces}) + def shared_data_repository(self, code, transcluded=False): + """Return the shared data repository for this site.""" return ('wikidata', 'wikidata') diff --git a/families/wikitech_family.py b/families/wikitech_family.py index f1701b9..64ce38a 100644 --- a/families/wikitech_family.py +++ b/families/wikitech_family.py @@ -1,16 +1,17 @@ # -*- coding: utf-8 -*- - +"""Family module for Wikitech.""" __version__ = '$Id$'
import family
# The Wikitech family - - class Family(family.Family):
+ """Family class for Wikitech.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wikitech' self.langs = { @@ -25,6 +26,7 @@ }
def version(self, code): + """Return the version for this family.""" return '1.21wmf8'
def scriptpath(self, code): diff --git a/families/wikiversity_family.py b/families/wikiversity_family.py index b01927c..8518b27 100644 --- a/families/wikiversity_family.py +++ b/families/wikiversity_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Wikiversity.""" import family
__version__ = '$Id$' @@ -6,7 +7,11 @@
# The Wikimedia family that is known as Wikiversity class Family(family.WikimediaFamily): + + """Family class for Wikiversity.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wikiversity'
diff --git a/families/wikivoyage_family.py b/families/wikivoyage_family.py index 12e529c..51378c6 100644 --- a/families/wikivoyage_family.py +++ b/families/wikivoyage_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Wikivoyage."""
__version__ = '$Id$'
@@ -8,7 +9,11 @@
class Family(family.WikimediaFamily): + + """Family class for Wikivoyage.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wikivoyage' self.languages_by_size = [ @@ -128,4 +133,5 @@ self.cross_allowed = ['es', 'ru', ]
def shared_data_repository(self, code, transcluded=False): + """Return the shared data repository for this site.""" return ('wikidata', 'wikidata') diff --git a/families/wiktionary_family.py b/families/wiktionary_family.py index c1f91c0..1735b03 100644 --- a/families/wiktionary_family.py +++ b/families/wiktionary_family.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +"""Family module for Wiktionary.""" + import family
__version__ = '$Id$' @@ -6,7 +8,11 @@
# The Wikimedia family that is known as Wiktionary class Family(family.WikimediaFamily): + + """Family class for Wiktionary.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wiktionary'
@@ -587,7 +593,7 @@ }
# Global bot allowed languages on - # http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementat... + # https://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementa... self.cross_allowed = [ 'am', 'an', 'ang', 'ast', 'ay', 'az', 'be', 'bg', 'bn', 'br', 'bs', 'ca', 'chr', 'co', 'cy', 'da', 'dv', 'eo', 'es', 'et', 'eu', 'fa', @@ -644,38 +650,38 @@ }
self.obsolete = { - 'aa': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Afa... - 'ab': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Abk... - 'ak': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Aka... - 'als': None, # http://als.wikipedia.org/wiki/Wikipedia:Stammtisch/Archiv_2008-1#Afterwards.... - 'as': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ass... - 'av': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ava... - 'ba': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Bas... - 'bh': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Bih... - 'bi': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Bis... - 'bm': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Bam... - 'bo': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Tib... - 'ch': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Cha... - 'cr': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Neh... + 'aa': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Af... + 'ab': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ab... + 'ak': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ak... + 'als': None, # https://als.wikipedia.org/wiki/Wikipedia:Stammtisch/Archiv_2008-1#Afterwards... + 'as': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_As... + 'av': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Av... + 'ba': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ba... + 'bh': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Bi... + 'bi': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Bi... + 'bm': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ba... + 'bo': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ti... + 'ch': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ch... + 'cr': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ne... 'dk': 'da', 'dz': None, - 'ik': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Inu... + 'ik': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_In... 'jp': 'ja', - 'mh': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Mar... - 'mo': 'ro', # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Mol... + 'mh': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ma... + 'mo': 'ro', # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Mo... 'minnan': 'zh-min-nan', 'nb': 'no', - 'pi': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Pal... - 'rm': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Rha... - 'rn': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Kir... - 'sc': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Sar... - 'sn': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Sho... - 'to': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ton... - 'tlh': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Kli... - 'tw': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Twi... + 'pi': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Pa... + 'rm': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Rh... + 'rn': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Ki... + 'sc': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Sa... + 'sn': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Sh... + 'to': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_To... + 'tlh': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Kl... + 'tw': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Tw... 'tokipona': None, - 'xh': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Xho... - 'yo': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Yor... + 'xh': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Xh... + 'yo': None, # https://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Yo... 'zh-tw': 'zh', 'zh-cn': 'zh' } diff --git a/families/wowwiki_family.py b/families/wowwiki_family.py index 4d23c40..8e2c8c6 100644 --- a/families/wowwiki_family.py +++ b/families/wowwiki_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for WOW Wiki."""
__version__ = '$Id$'
@@ -6,7 +7,11 @@
class Family(family.Family): + + """Family class for WOW Wiki.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'wowwiki'
@@ -349,7 +354,9 @@ return 'http'
def scriptpath(self, code): + """Return the script path for this family.""" return ''
def version(self, code): + """Return the version for this family.""" return '1.19.18'
pywikibot-commits@lists.wikimedia.org