Source code for families.wikiversity_family

"""Family module for Wikiversity."""
#
# (C) Pywikibot team, 2007-2024
#
# Distributed under the terms of the MIT license.
#
from __future__ import annotations

from pywikibot import family
from pywikibot.tools import classproperty


# The Wikimedia family that is known as Wikiversity
[docs] class Family(family.SubdomainFamily, family.WikimediaFamily): """Family class for Wikiversity.""" name = 'wikiversity' codes = { 'ar', 'cs', 'de', 'el', 'en', 'es', 'fi', 'fr', 'hi', 'it', 'ja', 'ko', 'pt', 'ru', 'sl', 'sv', 'zh', } test_codes = ['beta'] @classproperty def code_aliases(cls): cls.code_aliases = super().code_aliases.copy() cls.code_aliases['mul'] = 'beta' return cls.code_aliases category_redirect_templates = { '_default': (), 'ar': ('تحويل تصنيف',), 'en': ('Category redirect',), } # Global bot allowed languages on # https://meta.wikimedia.org/wiki/BPI#Current_implementation # & https://meta.wikimedia.org/wiki/Special:WikiSets/2 cross_allowed = [ 'ar', 'hi', 'ja', 'ko', 'zh', ]