families — Family Config Files#

Families package.

families.commons_family — Commons#

Family module for Wikimedia Commons.

class families.commons_family.Family[source]#

Bases: WikimediaFamily, DefaultWikibaseFamily

Family class for Wikimedia Commons.

Changed in version 6.5: family.WikibaseFamily.interface() was changed to DataSite to enable structured data.

category_redirect_templates: dict[str, Sequence[str]] = {'_default': ('Category redirect', 'Synonym taxon category redirect', 'Invalid taxon category redirect', 'Monotypic taxon category redirect', 'Endashcatredirect')}#

A list of category redirect template names in different languages.

doc_subpages = {'_default': (('/doc',), ['commons'])}#
entity_sources(code)[source]#

Provide reopsitory site information for entity types.

The result must be structured as follows:

{<entity type>: (<family code>, <family name>)}

for example:

{‘property’: (‘test’, ‘wikidata’)}

If an empty dict is returned, all entity types are found in the current DataSite.

The result is used by DataSite.get_repo_for_entity_type

interwiki_forward: str | None = 'wikipedia'#

Some families, e. g. commons and meta, are not multilingual and forward interlanguage links to another family (wikipedia). These families can set this variable to the name of the target family.

langs: dict[str, str] = {'beta': 'commons.wikimedia.beta.wmflabs.org', 'commons': 'commons.wikimedia.org', 'test': 'test-commons.wikimedia.org'}#
name: str | None = 'commons'#

The family name

test_codes = ['test', 'beta']#

families.foundation_family — Foundation Wiki#

Family module for Foundation wiki.

Added in version 3.0.

class families.foundation_family.Family[source]#

Bases: WikimediaFamily, SingleSiteFamily

Family class for Foundation wiki.

Added in version 3.0.

domain = 'foundation.wikimedia.org'#
interwiki_forward: str | None = 'wmf'#

Some families, e. g. commons and meta, are not multilingual and forward interlanguage links to another family (wikipedia). These families can set this variable to the name of the target family.

name: str | None = 'foundation'#

The family name

families.i18n_family — Translate Wiki#

Family module for Translate Wiki.

class families.i18n_family.Family[source]#

Bases: SingleSiteFamily

Family class for Translate Wiki.

domain = 'translatewiki.net'#
name: str | None = 'i18n'#

The family name

families.incubator_family — Incubator#

Family module for Incubator Wiki.

class families.incubator_family.Family[source]#

Bases: WikimediaOrgFamily

Family class for Incubator Wiki.

interwiki_forward: str | None = 'wikipedia'#

Some families, e. g. commons and meta, are not multilingual and forward interlanguage links to another family (wikipedia). These families can set this variable to the name of the target family.

name: str | None = 'incubator'#

The family name

families.lingualibre_family — Lingua Libre#

Family module for Lingua Libre.

Added in version 6.5.

class families.lingualibre_family.Family[source]#

Bases: WikimediaFamily, WikibaseFamily

Family class for Lingua Libre.

Added in version 6.5.

interwiki_forward: str | None = 'wikipedia'#

Some families, e. g. commons and meta, are not multilingual and forward interlanguage links to another family (wikipedia). These families can set this variable to the name of the target family.

langs: dict[str, str] = {'lingualibre': 'lingualibre.org'}#
name: str | None = 'lingualibre'#

The family name

scriptpath(code)[source]#

Return the script path for this family.

Return type:

str

families.mediawiki_family — MediaWiki#

Family module for MediaWiki wiki.

class families.mediawiki_family.Family[source]#

Bases: WikimediaFamily, SingleSiteFamily

Family class for MediaWiki wiki.

domain = 'www.mediawiki.org'#
interwiki_forward: str | None = 'wikipedia'#

Some families, e. g. commons and meta, are not multilingual and forward interlanguage links to another family (wikipedia). These families can set this variable to the name of the target family.

name: str | None = 'mediawiki'#

The family name

families.meta_family — Meta#

Family module for Meta Wiki.

class families.meta_family.Family[source]#

Bases: WikimediaOrgFamily

Family class for Meta Wiki.

category_redirect_templates: dict[str, Sequence[str]] = {'meta': ('Category redirect',)}#

A list of category redirect template names in different languages.

cross_allowed: list[str] = ['meta']#

A list with the name in the cross-language flag permissions.

doc_subpages = {'_default': (('/doc',), ['meta'])}#
interwiki_forward: str | None = 'wikipedia'#

Some families, e. g. commons and meta, are not multilingual and forward interlanguage links to another family (wikipedia). These families can set this variable to the name of the target family.

name: str | None = 'meta'#

The family name

families.osm_family — OpenStreetMap#

Family module for OpenStreetMap wiki.

class families.osm_family.Family[source]#

Bases: SingleSiteFamily

Family class for OpenStreetMap wiki.

category_redirect_templates: dict[str, Sequence[str]] = {'en': ('Category redirect',)}#

A list of category redirect template names in different languages.

code = 'en'#
disambcatname: dict[str, str] = {'en': 'Disambiguation'}#

A dict with the name of the category containing disambiguation pages for the various languages. Only one category per language, and without the namespace, so add things like:

‘en’: “Disambiguation”

disambiguationTemplates: dict[str, Sequence[str]] = {'en': ('Disambig',)}#

A list of disambiguation template names in different languages.

doc_subpages = {'en': ('/doc',)}#
domain = 'wiki.openstreetmap.org'#
edit_restricted_templates: dict[str, tuple[str, ...]] = {'en': ('In Bearbeitung',)}#

A dict of tuples for different sites with names of templates that indicate an edit should be avoided.

name: str | None = 'osm'#

The family name

families.outreach_family — Outreach#

Family module for Wikimedia outreach wiki.

