FANDOM


This is a family .py file for Wookieepedia edited from the one at User:Xwing328/Pywikipedia and updated for the latest MediaWiki upgrades.

A few notable differences are the version number, and the blank "scriptpath" definition. When I started using nightly SVNs, I got weird error messages until I set that.

Also, some namespaces exist that the bot will yell at you about if they're not in the family file even though they are never used and NEVER SHOULD BE.

# -*- coding: utf-8  -*-
import family

class Family(family.Family):
    def __init__(self):
        family.Family.__init__(self)
        self.name = 'starwars'

        self.langs = {
            'en': None,
            }

        self.namespaces[4] = {
            '_default': u'Wookieepedia',
        }
        self.namespaces[5] = {
            '_default': u'Wookieepedia talk',
        }
        self.namespaces[6] = {
            '_default': u'File',
        }
        self.namespaces[7] = {
            '_default': u'File talk',
        }
        self.namespaces[100] = {
            '_default': u'Forum',
        }
        self.namespaces[101] = {
            '_default': u'Forum talk',
        }
        self.namespaces[1200] = {
            '_default': u'Message Wall',
        }
        self.namespaces[1201] = {
            '_default': u'Thread',
        }
        self.namespaces[1202] = {
            '_default': u'Message Wall Greeting',
        }

        self.languages_by_size = ['en']

        alphabetic = ['en']

    def hostname(self, code):
        return 'starwars.wikia.com'

    def protocol(self, code):
        return 'http'

    def code2encoding(self, code):
        return 'utf-8'

    def version(self, code):
        return '1.19.6'

    def path(self, code):
        return '/index.php'

    def apipath(self, code):
        return '/api.php'

    def scriptpath(self, code):
        return ''
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+