Wikia

Wookieepedia

Darth Culator/pywikipedia

Talk0
104,014pages on
this wiki

< User:Darth Culator

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 ''

Photos

Add an Image
55,009images on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki