old_contents: # -*- coding: utf-8 -*-
  """Family module for Wikimedia Commons."""
  #
  # (C) Pywikibot team, 2005-2018
  #
  # Distributed under the terms of the MIT license.
  #
  from __future__ import absolute_import, division, unicode_literals
  
  from pywikibot import family
  
  
  # The Wikimedia Commons family
  class Family(family.WikimediaFamily):
  
      """Family class for Wikimedia Commons."""
  
      name = 'commons'
  
      langs = {
          'commons': 'commons.wikimedia.org',
          'beta': 'commons.wikimedia.beta.wmflabs.org'
      }
  
      interwiki_forward = 'wikipedia'
  
      # Templates that indicate a category redirect
      # Redirects to these templates are automatically included
      category_redirect_templates = {
          '_default': (
              'Category redirect',
              'Synonym taxon category redirect',
              'Invalid taxon category redirect',
              'Monotypic taxon category redirect',
              'Endashcatredirect',
          ),
      }
  
      # Subpages for documentation.
      doc_subpages = {
          '_default': (('/doc', ), ['commons']),
      }
  
new_contents: # -*- coding: utf-8 -*-
  """Family module for Wikimedia Commons."""
  #
  # (C) Pywikibot team, 2005-2018
  #
  # Distributed under the terms of the MIT license.
  #
  from __future__ import absolute_import, division, unicode_literals
  
  from pywikibot import family
  
  
  # The Wikimedia Commons family
  class Family(family.WikimediaFamily):
  
      """Family class for Wikimedia Commons."""
  
      name = 'commons'
  
      langs = {
          'commons': 'commons.wikimedia.org',
          'test': 'test-commons.wikimedia.org',
          'beta': 'commons.wikimedia.beta.wmflabs.org'
      }
  
      interwiki_forward = 'wikipedia'
  
      # Templates that indicate a category redirect
      # Redirects to these templates are automatically included
      category_redirect_templates = {
          '_default': (
              'Category redirect',
              'Synonym taxon category redirect',
              'Invalid taxon category redirect',
              'Monotypic taxon category redirect',
              'Endashcatredirect',
          ),
      }
  
      # Subpages for documentation.
      doc_subpages = {
          '_default': (('/doc', ), ['commons']),
      }
  
subject: Add testcommonswiki to PWB