Source code for families.wikimania_family

"""Family module for Wikimania wikis.

.. versionadded:: 3.0
"""
#
# (C) Pywikibot team, 2017-2024
#
# Distributed under the terms of the MIT license.
#
from __future__ import annotations

from pywikibot import family
from pywikibot.tools import classproperty


# The Wikimania family
[docs] class Family(family.SubdomainFamily, family.WikimediaFamily): """Family class for Wikimania wikis. .. versionadded:: 3.0 """ name = 'wikimania' closed_wikis = [ '2005', '2006', '2007', '2008', '2009', '2010', '2011', '2012', '2013', '2014', '2015', '2016', '2017', '2018' ] codes = {'wikimania', 'team'} code_aliases = {'2019': 'wikimania'} interwiki_forward = 'wikipedia' @classproperty def langs(cls): """Property listing family languages.""" cls.langs = super().langs for lang, url in cls.langs.items(): if not url.startswith(cls.name): cls.langs[lang] = cls.name + url return cls.langs