class families.outreach_family.Family[source]#

Bases: WikimediaOrgFamily

Family class for Wikimedia outreach wiki.

interwiki_forward: str | None = 'wikipedia'#

Some families, e. g. commons and meta, are not multilingual and forward interlanguage links to another family (wikipedia). These families can set this variable to the name of the target family.

name: str | None = 'outreach'#

The family name

families.species_family — Species#

Family module for Wikimedia species wiki.

class families.species_family.Family[source]#

Bases: WikimediaOrgFamily

Family class for Wikimedia species wiki.

interwiki_forward: str | None = 'wikipedia'#

Some families, e. g. commons and meta, are not multilingual and forward interlanguage links to another family (wikipedia). These families can set this variable to the name of the target family.

name: str | None = 'species'#

The family name

families.vikidia_family — Vikidia#

Family module for Vikidia.

class families.vikidia_family.Family[source]#

Bases: SubdomainFamily

Family class for Vikidia.

codes = {'ar', 'ca', 'de', 'el', 'en', 'es', 'eu', 'fr', 'hy', 'it', 'nl', 'oc', 'pt', 'ru', 'scn'}#
domain = 'vikidia.org'#
domains#

classproperty List of domains used by Vikidia family.

langs: dict[str, str]#

classproperty Property listing family languages.

name: str | None = 'vikidia'#

The family name

scriptpath(code)[source]#

Return the script path for this family.

test_codes = ['central', 'test']#

families.wikibooks_family — Wikibooks#

Family module for Wikibooks.

class families.wikibooks_family.Family[source]#

Bases: SubdomainFamily, WikimediaFamily

Family class for Wikibooks.

category_redirect_templates: dict[str, Sequence[str]] = {'_default': (), 'ar': ('تحويل تصنيف',), 'en': ('Category redirect',), 'es': ('Categoría redirigida',), 'ro': ('Redirect categorie',), 'vi': ('Đổi hướng thể loại',)}#

A list of category redirect template names in different languages.

closed_wikis: list[str] = ['aa', 'ak', 'ang', 'as', 'ast', 'ay', 'bi', 'bm', 'bo', 'ch', 'co', 'ga', 'gn', 'got', 'gu', 'ie', 'kn', 'ks', 'lb', 'ln', 'lv', 'mi', 'mn', 'my', 'na', 'nah', 'nds', 'ps', 'qu', 'rm', 'se', 'simple', 'su', 'sw', 'tk', 'ug', 'uz', 'vo', 'wa', 'xh', 'yo', 'za', 'zh-min-nan', 'zu']#

Not open for edits; stewards can still edit.

