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_implementat... self.cross_allowed = ['es', 'ru', ] + + def shared_data_repository(self, code, transcluded=False): + return ('wikidata', 'wikidata')
pywikibot-commits@lists.wikimedia.org