diff --git a/families/w_family.py b/families/w_family.py index 31eac0e..4b388e3 100644 --- a/families/w_family.py +++ b/families/w_family.py @@ -1,153 +1,125 @@ +""" +This family file was auto-generated by generate_family_file.py script. + +Configuration parameters: + url = https://community.fandom.com/zh + name = w + +Please do not commit this to the Git repository! +""" + from pywikibot import family class Family(family.Family): # noqa: D101 - """Fandom community family.""" name = "w" langs = { - "en": "community.fandom.com", - "af": "community.fandom.com", + "zh": "community.fandom.com", "ar": "community.fandom.com", - "be": "community.fandom.com", + "ba": "community.fandom.com", "bg": "community.fandom.com", "ca": "comunitat.fandom.com", + "cs": "community.fandom.com", "de": "community.fandom.com", "el": "community.fandom.com", + "en": "community.fandom.com", "es": "comunidad.fandom.com", - "eshelp": "comunidad.fandom.com", "et": "community.fandom.com", "fa": "community.fandom.com", "fi": "yhteiso.fandom.com", - "fihelp": "yhteiso.fandom.com", "fr": "communaute.fandom.com", - "frhelp": "communaute.fandom.com", - "gl": "comunidad.fandom.com", "hi": "samuday.fandom.com", "hu": "community.fandom.com", "id": "community.fandom.com", "it": "community.fandom.com", - "ithelp": "community.fandom.com", "ja": "community.fandom.com", - "jahelp": "community.fandom.com", "ko": "community.fandom.com", - "kohelp": "community.fandom.com", "li": "community.fandom.com", "lv": "community.fandom.com", + "nb": "community.fandom.com", "nl": "community.fandom.com", - "nlhelp": "community.fandom.com", "no": "community.fandom.com", "pl": "spolecznosc.fandom.com", "pt": "comunidade.fandom.com", "pt-br": "comunidade.fandom.com", - "pt-brhelp": "comunidade.fandom.com", - "pthelp": "comunidade.fandom.com", "ro": "community.fandom.com", "ru": "community.fandom.com", - "ruhelp": "community.fandom.com", - "sr": "community.fandom.com", "tr": "community.fandom.com", "uk": "spilnota.fandom.com", "vi": "community.fandom.com", - "zh": "community.fandom.com", } - @staticmethod - def scriptpath(code): - """The prefix used to locate scripts on this wiki.""" + def scriptpath(self, code): return { - "en": "", - "af": "/nl", + "zh": "/zh", "ar": "/ar", - "be": "/ru", + "ba": "/ba", "bg": "/bg", "ca": "", + "cs": "/cs", "de": "/de", "el": "/el", + "en": "", "es": "", - "eshelp": "", "et": "/et", "fa": "/fa", "fi": "", - "fihelp": "", "fr": "/fr", - "frhelp": "/fr", - "gl": "", "hi": "", "hu": "/hu", "id": "/id", "it": "/it", - "ithelp": "/it", "ja": "/ja", - "jahelp": "/ja", "ko": "/ko", - "kohelp": "/ko", "li": "/li", "lv": "/lv", + "nb": "/no", "nl": "/nl", - "nlhelp": "/nl", "no": "/no", "pl": "", "pt": "", "pt-br": "", - "pt-brhelp": "", - "pthelp": "", "ro": "/ro", "ru": "/ru", - "ruhelp": "/ru", - "sr": "/sr", "tr": "/tr", "uk": "", "vi": "/vi", - "zh": "/zh", }[code] - @staticmethod - def protocol(code): - """The protocol to use to connect to the site.""" + def protocol(self, code): return { - "en": "https", - "af": "https", + "zh": "https", "ar": "https", - "be": "https", + "ba": "https", "bg": "https", "ca": "https", + "cs": "https", "de": "https", "el": "https", + "en": "https", "es": "https", - "eshelp": "https", "et": "https", "fa": "https", "fi": "https", - "fihelp": "https", "fr": "https", - "frhelp": "https", - "gl": "https", "hi": "https", "hu": "https", "id": "https", "it": "https", - "ithelp": "https", "ja": "https", - "jahelp": "https", "ko": "https", - "kohelp": "https", "li": "https", "lv": "https", + "nb": "https", "nl": "https", - "nlhelp": "https", "no": "https", "pl": "https", "pt": "https", "pt-br": "https", - "pt-brhelp": "https", - "pthelp": "https", "ro": "https", "ru": "https", - "ruhelp": "https", - "sr": "https", "tr": "https", "uk": "https", "vi": "https", - "zh": "https", }[code]