Pywikibot/Mass user mailing/Wikimedia family.py

From Wikimedia Belgium
Jump to navigation Jump to search
cat pywikibot/families/wikimedia_family.py
# -*- coding: utf-8 -*-

"""Family module for Wikimedia."""

#
# (C) Pywikibot team, 2012-2020
#
# Distributed under the terms of the MIT license.
#

from __future__ import absolute_import, division, unicode_literals

from pywikibot import family


# The Wikimedia family

class Family(family.WikimediaFamily):

    """Family class for Wikimedia."""

    name = 'wikimedia'

    langs = {
        'be': 'be.wikimedia.org',
    }

    interwiki_forward = 'wikipedia'

    category_redirect_templates = {
        'wikimedia': (
            'Category redirect',
        ),
    }

    # Subpages for documentation.
    doc_subpages = {
        '_default': (('/doc', ), ['wikimedia']),
    }

Note[edit]

This configuration file does not make part of the standard Pywikibot package. You need to create it manually to access an organisation Wiki.