jenkins-bot has submitted this change and it was merged.

Change subject: set Wikidata as "shared data repository" for Wikivoyage
......................................................................


set Wikidata as "shared data repository" for Wikivoyage

At the moment, only Wikipedia pages are allowed within
the ItemPage.fromPage constructor however, Wikidata
supports Wikivoyage sitelinks.

Change-Id: I16f4c2721cfe3e369a18fdb7fffd73913bfb3193
---
M pywikibot/families/wikivoyage_family.py
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/families/wikivoyage_family.py 
b/pywikibot/families/wikivoyage_family.py
index 25e9f67..49647d8 100644
--- a/pywikibot/families/wikivoyage_family.py
+++ b/pywikibot/families/wikivoyage_family.py
@@ -20,3 +20,6 @@
                            for lang in self.languages_by_size])
         # Global bot allowed languages on 
http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementation
         self.cross_allowed = ['es', 'ru', ]
+
+    def shared_data_repository(self, code, transcluded=False):
+        return ('wikidata', 'wikidata')

-- 
To view, visit https://gerrit.wikimedia.org/r/80704
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I16f4c2721cfe3e369a18fdb7fffd73913bfb3193
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to