jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/398690 )
Change subject: [L10N] Create family file for Wikimania wikis
......................................................................
[L10N] Create family file for Wikimania wikis
Bug: T182982
Change-Id: Idefa0f9c8ca91dbe9b2f350c0db68062eab17746
---
A pywikibot/families/wikimania_family.py
M pywikibot/families/wikipedia_family.py
M pywikibot/family.py
M scripts/interwiki.py
4 files changed, 47 insertions(+), 5 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/pywikibot/families/wikimania_family.py
b/pywikibot/families/wikimania_family.py
new file mode 100644
index 0000000..f21f891
--- /dev/null
+++ b/pywikibot/families/wikimania_family.py
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+"""Family module for Wikimania wikis."""
+#
+# (C) Pywikibot team, 2017
+#
+# Distributed under the terms of the MIT license.
+#
+from __future__ import absolute_import, unicode_literals
+
+__version__ = '$Id$'
+
+from pywikibot import family
+
+
+# The Wikimania family
+class Family(family.WikimediaFamily):
+
+ """Family class for Wikimania wikis."""
+
+ name = 'wikimania'
+
+ closed_wikis = [
+ '2005', '2006', '2007', '2008', '2009',
'2010', '2011', '2012', '2013',
+ '2014', '2015', '2016', '2017'
+ ]
+
+ def __init__(self):
+ """Constructor."""
+ super(Family, self).__init__()
+
+ self.langs = {
+ '2018': 'wikimania2018.wikimedia.org'
+ }
+
+ self.interwiki_forward = 'wikipedia'
diff --git a/pywikibot/families/wikipedia_family.py
b/pywikibot/families/wikipedia_family.py
index 04d913b..2c0394b 100644
--- a/pywikibot/families/wikipedia_family.py
+++ b/pywikibot/families/wikipedia_family.py
@@ -22,10 +22,7 @@
closed_wikis = [
# See
https://noc.wikimedia.org/conf/highlight.php?file=closed.dblist
'aa', 'advisory', 'cho', 'ho', 'hz',
'ii', 'kj', 'kr', 'mh', 'mo',
- 'mus', 'ng', 'quality', 'strategy',
'ten', 'usability',
- 'wikimania2005', 'wikimania2006', 'wikimania2007',
'wikimania2008',
- 'wikimania2009', 'wikimania2010', 'wikimania2011',
'wikimania2012',
- 'wikimania2013', 'wikimania2014', 'wikimania2015',
+ 'mus', 'ng', 'quality', 'strategy',
'ten', 'usability'
]
removed_wikis = [
@@ -123,6 +120,7 @@
'species',
'strategy',
'test',
+ 'wikimania'
]
# Global bot allowed languages on
diff --git a/pywikibot/family.py b/pywikibot/family.py
index 12e706f..59be0f8 100644
--- a/pywikibot/family.py
+++ b/pywikibot/family.py
@@ -687,6 +687,14 @@
'wm2008': 'wm2008',
'wm2009': 'wm2009',
'wm2010': 'wm2010',
+ 'wm2011': 'wm2011',
+ 'wm2012': 'wm2012',
+ 'wm2013': 'wm2013',
+ 'wm2014': 'wm2014',
+ 'wm2015': 'wm2015',
+ 'wm2016': 'wm2016',
+ 'wm2017': 'wm2017',
+ 'wm2018': 'wm2018',
'wmania': 'wmania',
'wmcz': 'wmcz',
'wmf': 'wmf',
@@ -1544,7 +1552,7 @@
wikimedia_org_meta_families = [
'meta', 'outreach', 'strategy',
- 'wikimediachapter',
+ 'wikimediachapter', 'wikimania',
]
wikimedia_org_other_families = [
diff --git a/scripts/interwiki.py b/scripts/interwiki.py
index 5b90a34..b1bca2f 100755
--- a/scripts/interwiki.py
+++ b/scripts/interwiki.py
@@ -152,6 +152,7 @@
* species: Interlanguage links of the wikispecies wiki
* strategy: Links in pages on Wikimedias strategy wiki
* test: Take interwiki links from Test Wikipedia
+ * wikimania: Interwiki links of Wikimania
Languages, groups and families having the same page title
can be combined, as -hint:5,scand,sr,pt,commons:New_York
--
To view, visit
https://gerrit.wikimedia.org/r/398690
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Idefa0f9c8ca91dbe9b2f350c0db68062eab17746
Gerrit-PatchSet: 9
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: Framawiki <framawiki(a)tools.wmflabs.org>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>