Wikia

Wookieepedia

Watchlist Recent changes

Darth Culator/pywikipedia

< 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 increased version number, and the blank "scriptpath" definition. When I started using nightly SVNs, I got weird error messages until I set that.

# -*- 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[100] = {
            '_default': u'Forum',
        }
        self.namespaces[101] = {
            '_default': u'Forum talk',
        }

        self.languages_by_size = ['en']

        alphabetic = ['en']

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

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

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

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

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

    def scriptpath(self, code):
        return ''

Pages on Wookieepedia

Add a Page
93,452pages on
this wiki

Latest Photos

Add an Image
49,831images on this wiki
See more >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki