old_contents: # -*- coding: utf-8  -*-
  from pywikibot import family
  
  __version__ = '$Id$'
  
  # The Wikimedia family that is known as Wikinews
  
  class Family(family.Family):
      def __init__(self):
          family.Family.__init__(self)
          self.name = 'wikinews'
  
          self.languages_by_size = [
              'sr', 'en', 'pl', 'de', 'fr', 'it', 'pt', 'es', 'zh', 'ja', 'ko',
              'sv', 'ru', 'fi', 'he', 'cs', 'bg', 'ro', 'ta', 'ar', 'sd', 'hu',
              'no', 'uk', 'ca', 'tr', 'bs', 'th',
          ]
  
          for lang in self.languages_by_size:
              self.langs[lang] = '%s.wikinews.org' % lang
  
          self.obsolete = {
              'jp': 'ja',
              'nb': 'no',
              'nl': None, # https://bugzilla.wikimedia.org/show_bug.cgi?id=20325
              'zh-tw': 'zh',
              'zh-cn': 'zh'
          }
  
          # Which languages have a special order for putting interlanguage links,
          # and what order is it? If a language is not in interwiki_putfirst,
          # alphabetical order on language code is used. For languages that are in
          # interwiki_putfirst, interwiki_putfirst is checked first, and
          # languages are put in the order given there. All other languages are put
          # after those, in code-alphabetical order.
          self.interwiki_putfirst = {
              'en': self.alphabetic,
              'fi': self.alphabetic,
              'fr': self.alphabetic,
              'he': ['en'],
              'pl': self.alphabetic,
          }
  
          # Global bot allowed languages on http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementation
          self.cross_allowed = ['cs', 'hu',]
          # CentralAuth cross avaliable projects.
          self.cross_projects = [
              'wikipedia', 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikiversity', 
              'meta', 'mediawiki', 'test', 'incubator', 'commons', 'species'
          ]
  
      def code2encoding(self, code):
          return 'utf-8'
  
      def version(self, code):
          return '1.16wmf4'
  
      def shared_image_repository(self, code):
          return ('commons', 'commons')
  
new_contents: # -*- coding: utf-8  -*-
  from pywikibot import family
  
  __version__ = '$Id$'
  
  # The Wikimedia family that is known as Wikinews
  
  class Family(family.Family):
      def __init__(self):
          family.Family.__init__(self)
          self.name = 'wikinews'
  
          self.languages_by_size = [
              'sr', 'en', 'pl', 'de', 'fr', 'it', 'pt', 'es', 'zh', 'ja', 'ko',
              'sv', 'ru', 'fi', 'he', 'cs', 'bg', 'ro', 'ta', 'ar', 'sd', 'hu',
              'no', 'uk', 'ca', 'tr', 'bs', 'th',
          ]
  
          for lang in self.languages_by_size:
              self.langs[lang] = '%s.wikinews.org' % lang
  
          self.obsolete = {
              'jp': 'ja',
              'nb': 'no',
              'nl': None, # https://bugzilla.wikimedia.org/show_bug.cgi?id=20325
              'zh-tw': 'zh',
              'zh-cn': 'zh'
          }
  
          # Which languages have a special order for putting interlanguage links,
          # and what order is it? If a language is not in interwiki_putfirst,
          # alphabetical order on language code is used. For languages that are in
          # interwiki_putfirst, interwiki_putfirst is checked first, and
          # languages are put in the order given there. All other languages are put
          # after those, in code-alphabetical order.
          self.interwiki_putfirst = {
              'en': self.alphabetic,
              'fi': self.alphabetic,
              'fr': self.alphabetic,
              'he': ['en'],
              'hu': ['en'],
              'pl': self.alphabetic,
          }
  
          # Global bot allowed languages on http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementation
          self.cross_allowed = ['cs', 'hu',]
          # CentralAuth cross avaliable projects.
          self.cross_projects = [
              'wikipedia', 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikiversity', 
              'meta', 'mediawiki', 'test', 'incubator', 'commons', 'species'
          ]
  
      def code2encoding(self, code):
          return 'utf-8'
  
      def version(self, code):
          return '1.16wmf4'
  
      def shared_image_repository(self, code):
          return ('commons', 'commons')
  
subject: Update from trunk r8443 (iw-sorting at hu-wikinews)