old_contents: # -*- coding: utf-8  -*-
  
  __version__ = '$Id$'
  
  from pywikibot import family
  
  # The wikidata family
  
  
  class Family(family.WikimediaFamily):
      def __init__(self):
          super(Family, self).__init__()
          self.name = 'wikidata'
          self.langs = {
              'wikidata': 'www.wikidata.org',
              'repo': 'wikidata-test-repo.wikimedia.de',
              'client': 'wikidata-test-client.wikimedia.de',
              'test': 'test.wikidata.org',
          }
  
      def scriptpath(self, code):
          if code == 'client':
              return ''
          return super(Family, self).scriptpath(code)
  
      def shared_data_repository(self, code, transcluded=False):
          """Always return a repository tupe. This enables testing whether
          the site opject is the repository itself, see Site.is_data_repository()
  
          """
          if transcluded:
              return (None, None)
          else:
              if code == 'wikidata':
                  return ('wikidata', 'wikidata')
              elif code == 'test':
                  return ('test', 'wikidata')
              else:
                  return ('repo', 'wikidata')
  
      def globes(self, code):
          """Supported globes for Coordinate datatype"""
          return {
              'earth': 'http://www.wikidata.org/entity/Q2',
              'mars': 'http://www.wikidata.org/entity/Q111',
              'mercury': 'http://www.wikidata.org/entity/Q308',
              'mimas': 'http://www.wikidata.org/entity/Q15034',
              'moon': 'http://www.wikidata.org/entity/Q405',
              'venus': 'http://www.wikidata.org/entity/Q313',
          }
  
new_contents: # -*- coding: utf-8  -*-
  
  __version__ = '$Id$'
  
  from pywikibot import family
  
  # The wikidata family
  
  
  class Family(family.WikimediaFamily):
      def __init__(self):
          super(Family, self).__init__()
          self.name = 'wikidata'
          self.langs = {
              'wikidata': 'www.wikidata.org',
              'client': 'wikidata-test-client.wikimedia.de',
              'test': 'test.wikidata.org',
          }
  
      def scriptpath(self, code):
          if code == 'client':
              return ''
          return super(Family, self).scriptpath(code)
  
      def shared_data_repository(self, code, transcluded=False):
          """Always return a repository tupe. This enables testing whether
          the site opject is the repository itself, see Site.is_data_repository()
  
          """
          if transcluded:
              return (None, None)
          else:
              if code == 'wikidata':
                  return ('wikidata', 'wikidata')
              elif code == 'test':
                  return ('test', 'wikidata')
              else:
                  return (None, None)
  
      def globes(self, code):
          """Supported globes for Coordinate datatype"""
          return {
              'earth': 'http://www.wikidata.org/entity/Q2',
              'mars': 'http://www.wikidata.org/entity/Q111',
              'mercury': 'http://www.wikidata.org/entity/Q308',
              'mimas': 'http://www.wikidata.org/entity/Q15034',
              'moon': 'http://www.wikidata.org/entity/Q405',
              'venus': 'http://www.wikidata.org/entity/Q313',
          }
  
subject: remove "repo" language from wikidata which is no more availlabe (update from compat)