codes = {'af', 'ar', 'az', 'ba', 'be', 'bg', 'bn', 'bs', 'ca', 'cs', 'cv', 'cy', 'da', 'de', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fr', 'fy', 'gl', 'he', 'hi', 'hr', 'hu', 'hy', 'ia', 'id', 'is', 'it', 'ja', 'ka', 'kk', 'km', 'ko', 'ku', 'ky', 'la', 'li', 'lt', 'mg', 'mk', 'ml', 'mr', 'ms', 'ne', 'nl', 'no', 'oc', 'pa', 'pl', 'pt', 'ro', 'ru', 'sa', 'shn', 'si', 'sk', 'sl', 'sq', 'sr', 'sv', 'ta', 'te', 'tg', 'th', 'tl', 'tr', 'tt', 'uk', 'ur', 'vi', 'zh'}#
cross_allowed: list[str] = ['af', 'ar', 'ba', 'ca', 'eu', 'fa', 'fy', 'gl', 'it', 'ko', 'ky', 'nl', 'ru', 'sk', 'th', 'zh']#

A list with the name in the cross-language flag permissions.

doc_subpages = {'_default': (('/doc',), ['en']), 'ar': ('/شرح', '/doc'), 'es': ('/uso', '/doc'), 'sr': ('/док',)}#
name: str | None = 'wikibooks'#

The family name

removed_wikis: list[str] = ['als', 'dk', 'tokipona']#

Completely removed sites.

families.wikidata_family — Wikidata#

Family module for Wikidata.

class families.wikidata_family.Family[source]#

Bases: WikimediaFamily, DefaultWikibaseFamily

Family class for Wikidata.

category_redirect_templates: dict[str, Sequence[str]] = {'wikidata': ('Category redirect',)}#

A list of category redirect template names in different languages.

doc_subpages = {'_default': (('/doc',), ['wikidata'])}#
interwiki_forward: str | None = 'wikipedia'#

Some families, e. g. commons and meta, are not multilingual and forward interlanguage links to another family (wikipedia). These families can set this variable to the name of the target family.

langs: dict[str, str] = {'beta': 'wikidata.beta.wmflabs.org', 'test': 'test.wikidata.org', 'wikidata': 'www.wikidata.org'}#
name: str | None = 'wikidata'#

The family name

test_codes = ['test', 'beta']#

families.wikifunctions_family — Wikifunctions#

Family module for Wikifunction.

Added in version 8.4.

class families.wikifunctions_family.Family[source]#

Bases: SingleSiteFamily, WikimediaFamily

Family class for Wikifunctions.

domain = 'www.wikifunctions.org'#
name: str | None = 'wikifunctions'#

The family name

families.wikihow_family — Wikihow#

Family module for wikiHow wiki.

Added in version 3.0.

class families.wikihow_family.Family[source]#

Bases: SubdomainFamily

Family class for wikiHow Wiki.

Added in version 3.0.

codes = {'ar', 'cs', 'de', 'en', 'es', 'fr', 'hi', 'id', 'it', 'ja', 'ko', 'nl', 'pt', 'ru', 'th', 'tr', 'vi', 'zh'}#
domain = 'wikihow.com'#
domains#

classproperty List of domains used by family wikiHow.

langs: dict[str, str]#

classproperty Property listing family languages.

name: str | None = 'wikihow'#

The family name

removed_wikis: list[str] = ['ca', 'cy', 'fa', 'he', 'pl', 'ur']#

Completely removed sites.

scriptpath(code)[source]#

Return the script path for this family.

Return type:

str

title_delimiter_and_aliases = '- '#

Added in version 7.0.

families.wikimania_family — Wikimania#

Family module for Wikimania wikis.

Added in version 3.0.

class families.wikimania_family.Family[source]#

Bases: SubdomainFamily, WikimediaFamily

Family class for Wikimania wikis.

Added in version 3.0.

closed_wikis: list[str] = ['2005', '2006', '2007', '2008', '2009', '2010', '2011', '2012', '2013', '2014', '2015', '2016', '2017', '2018']#

Not open for edits; stewards can still edit.

code_aliases: dict[str, str] = {'2019': 'wikimania'}#

Code mappings which are only an alias, and there is no ‘old’ wiki. For all except ‘nl_nds’, subdomains do exist as a redirect, but that should not be relied upon.

codes = {'team', 'wikimania'}#
interwiki_forward: str | None = 'wikipedia'#

Some families, e. g. commons and meta, are not multilingual and forward interlanguage links to another family (wikipedia). These families can set this variable to the name of the target family.

langs: dict[str, str]#

classproperty Property listing family languages.

name: str | None = 'wikimania'#

The family name

families.wikimediachapter_family — Wikimedia Chapter#

Family module for Wikimedia chapter, thematic organisation and WUG wikis.

class families.wikimediachapter_family.Family[source]#

Bases: SubdomainFamily, WikimediaFamily

Family class for WCH, WTO and WUG wikis hosted on wikimedia.org.

closed_wikis: list[str] = ['cn', 'nz', 'pa-us']#

Not open for edits; stewards can still edit.

code_aliases: dict[str, str] = {'et': 'ee'}#

Code mappings which are only an alias, and there is no ‘old’ wiki. For all except ‘nl_nds’, subdomains do exist as a redirect, but that should not be relied upon.

codes = {'ae', 'am', 'ar', 'az', 'bd', 'be', 'br', 'ca', 'co', 'dk', 'ec', 'ee', 'fi', 'ge', 'gr', 'hi', 'id', 'id-internal', 'il', 'mai', 'mk', 'mx', 'ng', 'nl', 'no', 'nyc', 'pl', 'pt', 'punjabi', 'romd', 'rs', 'ru', 'se', 'tr', 'ua', 'uk', 've', 'wb'}#
name: str | None = 'wikimediachapter'#

The family name

families.wikinews_family — Wikinews#

Family module for Wikinews.

class families.wikinews_family.Family[source]#

Bases: SubdomainFamily, WikimediaFamily

Family class for Wikinews.

category_redirect_templates: dict[str, Sequence[str]] = {'_default': (), 'ar': ('تحويل تصنيف',), 'fa': ('الگو:رده بهتر',), 'no': ('Kategoriomdirigering',), 'ro': ('Redirect categorie',), 'ru': ('Category redirect',), 'sr': ('Category redirect',), 'tr': ('Kategori yönlendirme',), 'zh': ('分类重定向',)}#

A list of category redirect template names in different languages.

closed_wikis: list[str] = ['bg', 'hu', 'sd', 'th', 'tr']#

Not open for edits; stewards can still edit.

codes = {'ar', 'bs', 'ca', 'cs', 'de', 'el', 'en', 'eo', 'es', 'fa', 'fi', 'fr', 'guw', 'he', 'it', 'ja', 'ko', 'li', 'nl', 'no', 'pl', 'pt', 'ro', 'ru', 'shn', 'sq', 'sr', 'sv', 'ta', 'uk', 'zh'}#
cross_allowed: list[str] = ['ar', 'bg', 'bs', 'ca', 'cs', 'el', 'en', 'eo', 'fa', 'fi', 'he', 'ja', 'ko', 'li', 'nl', 'no', 'pt', 'ro', 'sq', 'sr', 'sv', 'ta', 'tr', 'uk', 'zh']#

A list with the name in the cross-language flag permissions.

doc_subpages = {'_default': (('/doc',), ['en']), 'ar': ('/شرح', '/doc'), 'it': ('/man',), 'sr': ('/док',)}#
name: str | None = 'wikinews'#

The family name

families.wikipedia_family — Wikipedia#

Family module for Wikipedia.

class families.wikipedia_family.Family[source]#

Bases: SubdomainFamily, WikimediaFamily

Family module for Wikipedia.

archived_page_templates: dict[str, tuple[str, ...]] = {'ar': ('أرشيف نقاش',), 'arz': ('صفحة ارشيف',), 'cs': ('Archiv', 'Archiv Wikipedie', 'Archiv diskuse', 'Archivace start', 'Posloupnost archivů', 'Rfa-archiv-start', 'Rfc-archiv-start'), 'de': ('Archiv',)}#

A dict of tuples for different sites with names of archive templates that indicate an edit of non-archive bots should be avoided.

category_redirect_templates: dict[str, Sequence[str]] = {'_default': (), 'ar': ('تحويل تصنيف',), 'ary': ('Category redirect',), 'arz': ('تحويل تصنيف',), 'bn': ('বিষয়শ্রেণী পুনর্নির্দেশ',), 'bs': ('Category redirect',), 'ckb': ('ڕەوانەکەری پۆل',), 'cs': ('Zastaralá kategorie',), 'da': ('Kategoriomdirigering',), 'en': ('Category redirect',), 'es': ('Categoría redirigida',), 'eu': ('Kategoria birzuzendu',), 'fa': ('رده بهتر',), 'fr': ('Catégorie redirigée',), 'gv': ('Aastiurey ronney',), 'hi': ('श्रेणी अनुप्रेषित',), 'hu': ('Kat-redir',), 'id': ('Alih kategori',), 'ja': ('Category redirect',), 'ko': ('분류 넘겨주기',), 'mk': ('Премести категорија',), 'ml': ('Category redirect',), 'ms': ('Pengalihan kategori',), 'mt': ('Rindirizzament kategorija',), 'ne': ('श्रेणी अनुप्रेषण',), 'no': ('Kategoriomdirigering',), 'pt': ('Redirecionamento de categoria',), 'ro': ('Redirect categorie',), 'ru': ('Переименованная категория',), 'sco': ('Category redirect',), 'sh': ('Prekat',), 'simple': ('Category redirect',), 'sl': ('Preusmeritev kategorije',), 'sq': ('Kategori e zhvendosur',), 'sr': ('Category redirect',), 'sv': ('Kategoriomdirigering',), 'tl': ('Category redirect',), 'tr': ('Kategori yönlendirme',), 'uk': ('Categoryredirect',), 'ur': ('زمرہ رجوع مکرر',), 'vi': ('Đổi hướng thể loại',), 'yi': ('קאטעגאריע אריבערפירן',), 'zh': ('分类重定向',), 'zh-yue': ('分類彈去',)}#

A list of category redirect template names in different languages.

closed_wikis: list[str] = ['aa', 'ak', 'cho', 'ho', 'hz', 'ii', 'kj', 'kr', 'lrc', 'mh', 'mus', 'na', 'ng', 'ten']#

Not open for edits; stewards can still edit.

codes = {'ab', 'ace', 'ady', 'af', 'als', 'alt', 'am', 'ami', 'an', 'ang', 'ann', 'anp', 'ar', 'arc', 'ary', 'arz', 'as', 'ast', 'atj', 'av', 'avk', 'awa', 'ay', 'az', 'azb', 'ba', 'ban', 'bar', 'bat-smg', 'bbc', 'bcl', 'bdr', 'be', 'be-tarask', 'bew', 'bg', 'bh', 'bi', 'bjn', 'blk', 'bm', 'bn', 'bo', 'bpy', 'br', 'bs', 'btm', 'bug', 'bxr', 'ca', 'cbk-zam', 'cdo', 'ce', 'ceb', 'ch', 'chr', 'chy', 'ckb', 'co', 'cr', 'crh', 'cs', 'csb', 'cu', 'cv', 'cy', 'da', 'dag', 'de', 'dga', 'din', 'diq', 'dsb', 'dtp', 'dty', 'dv', 'dz', 'ee', 'el', 'eml', 'en', 'eo', 'es', 'et', 'eu', 'ext', 'fa', 'fat', 'ff', 'fi', 'fiu-vro', 'fj', 'fo', 'fon', 'fr', 'frp', 'frr', 'fur', 'fy', 'ga', 'gag', 'gan', 'gcr', 'gd', 'gl', 'glk', 'gn', 'gom', 'gor', 'got', 'gpe', 'gu', 'guc', 'gur', 'guw', 'gv', 'ha', 'hak', 'haw', 'he', 'hi', 'hif', 'hr', 'hsb', 'ht', 'hu', 'hy', 'hyw', 'ia', 'iba', 'id', 'ie', 'ig', 'igl', 'ik', 'ilo', 'inh', 'io', 'is', 'it', 'iu', 'ja', 'jam', 'jbo', 'jv', 'ka', 'kaa', 'kab', 'kbd', 'kbp', 'kcg', 'kg', 'kge', 'ki', 'kk', 'kl', 'km', 'kn', 'ko', 'koi', 'krc', 'ks', 'ksh', 'ku', 'kus', 'kv', 'kw', 'ky', 'la', 'lad', 'lb', 'lbe', 'lez', 'lfn', 'lg', 'li', 'lij', 'lld', 'lmo', 'ln', 'lo', 'lt', 'ltg', 'lv', 'mad', 'mai', 'map-bms', 'mdf', 'mg', 'mhr', 'mi', 'min', 'mk', 'ml', 'mn', 'mni', 'mnw', 'mos', 'mr', 'mrj', 'ms', 'mt', 'mwl', 'my', 'myv', 'mzn', 'nah', 'nap', 'nds', 'nds-nl', 'ne', 'new', 'nia', 'nl', 'nn', 'no', 'nov', 'nqo', 'nr', 'nrm', 'nso', 'nv', 'ny', 'oc', 'olo', 'om', 'or', 'os', 'pa', 'pag', 'pam', 'pap', 'pcd', 'pcm', 'pdc', 'pfl', 'pi', 'pih', 'pl', 'pms', 'pnb', 'pnt', 'ps', 'pt', 'pwn', 'qu', 'rm', 'rmy', 'rn', 'ro', 'roa-rup', 'roa-tara', 'rsk', 'ru', 'rue', 'rw', 'sa', 'sah', 'sat', 'sc', 'scn', 'sco', 'sd', 'se', 'sg', 'sh', 'shi', 'shn', 'si', 'simple', 'sk', 'skr', 'sl', 'sm', 'smn', 'sn', 'so', 'sq', 'sr', 'srn', 'ss', 'st', 'stq', 'su', 'sv', 'sw', 'szl', 'szy', 'ta', 'tay', 'tcy', 'tdd', 'te', 'tet', 'tg', 'th', 'ti', 'tig', 'tk', 'tl', 'tly', 'tn', 'to', 'tpi', 'tr', 'trv', 'ts', 'tt', 'tum', 'tw', 'ty', 'tyv', 'udm', 'ug', 'uk', 'ur', 'uz', 've', 'vec', 'vep', 'vi', 'vls', 'vo', 'wa', 'war', 'wo', 'wuu', 'xal', 'xh', 'xmf', 'yi', 'yo', 'za', 'zea', 'zgh', 'zh', 'zh-classical', 'zh-min-nan', 'zh-yue', 'zu'}#
cross_allowed: list[str] = ['ab', 'ace', 'ady', 'af', 'als', 'am', 'an', 'ang', 'ar', 'arc', 'arz', 'as', 'ast', 'atj', 'av', 'ay', 'az', 'ba', 'bar', 'bat-smg', 'bcl', 'be', 'be-tarask', 'bg', 'bh', 'bi', 'bjn', 'bm', 'bo', 'bpy', 'bug', 'bxr', 'ca', 'cbk-zam', 'cdo', 'ce', 'ceb', 'ch', 'chr', 'chy', 'ckb', 'co', 'cr', 'crh', 'cs', 'csb', 'cu', 'cv', 'cy', 'da', 'diq', 'dsb', 'dty', 'dz', 'ee', 'el', 'eml', 'en', 'eo', 'et', 'eu', 'ext', 'fa', 'ff', 'fi', 'fj', 'fo', 'frp', 'frr', 'fur', 'ga', 'gag', 'gan', 'gd', 'glk', 'gn', 'gom', 'gor', 'got', 'gu', 'gv', 'ha', 'hak', 'haw', 'he', 'hi', 'hif', 'hr', 'hsb', 'ht', 'hu', 'hy', 'ia', 'ie', 'ig', 'ik', 'ilo', 'inh', 'io', 'iu', 'ja', 'jam', 'jbo', 'jv', 'ka', 'kaa', 'kab', 'kbd', 'kg', 'ki', 'kk', 'kl', 'km', 'kn', 'ko', 'koi', 'krc', 'ks', 'ku', 'kv', 'kw', 'ky', 'la', 'lad', 'lb', 'lbe', 'lez', 'lfn', 'lg', 'li', 'lij', 'lmo', 'ln', 'lo', 'lt', 'ltg', 'lv', 'map-bms', 'mdf', 'meta', 'mg', 'mhr', 'mi', 'mk', 'ml', 'mn', 'mrj', 'ms', 'mwl', 'my', 'myv', 'mzn', 'nah', 'nap', 'nds-nl', 'ne', 'new', 'nl', 'no', 'nov', 'nrm', 'nso', 'nv', 'ny', 'oc', 'olo', 'om', 'or', 'os', 'pa', 'pag', 'pam', 'pap', 'pdc', 'pfl', 'pi', 'pih', 'pms', 'pnb', 'pnt', 'ps', 'qu', 'rm', 'rmy', 'rn', 'roa-rup', 'roa-tara', 'ru', 'rue', 'rw', 'sa', 'sah', 'sc', 'scn', 'sco', 'sd', 'se', 'sg', 'sh', 'shn', 'si', 'simple', 'sk', 'sm', 'sn', 'so', 'srn', 'ss', 'st', 'stq', 'su', 'sv', 'sw', 'szl', 'ta', 'tcy', 'te', 'tet', 'tg', 'th', 'ti', 'tk', 'tl', 'tn', 'to', 'tpi', 'tr', 'ts', 'tt', 'tum', 'tw', 'ty', 'tyv', 'udm', 'ug', 'uz', 've', 'vec', 'vep', 'vls', 'vo', 'wa', 'war', 'wo', 'xal', 'xh', 'xmf', 'yi', 'yo', 'za', 'zea', 'zh', 'zh-classical', 'zh-min-nan', 'zh-yue', 'zu']#

A list with the name in the cross-language flag permissions.

doc_subpages = {'_default': (('/doc',), ['arz', 'bn', 'cs', 'da', 'en', 'es', 'hr', 'hu', 'id', 'ilo', 'ja', 'ms', 'pt', 'ro', 'ru', 'simple', 'sh', 'vi', 'zh']), 'ar': ('/شرح', '/doc'), 'ary': ('/توثيق', '/شرح', '/doc'), 'bs': ('/dok',), 'ca': ('/ús',), 'de': ('Doku', '/Meta'), 'dsb': ('/Dokumentacija',), 'eu': ('txantiloi dokumentazioa', '/dok'), 'fa': ('/doc', '/توضیحات'), 'fi': ((),), 'fr': ('/Documentation',), 'hsb': ('/Dokumentacija',), 'it': ('/Man',), 'ka': ('/ინფო',), 'ko': ('/설명문서',), 'nn': ('/dok',), 'no': ('/dok',), 'pl': ('/opis',), 'sk': ('/Dokumentácia',), 'sr': ('/док',), 'sv': ('/dok',), 'uk': ('/Документація',), 'ur': ('/doc', '/دستاویز')}#
edit_restricted_templates: dict[str, tuple[str, ...]] = {'ar': ('تحرر',), 'ary': ('كاتبدل دابا',), 'arz': ('بتتطور',), 'bs': ('Izmjena u toku',), 'cs': ('Pracuje se',), 'de': ('Inuse', 'In use', 'In bearbeitung', 'Inbearbeitung'), 'en': ('Inuse', 'In use'), 'fa': ('ویرایش',), 'fr': ('En cours',), 'he': ('בעבודה',), 'hr': ('Radovi',), 'hy': ('Խմբագրում եմ',), 'ru': ('Редактирую',), 'sr': ('Радови у току', 'Рут'), 'test': ('In use',), 'ur': ('زیر ترمیم',), 'zh': ('Inuse',)}#

A dict of tuples for different sites with names of templates that indicate an edit should be avoided.

encodings(code)[source]#

Return a list of historical encodings for a specific site.

latin1old = {'af', 'bs', 'co', 'cs', 'da', 'de', 'en', 'es', 'et', 'eu', 'fi', 'fr', 'fy', 'ga', 'gl', 'ia', 'id', 'it', 'la', 'lt', 'lv', 'mi', 'mr', 'na', 'nds', 'nl', 'no', 'pt', 'simple', 'sl', 'sv', 'sw', 'test', 'tt', 'uk', 'vi', 'vo'}#
name: str | None = 'wikipedia'#

The family name

removed_wikis: list[str] = ['dk', 'mo', 'ru-sib', 'tlh', 'tokipona', 'zh_cn', 'zh_tw']#

Completely removed sites.

test_codes = ['test', 'test2']#

families.wikiquote_family — Wikiquote#

Family module for Wikiquote.

class families.wikiquote_family.Family[source]#

Bases: SubdomainFamily, WikimediaFamily

Family class for Wikiquote.

category_redirect_templates: dict[str, Sequence[str]] = {'_default': (), 'ar': ('تحويل تصنيف',), 'en': ('Category redirect',), 'ro': ('Redirect categorie',), 'sq': ('Kategori e zhvendosur',), 'uk': ('Categoryredirect',)}#

A list of category redirect template names in different languages.

closed_wikis: list[str] = ['am', 'ang', 'ast', 'bm', 'co', 'cr', 'ga', 'kk', 'kr', 'ks', 'kw', 'lb', 'na', 'nds', 'qu', 'simple', 'tk', 'tt', 'ug', 'vo', 'wo', 'za', 'zh-min-nan']#

Not open for edits; stewards can still edit.

codes = {'af', 'ar', 'as', 'az', 'bcl', 'be', 'bg', 'bjn', 'bn', 'br', 'bs', 'ca', 'cs', 'cy', 'da', 'de', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fr', 'gl', 'gor', 'gu', 'guw', 'he', 'hi', 'hr', 'hu', 'hy', 'id', 'ig', 'is', 'it', 'ja', 'ka', 'kn', 'ko', 'ku', 'ky', 'la', 'li', 'lt', 'ml', 'mr', 'nl', 'nn', 'no', 'pl', 'pt', 'ro', 'ru', 'sa', 'sah', 'sk', 'sl', 'sq', 'sr', 'su', 'sv', 'ta', 'te', 'th', 'tl', 'tr', 'uk', 'ur', 'uz', 'vi', 'zh'}#
cross_allowed: list[str] = ['af', 'ar', 'az', 'be', 'bg', 'br', 'bs', 'ca', 'cs', 'cy', 'da', 'el', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fr', 'gl', 'gu', 'he', 'hi', 'hu', 'hy', 'id', 'is', 'it', 'ja', 'ka', 'kn', 'ko', 'ku', 'ky', 'la', 'li', 'lt', 'ml', 'mr', 'nl', 'nn', 'no', 'pt', 'ro', 'ru', 'sa', 'sah', 'sk', 'sl', 'sq', 'sr', 'su', 'sv', 'ta', 'te', 'th', 'tr', 'uk', 'ur', 'uz', 'vi', 'wo', 'zh']#

A list with the name in the cross-language flag permissions.

doc_subpages = {'_default': (('/doc',), ['en']), 'ar': ('/شرح', '/doc'), 'sr': ('/док',)}#
encodings(code)[source]#

Return a list of historical encodings for a specific language.

Parameters:

code – site code

name: str | None = 'wikiquote'#

The family name

removed_wikis: list[str] = ['als', 'tokipona']#

Completely removed sites.

families.wikisource_family — Wikisource#

Family module for Wikisource.

class families.wikisource_family.Family[source]#

Bases: SubdomainFamily, WikimediaFamily

Family class for Wikisource.

authornamespaces = {'_default': [0], 'ar': [102], 'be': [102], 'beta': [102], 'bg': [100], 'bn': [100], 'ca': [106], 'cs': [100], 'da': [102], 'en': [102], 'eo': [102], 'es': [106], 'et': [106], 'fa': [102], 'fr': [102], 'he': [108], 'hr': [100], 'hu': [100], 'hy': [100], 'it': [102], 'ko': [100], 'la': [102], 'nap': [102], 'nl': [102], 'no': [102], 'pl': [104], 'pt': [102], 'ro': [102], 'sr': [100], 'sv': [106], 'tr': [100], 'vi': [102], 'zh': [102]}#
category_redirect_templates: dict[str, Sequence[str]] = {'_default': (), 'ar': ('تحويل تصنيف',), 'bn': ('বিষয়শ্রেণী পুনর্নির্দেশ',), 'en': ('Category redirect',), 'es': ('Categoría redirigida',), 'ro': ('Redirect categorie',), 'zh': ('分類重定向',)}#

A list of category redirect template names in different languages.

closed_wikis: list[str] = ['ang', 'ht']#

Not open for edits; stewards can still edit.

code_aliases: dict[str, str]#

Code mappings which are only an alias, and there is no ‘old’ wiki. For all except ‘nl_nds’, subdomains do exist as a redirect, but that should not be relied upon.

codes = {'ar', 'as', 'az', 'ban', 'bcl', 'be', 'bg', 'bn', 'br', 'bs', 'ca', 'cs', 'cy', 'da', 'de', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fo', 'fr', 'gl', 'gu', 'he', 'hi', 'hr', 'hu', 'hy', 'id', 'is', 'it', 'ja', 'jv', 'ka', 'kn', 'ko', 'la', 'li', 'lij', 'lt', 'mk', 'ml', 'mr', 'ms', 'mul', 'my', 'nap', 'nl', 'no', 'or', 'pa', 'pl', 'pms', 'pt', 'ro', 'ru', 'sa', 'sah', 'sk', 'sl', 'sr', 'su', 'sv', 'ta', 'tcy', 'te', 'th', 'tr', 'uk', 'vec', 'vi', 'wa', 'yi', 'zh', 'zh-min-nan'}#
cross_allowed: list[str] = ['ar', 'be', 'bg', 'bn', 'br', 'bs', 'ca', 'cy', 'da', 'el', 'et', 'eu', 'fa', 'fi', 'fo', 'gl', 'hr', 'hy', 'id', 'it', 'ja', 'kn', 'ko', 'ml', 'nap', 'no', 'or', 'pa', 'pl', 'pt', 'ro', 'sa', 'sk', 'sr', 'ta', 'te', 'th', 'uk', 'vi', 'zh']#

A list with the name in the cross-language flag permissions.

doc_subpages = {'_default': (('/doc',), ['as', 'az', 'bn', 'en', 'es', 'et', 'gu', 'hu', 'it', 'ja', 'kn', 'ml', 'mk', 'mr', 'pt', 'ro', 'sa', 'sah', 'ta', 'te', 'th', 'vi']), 'ar': ('/شرح', '/doc'), 'be': ('/Дакументацыя',), 'bn': ('/নথি',), 'br': ('/diellerezh',), 'de': ('/Doku', '/Meta'), 'el': ('/τεκμηρίωση',), 'eo': ('/dokumentado',), 'fr': ('/documentation',), 'id': ('/dok',), 'ko': ('/설명문서',), 'no': ('/dok',), 'ru': ('/Документация',), 'sl': ('/dok',), 'sr': ('/док',), 'sv': ('/dok',), 'uk': ('/документація',)}#
domains#

classproperty None

langs: dict[str, str]#

classproperty None

name: str | None = 'wikisource'#

The family name

removed_wikis: list[str] = ['tokipona']#

Completely removed sites.

test_codes = ['beta']#

families.wikisopore_family — Wikispore#

Family module for Wikispore.

Added in version 4.1.

class families.wikispore_family.Family[source]#

Bases: Family

Family class for Wikispore.

Added in version 4.1.

langs: dict[str, str] = {'en': 'wikispore.wmflabs.org', 'test': 'wikispore-test.wmflabs.org'}#
name: str | None = 'wikispore'#

The family name

families.wikitech_family — Wikitech#

Family module for Wikitech.

class families.wikitech_family.Family[source]#

Bases: WikimediaOrgFamily

Family class for Wikitech.

code = 'en'#
name: str | None = 'wikitech'#

The family name

protocol(code)[source]#

Return the protocol for this family.

Return type:

str

families.wikiversity_family — Wikiversity#

Family module for Wikiversity.

class families.wikiversity_family.Family[source]#

Bases: SubdomainFamily, WikimediaFamily

Family class for Wikiversity.

category_redirect_templates: dict[str, Sequence[str]] = {'_default': (), 'ar': ('تحويل تصنيف',), 'en': ('Category redirect',)}#

A list of category redirect template names in different languages.

code_aliases: dict[str, str]#

Code mappings which are only an alias, and there is no ‘old’ wiki. For all except ‘nl_nds’, subdomains do exist as a redirect, but that should not be relied upon.

codes = {'ar', 'cs', 'de', 'el', 'en', 'es', 'fi', 'fr', 'hi', 'it', 'ja', 'ko', 'pt', 'ru', 'sl', 'sv', 'zh'}#
cross_allowed: list[str] = ['ar', 'hi', 'ja', 'ko', 'zh']#

A list with the name in the cross-language flag permissions.

name: str | None = 'wikiversity'#

The family name

test_codes = ['beta']#

families.wikivoyage_family— Wikivoyage#

Family module for Wikivoyage.

class families.wikivoyage_family.Family[source]#

Bases: SubdomainFamily, WikimediaFamily

Family class for Wikivoyage.

category_redirect_templates: dict[str, Sequence[str]] = {'_default': (), 'bn': ('বিষয়শ্রেণী পুনর্নির্দেশ',), 'zh': ('分类重定向',)}#

A list of category redirect template names in different languages.

codes = {'bn', 'cs', 'de', 'el', 'en', 'eo', 'es', 'fa', 'fi', 'fr', 'he', 'hi', 'id', 'it', 'ja', 'nl', 'pl', 'ps', 'pt', 'ro', 'ru', 'shn', 'sv', 'tr', 'uk', 'vi', 'zh'}#
cross_allowed: list[str] = ['bn', 'el', 'en', 'es', 'fa', 'fi', 'hi', 'ps', 'ru']#

A list with the name in the cross-language flag permissions.

name: str | None = 'wikivoyage'#

The family name

families.wiktionary_family — Wiktionary#

Family module for Wiktionary.

class families.wiktionary_family.Family[source]#

Bases: SubdomainFamily, WikimediaFamily

Family class for Wiktionary.

Changed in version 8.0: alphabetic_sv attribute was removed; interwiki_putfirst attribute was removed and default setting from parent class is used.

category_redirect_templates: dict[str, Sequence[str]] = {'_default': (), 'ar': ('تحويل تصنيف',), 'zh': ('分类重定向',)}#

A list of category redirect template names in different languages.

closed_wikis: list[str] = ['aa', 'ab', 'ak', 'as', 'av', 'bh', 'bi', 'bm', 'bo', 'ch', 'cr', 'dz', 'ik', 'mh', 'pi', 'rm', 'rn', 'sc', 'sn', 'to', 'tw', 'xh', 'yo', 'za']#

Not open for edits; stewards can still edit.

codes = {'af', 'am', 'an', 'ang', 'ar', 'ast', 'ay', 'az', 'bcl', 'be', 'bg', 'bjn', 'blk', 'bn', 'br', 'bs', 'btm', 'ca', 'chr', 'ckb', 'co', 'cs', 'csb', 'cy', 'da', 'de', 'diq', 'dv', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fj', 'fo', 'fr', 'fy', 'ga', 'gd', 'gl', 'gn', 'gom', 'gor', 'gu', 'guw', 'gv', 'ha', 'he', 'hi', 'hif', 'hr', 'hsb', 'hu', 'hy', 'ia', 'id', 'ie', 'ig', 'io', 'is', 'it', 'iu', 'ja', 'jbo', 'jv', 'ka', 'kaa', 'kbd', 'kcg', 'kk', 'kl', 'km', 'kn', 'ko', 'ks', 'ku', 'kw', 'ky', 'la', 'lb', 'li', 'lmo', 'ln', 'lo', 'lt', 'lv', 'mad', 'mg', 'mi', 'min', 'mk', 'ml', 'mn', 'mni', 'mnw', 'mr', 'ms', 'mt', 'my', 'na', 'nah', 'nds', 'ne', 'nia', 'nl', 'nn', 'no', 'oc', 'om', 'or', 'pa', 'pl', 'pnb', 'ps', 'pt', 'qu', 'ro', 'roa-rup', 'ru', 'rw', 'sa', 'scn', 'sd', 'sg', 'sh', 'shn', 'shy', 'si', 'simple', 'sk', 'skr', 'sl', 'sm', 'so', 'sq', 'sr', 'ss', 'st', 'su', 'sv', 'sw', 'ta', 'tcy', 'te', 'tg', 'th', 'ti', 'tk', 'tl', 'tn', 'tpi', 'tr', 'ts', 'tt', 'ug', 'uk', 'ur', 'uz', 'vec', 'vi', 'vo', 'wa', 'wo', 'yi', 'yue', 'zh', 'zh-min-nan', 'zu'}#
cross_allowed: list[str] = ['af', 'am', 'an', 'ang', 'ar', 'ast', 'ay', 'az', 'be', 'bg', 'bn', 'br', 'bs', 'ca', 'chr', 'co', 'cs', 'csb', 'cy', 'da', 'dv', 'el', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fj', 'fo', 'fy', 'ga', 'gd', 'gl', 'gn', 'gu', 'gv', 'ha', 'hsb', 'hu', 'hy', 'ia', 'id', 'ie', 'io', 'iu', 'jbo', 'jv', 'ka', 'kk', 'kl', 'km', 'kn', 'ko', 'ks', 'ku', 'kw', 'ky', 'la', 'lb', 'ln', 'lo', 'lt', 'lv', 'mg', 'mi', 'mk', 'ml', 'mn', 'ms', 'mt', 'my', 'na', 'nah', 'nds', 'ne', 'nl', 'nn', 'no', 'oc', 'om', 'or', 'pa', 'pnb', 'ps', 'pt', 'qu', 'roa-rup', 'rw', 'sa', 'scn', 'sd', 'sg', 'sh', 'si', 'simple', 'sk', 'sl', 'sm', 'so', 'sq', 'sr', 'ss', 'st', 'su', 'sv', 'sw', 'ta', 'te', 'tg', 'th', 'ti', 'tk', 'tl', 'tn', 'tpi', 'tr', 'ts', 'tt', 'ug', 'uk', 'ur', 'uz', 'vec', 'vi', 'vo', 'wa', 'wo', 'yi', 'zh', 'zh-min-nan', 'zu']#

A list with the name in the cross-language flag permissions.

doc_subpages = {'_default': (('/doc',), ['en']), 'ar': ('/شرح', '/doc'), 'sr': ('/док',)}#
interwiki_attop: list[str] = ['pl']#

attop is a list of languages that prefer to have the interwiki links at the top of the page.

interwiki_on_one_line: list[str] = ['pl']#

on_one_line is a list of languages that want the interwiki links one-after-another on a single line

name: str | None = 'wiktionary'#

The family name

removed_wikis: list[str] = ['als', 'ba', 'dk', 'mo', 'tlh', 'tokipona']#

Completely removed sites.

families.wowwiki_family — Fandom WOW#

Family module for WOW wiki.

class families.wowwiki_family.Family[source]#

Bases: FandomFamily

Family class for WOW Wiki.

categories_last: list[str]#

When both at the bottom should categories come after interwikilinks?

TODO: T86284 Needed on Wikia sites, as it uses the CategorySelect extension which puts categories last on all sites. TO BE DEPRECATED!

code_aliases: dict[str, str] = {'nn': 'no'}#

Code mappings which are only an alias, and there is no ‘old’ wiki. For all except ‘nl_nds’, subdomains do exist as a redirect, but that should not be relied upon.

codes = {'ar', 'cs', 'da', 'de', 'el', 'en', 'es', 'et', 'fa', 'fi', 'fr', 'he', 'hu', 'it', 'ja', 'ko', 'nl', 'no', 'pl', 'pt', 'pt-br', 'ru', 'uk', 'zh', 'zh-tw'}#
disambcatname: dict[str, str]#

A dict with the name of the category containing disambiguation pages for the various languages. Only one category per language, and without the namespace, so add things like:

‘en’: “Disambiguation”

disambiguationTemplates: dict[str, Sequence[str]]#

A list of disambiguation template names in different languages.

domain = 'wowwiki.fandom.com'#
domains#

classproperty List of domains used by family wowwiki.

langs: dict[str, str]#

classproperty Property listing family languages.

name: str | None = 'wowwiki'#

The family name

removed_wikis: list[str] = ['is', 'hr', 'lt', 'lv', 'ro', 'sk', 'sr', 'sv', 'tr']#

Completely removed sites.

scriptpath(code)[source]#

Return the script path for this family.