families — Family Config Files#
Families package.
families.commons_family — Commons#
Family module for Wikimedia Commons.
- class families.commons_family.Family[source]#
Bases:
WikimediaFamily,DefaultWikibaseFamilyFamily class for Wikimedia Commons.
Changed in version 6.5:
family.WikibaseFamily.interface()was changed toDataSiteto enable structured data.- category_redirect_templates = {'_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 repository 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 = '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 = {'beta': 'commons.wikimedia.beta.wmcloud.org', 'commons': 'commons.wikimedia.org', 'test': 'test-commons.wikimedia.org'}#
- name = '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,SingleSiteFamilyFamily class for Foundation wiki.
Added in version 3.0.
- domain = 'foundation.wikimedia.org'#
- interwiki_forward = '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 = 'foundation'#
The family name
families.i18n_family — Translate Wiki#
Family module for Translate Wiki.
families.incubator_family — Incubator#
Family module for Incubator Wiki.
- class families.incubator_family.Family[source]#
Bases:
WikimediaOrgFamilyFamily class for Incubator Wiki.
- interwiki_forward = '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 = '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,WikibaseFamilyFamily class for Lingua Libre.
Added in version 6.5.
- interwiki_forward = '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 = {'lingualibre': 'lingualibre.org'}#
- name = 'lingualibre'#
The family name
families.mediawiki_family — MediaWiki#
Family module for MediaWiki wiki.
- class families.mediawiki_family.Family[source]#
Bases:
WikimediaFamily,SingleSiteFamilyFamily class for MediaWiki wiki.
- domain = 'www.mediawiki.org'#
- interwiki_forward = '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 = 'mediawiki'#
The family name
families.meta_family — Meta#
Family module for Meta Wiki.
- class families.meta_family.Family[source]#
Bases:
WikimediaFamilyFamily class for Meta Wiki.
Changed in version 11.0: beta site code was added.
- category_redirect_templates = {'_default': ('Category redirect',)}#
A list of category redirect template names in different languages.
- cross_allowed = ['meta']#
A list with the name in the cross-language flag permissions.
- doc_subpages = {'_default': (('/doc',), ['meta'])}#
- interwiki_forward = '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 = {'beta': 'meta.wikimedia.beta.wmcloud.org', 'meta': 'meta.wikimedia.org'}#
- name = 'meta'#
The family name
- test_codes = ['beta']#
families.osm_family — OpenStreetMap#
Family module for OpenStreetMap wiki.
- class families.osm_family.Family[source]#
Bases:
SingleSiteFamilyFamily class for OpenStreetMap wiki.
- category_redirect_templates = {'en': ('Category redirect',)}#
A list of category redirect template names in different languages.
- code = 'en'#
- disambcatname = {'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 = {'en': ('Disambig',)}#
A list of disambiguation template names in different languages.
- doc_subpages = {'en': ('/doc',)}#
- domain = 'wiki.openstreetmap.org'#
- edit_restricted_templates = {'en': ('In Bearbeitung',)}#
A dict of tuples for different sites with names of templates that indicate an edit should be avoided.
- name = 'osm'#
The family name
families.outreach_family — Outreach#
Family module for Wikimedia outreach wiki.
- class families.outreach_family.Family[source]#
Bases:
WikimediaOrgFamilyFamily class for Wikimedia outreach wiki.
- interwiki_forward = '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 = 'outreach'#
The family name
families.species_family — Species#
Family module for Wikimedia species wiki.
- class families.species_family.Family[source]#
Bases:
WikimediaOrgFamilyFamily class for Wikimedia species wiki.
- interwiki_forward = '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 = 'species'#
The family name
families.vikidia_family — Vikidia#
Family module for Vikidia.
- class families.vikidia_family.Family[source]#
Bases:
SubdomainFamilyFamily class for Vikidia.
- codes = {'ar', 'ca', 'de', 'el', 'en', 'es', 'eu', 'fr', 'hy', 'it', 'nl', 'oc', 'pt', 'ru', 'scn'}#
- domain = 'vikidia.org'#
- domains#
classpropertyList of domains used by Vikidia family.
- langs#
classpropertyProperty listing family languages.
- name = 'vikidia'#
The family name
- test_codes = ['central', 'test']#
families.wikibooks_family — Wikibooks#
Family module for Wikibooks.
- class families.wikibooks_family.Family[source]#
Bases:
SubdomainFamily,WikimediaFamilyFamily class for Wikibooks.
- category_redirect_templates = {'_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 = ['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', 'min', '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 = ['af', 'ar', 'az', 'ba', 'be', 'bg', 'bs', 'ca', 'cv', 'cy', 'da', 'de', 'el', 'eo', 'et', 'eu', 'fa', 'fi', 'gl', 'hi', 'hy', 'ia', 'id', 'is', 'it', 'ka', 'kk', 'km', 'ko', 'ku', 'ky', 'la', 'li', 'lt', 'mg', 'mk', 'ml', 'mr', 'ms', 'ne', 'nl', 'no', 'oc', 'pa', 'pl', 'ro', 'ru', 'sa', 'shn', 'si', 'sk', 'sl', 'sq', 'sv', 'ta', 'te', 'tg', 'th', 'tl', 'tr', 'tt', 'uk', 'ur', 'vi', 'zh']#
A list with the name in the cross-language flag permissions.
- doc_subpages = {'_default': (('/doc',), ['en']), 'ar': ('/شرح', '/doc'), 'es': ('/uso', '/doc'), 'sr': ('/док',)}#
- name = 'wikibooks'#
The family name
- removed_wikis = ['als', 'dk', 'tokipona']#
Completely removed sites.
families.wikidata_family — Wikidata#
Family module for Wikidata.
- class families.wikidata_family.Family[source]#
Bases:
WikimediaFamily,DefaultWikibaseFamilyFamily class for Wikidata.
- category_redirect_templates = {'wikidata': ('Category redirect',)}#
A list of category redirect template names in different languages.
- doc_subpages = {'_default': (('/doc',), ['wikidata'])}#
- interwiki_forward = '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 = {'beta': 'wikidata.beta.wmcloud.org', 'test': 'test.wikidata.org', 'wikidata': 'www.wikidata.org'}#
- name = 'wikidata'#
The family name
- test_codes = ['test', 'beta']#
families.wikifunctions_family — Wikifunctions#
Family module for Wikifunctions.
Added in version 8.4.
families.abstract_family — Abstract Wikipedia#
Family module for Abstract Wikipedia.
Added in version 11.2.
families.wikihow_family — Wikihow#
Family module for wikiHow wiki.
Added in version 3.0.
- class families.wikihow_family.Family[source]#
Bases:
SubdomainFamilyFamily 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#
classpropertyList of domains used by family wikiHow.
- langs#
classpropertyProperty listing family languages.
- name = 'wikihow'#
The family name
- removed_wikis = ['ca', 'cy', 'fa', 'he', 'pl', 'ur']#
Completely removed sites.
- 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,WikimediaFamilyFamily class for Wikimania wikis.
Added in version 3.0.
- closed_wikis = ['2005', '2006', '2007', '2008', '2009', '2010', '2011', '2012', '2013', '2014', '2015', '2016', '2017', '2018']#
Not open for edits; stewards can still edit.
- code_aliases = {'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 = '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#
classpropertyProperty listing family languages.
- name = '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,WikimediaFamilyFamily class for WCH, WTO and WUG wikis hosted on wikimedia.org.
- closed_wikis = ['cn', 'nz', 'pa-us']#
Not open for edits; stewards can still edit.
- code_aliases = {'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 = 'wikimediachapter'#
The family name
families.wikinews_family — Wikinews#
Family module for Wikinews.
Changed in version 11.3: All Wikinews sites were marked as closed and are listed in
Family.closed_wikis. Refer T421796.
- class families.wikinews_family.Family[source]#
Bases:
SubdomainFamily,WikimediaFamilyFamily class for Wikinews.
- category_redirect_templates = {'_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 = ['ar', 'bs', 'bg', 'ca', 'cs', 'de', 'el', 'en', 'eo', 'es', 'fa', 'fi', 'fr', 'guw', 'he', 'hu', 'it', 'ja', 'ko', 'li', 'nl', 'no', 'pl', 'pt', 'ro', 'ru', 'sd', 'shn', 'sq', 'sr', 'sv', 'ta', 'th', 'tr', 'uk', 'zh']#
Not open for edits; stewards can still edit.
- codes = {}#
- cross_allowed = ['ar', 'bs', 'ca', 'cs', 'el', 'en', 'eo', 'fa', 'fi', 'he', 'ja', 'ko', 'li', 'nl', 'no', 'pl', '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 = 'wikinews'#
The family name
families.wikipedia_family — Wikipedia#
Family module for Wikipedia.
- class families.wikipedia_family.Family[source]#
Bases:
SubdomainFamily,WikimediaFamilyFamily module for Wikipedia.
- archived_page_templates = {'ar': ('أرشيف نقاش',), 'arz': ('صفحة ارشيف',), 'cs': ('Archiv', 'Archiv Wikipedie', 'Archiv diskuse', 'Archivace start', 'Posloupnost archivů', 'Rfa-archiv-start', 'Rfc-archiv-start'), 'de': ('Archiv',), 'ro': ('Arhivă',)}#
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 = {'_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.
- citoid_endpoint = '/api/rest_v1/data/citation/'#
- closed_wikis = ['aa', 'ak', 'cho', 'ho', 'hz', 'ii', 'kj', 'kr', 'lrc', 'mh', 'mus', 'na', 'ng', 'pih', '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', 'kai', 'kaj', 'kbd', 'kbp', 'kcg', 'kg', 'kge', 'ki', 'kk', 'kl', 'km', 'kn', 'knc', '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', 'nup', 'nv', 'ny', 'oc', 'olo', 'om', 'or', 'os', 'pa', 'pag', 'pam', 'pap', 'pcd', 'pcm', 'pdc', 'pfl', 'pi', 'pl', 'pms', 'pnb', 'pnt', 'ppl', 'ps', 'pt', 'pwn', 'qu', 'rki', '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', 'syl', 'szl', 'szy', 'ta', 'tay', 'tcy', 'tdd', 'te', 'tet', 'tg', 'th', 'ti', 'tig', 'tk', 'tl', 'tly', 'tn', 'to', 'tok', '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 = ['ab', 'ace', 'ady', 'af', 'als', 'am', 'ami', 'an', 'ang', 'ar', 'arc', 'arz', 'as', 'ast', 'atj', 'av', 'avk', 'awa', 'ay', 'az', 'azb', 'ba', 'ban', 'bar', 'bat-smg', 'bcl', 'be', 'be-tarask', 'bh', 'bi', 'bjn', 'blk', 'bm', 'bo', 'bpy', 'bug', 'bxr', 'ca', 'cbk-zam', 'cdo', 'ce', 'ceb', 'ch', 'chr', 'chy', 'ckb', 'co', 'cr', 'crh', 'cs', 'csb', 'cu', 'cv', 'cy', 'dag', 'diq', 'dsb', 'dty', 'dz', 'ee', 'eml', 'eo', 'et', 'eu', 'ext', 'fa', 'ff', 'fj', 'fo', 'frp', 'frr', 'fur', 'ga', 'gag', 'gan', 'gcr', 'gd', 'glk', 'gn', 'gom', 'gor', 'got', 'gu', 'guc', 'gur', 'guw', 'gv', 'ha', 'hak', 'haw', 'hi', 'hif', 'hr', 'hsb', 'ht', 'hu', 'hy', 'hyw', 'ia', 'ie', 'ig', 'ik', 'ilo', 'inh', 'io', 'iu', 'jam', 'jbo', 'jv', 'ka', 'kaa', 'kab', 'kbd', 'kbp', 'kcg', 'kg', 'ki', 'kk', 'kl', 'km', 'kn', 'ko', 'koi', 'krc', 'ks', 'ku', 'kv', 'kw', 'ky', 'la', 'lad', 'lbe', 'lez', 'lfn', 'lg', 'li', 'lij', 'lld', 'lmo', 'ln', 'lo', 'lt', 'ltg', 'lv', 'mad', 'mai', 'map-bms', 'mdf', 'mg', 'mi', 'min', 'mk', 'mn', 'mni', 'mrj', 'mwl', 'my', 'myv', 'mzn', 'na', 'nah', 'nap', 'nds-nl', 'ne', 'new', 'nia', 'nl', 'nov', 'nqo', 'nrm', 'nso', 'nv', 'ny', 'oc', 'olo', 'om', 'or', 'os', 'pa', 'pag', 'pam', 'pap', 'pcd', 'pcm', 'pdc', 'pfl', 'pi', 'pih', 'pms', 'pnb', 'pnt', 'ps', 'pwn', 'qu', 'rm', 'rmy', 'rn', 'roa-rup', 'roa-tara', 'rue', 'rw', 'sa', 'sah', 'sat', 'sc', 'scn', 'sco', 'sd', 'se', 'sg', 'sh', 'shi', 'shn', 'si', 'simple', 'sk', 'skr', 'sm', 'smn', 'sn', 'so', 'srn', 'st', 'stq', 'su', 'sw', 'szl', 'szy', 'ta', 'tay', 'tcy', 'te', 'tet', 'tg', 'th', 'ti', 'tk', 'tl', 'tn', 'to', 'tpi', 'trv', '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 = {'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': ('Խմբագրում եմ',), 'ro': ('Dezvoltare', 'S-dezvoltare', 'Modific acum'), '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.
- 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 = 'wikipedia'#
The family name
- removed_wikis = ['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,WikimediaFamilyFamily class for Wikiquote.
- category_redirect_templates = {'_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 = ['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', 'ms', 'nl', 'nn', 'no', 'pcm', 'pl', 'pt', 'ro', 'ru', 'sa', 'sah', 'sk', 'sl', 'sq', 'sr', 'su', 'sv', 'ta', 'te', 'th', 'tl', 'tr', 'uk', 'ur', 'uz', 'vi', 'zh'}#
- cross_allowed = ['af', 'ar', 'as', 'az', 'bcl', 'be', 'bg', 'bn', 'br', 'bs', 'ca', 'cs', 'cy', 'da', 'el', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fr', 'gl', 'gu', 'he', 'hi', 'hu', 'hy', 'id', 'ig', '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', 'tl', 'tr', 'uk', 'ur', 'uz', 'vi', 'wo', 'wq', '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 = 'wikiquote'#
The family name
- removed_wikis = ['als', 'tokipona']#
Completely removed sites.
families.wikisource_family — Wikisource#
Family module for Wikisource.
- class families.wikisource_family.Family[source]#
Bases:
SubdomainFamily,WikimediaFamilyFamily 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 = {'_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 = ['ang', 'ht']#
Not open for edits; stewards can still edit.
- code_aliases#
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', 'mad', 'min', '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', 'tl', 'tr', 'uk', 'ur', 'vec', 'vi', 'wa', 'yi', 'zh', 'zh-min-nan'}#
- cross_allowed = ['ar', 'as', 'az', 'ban', 'be', 'bg', 'bn', 'br', 'bs', 'ca', 'cy', 'da', 'el', 'eo', 'et', 'eu', 'fa', 'fi', 'fo', 'gl', 'gu', 'hi', 'hr', 'hy', 'id', 'it', 'ja', 'jv', 'kn', 'ko', 'lij', 'lt', 'mk', 'ml', 'nap', 'nl', 'no', 'or', 'pa', 'pl', 'pms', 'pt', 'ro', 'sa', 'sah', 'sk', 'sr', 'ta', 'te', 'th', 'tr', 'uk', 'vi', 'wa', 'yi', 'zh', 'zh-min-nan']#
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#
classpropertyNone
- langs#
classpropertyNone
- name = 'wikisource'#
The family name
- removed_wikis = ['tokipona']#
Completely removed sites.
- test_codes = ['beta']#
families.wikisopore_family — Wikispore#
Family module for Wikispore.
Added in version 4.1.
families.wikitech_family — Wikitech#
Family module for Wikitech.
families.wikiversity_family — Wikiversity#
Family module for Wikiversity.
- class families.wikiversity_family.Family[source]#
Bases:
SubdomainFamily,WikimediaFamilyFamily class for Wikiversity.
- category_redirect_templates = {'_default': (), 'ar': ('تحويل تصنيف',), 'en': ('Category redirect',)}#
A list of category redirect template names in different languages.
- code_aliases#
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 = ['ar', 'el', 'es', 'fi', 'hi', 'it', 'ja', 'ko', 'pt', 'ru', 'sl', 'zh']#
A list with the name in the cross-language flag permissions.
- name = 'wikiversity'#
The family name
- test_codes = ['beta']#
families.wikivoyage_family— Wikivoyage#
Family module for Wikivoyage.
- class families.wikivoyage_family.Family[source]#
Bases:
SubdomainFamily,WikimediaFamilyFamily class for Wikivoyage.
- category_redirect_templates = {'_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 = ['bn', 'el', 'en', 'eo', 'es', 'fa', 'fi', 'hi', 'ja', 'pl', 'ps', 'pt', 'ro', 'ru', 'shn', 'tr', 'uk', 'vi', 'zh']#
A list with the name in the cross-language flag permissions.
- name = 'wikivoyage'#
The family name
families.wiktionary_family — Wiktionary#
Family module for Wiktionary.
- class families.wiktionary_family.Family[source]#
Bases:
SubdomainFamily,WikimediaFamilyFamily class for Wiktionary.
Changed in version 8.0:
alphabetic_svattribute was removed;interwiki_putfirstattribute was removed and default setting from parent class is used.- category_redirect_templates = {'_default': (), 'ar': ('تحويل تصنيف',), 'zh': ('分类重定向',)}#
A list of category redirect template names in different languages.
- closed_wikis = ['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', 'bew', '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', 'sat', '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', 'zgh', 'zh', 'zh-min-nan', 'zu'}#
- cross_allowed = ['af', 'am', 'an', 'ang', 'ar', 'ast', 'ay', 'az', 'bcl', 'be', 'bg', 'bjn', 'bn', 'br', 'bs', 'ca', 'chr', 'co', 'cs', 'csb', 'cy', 'da', 'diq', 'dv', 'el', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fj', 'fo', 'ga', 'gd', 'gl', 'gn', 'gom', 'gor', 'gu', 'guv', 'gv', 'ha', 'hiv', 'hr', 'hsb', 'hu', 'hy', 'ia', 'id', 'ie', 'ig', 'io', 'iu', 'jbo', 'jv', 'ka', 'kk', 'kl', 'km', 'kn', 'ko', 'ks', 'ku', 'kw', 'ky', 'la', 'lb', 'lmo', 'ln', 'lo', 'lt', 'lv', 'mg', 'mi', 'min', 'mk', 'mn', 'mni', 'mnw', 'mr', 'ms', 'mt', 'my', 'na', 'nah', 'nds', 'ne', 'nia', 'nl', 'nn', 'no', 'oc', 'om', 'or', 'pa', 'pnb', 'ps', 'pt', 'qu', 'roa-rup', 'rw', 'sa', 'sat', 'scn', 'sd', 'sg', 'sh', 'shn', 'shy', 'si', 'simple', 'sk', 'skr', '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 = ['pl']#
Attop is a list of languages that prefer to have the interwiki links at the top of the page.
- interwiki_on_one_line = ['pl']#
on_one_line is a list of languages that want the interwiki links one- after-another on a single line.
- name = 'wiktionary'#
The family name
- removed_wikis = ['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:
FandomFamilyFamily class for WOW Wiki.
- categories_last#
classpropertyDeprecated; use site.has_extension(“CategorySelect”) instead.Property listing site keys for categories at last position.
Deprecated since version 10.3: use
site.has_extension('CategorySelect')instead- Return type:
Any
- code_aliases = {'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#
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#
A list of disambiguation template names in different languages.
- domain = 'wowwiki.fandom.com'#
- domains#
classpropertyList of domains used by family wowwiki.
- langs#
classpropertyProperty listing family languages.
- name = 'wowwiki'#
The family name
- removed_wikis = ['is', 'hr', 'lt', 'lv', 'ro', 'sk', 'sr', 'sv', 'tr']#
Completely removed sites.