FANDOM


This page describes a family file as it existed when uploaded. A "known working date" should appear in the infobox. It will probably function in its current form, but you may get the odd, non-fatal error message if the wiki in question has added or subtracted namespaces, or if the MediaWiki version number has changed.

oscars_wikia_family.py
Creator: CzechOut
What it does: family file
Where used: oscars
Known working on: 20121216030545

Oscars wikia family.py is a script that serves as the family file for w:c:oscars.

File contents Edit

This is the complete family file for oscars.wikia.com. To make it available for user-config.sys to use:

  1. copy the entire contents of the box below
  2. start a new file in a plain text editor (like TextEdit or Notepad)
  3. save it as a .py file in the families folder found in the pywikipedia folder
  4. make sure it's named exactly as the infobox specifies
# -*- coding: utf-8  -*-
import family, config

class Family(family.Family):
    def __init__(self):
        family.Family.__init__(self)
        
        self.name = 'oscars_wikia'
        self.langs = { 'en':'oscars.wikia.com' }
        
        
        # Most namespaces are inherited from family.Family.
        self.namespaces[4] = {
            '_default': u'Oscars',
        }
        self.namespaces[5] = {
            '_default': u'Oscars talk',
        }
        self.namespaces[110] = {
            '_default': u'Forum',
        }
        self.namespaces[111] = {
            '_default': u'Forum talk',
        }
        self.namespaces[1100] = {
            '_default': u'RelatedVideos',
        }
        self.namespaces[1200] = {
            '_default': u'Message Wall',
        }
        self.namespaces[1201] = {
            '_default': u'Thread',
        }
        self.namespaces[2000] = {
            '_default': u'Board',
        }
        self.namespaces[2001] = {
            '_default': u'Board Talk',
        }
        self.namespaces[2002] = {
            '_default': u'Topic',
        }
        
        # A few selected big languages for things that we do not want to loop over
        # all languages. This is only needed by the titletranslate.py module, so
        # if you carefully avoid the options, you could get away without these
        # for another wikimedia family.
        
        self.languages_by_size = ['en','de']
    
    def version(self, code):
        return "1.19.2"
    
    def scriptpath(self, code):
        return ''

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.