Käyttäjä:KonttiBot/scoutwiki family.py

PartioWikistä
Siirry navigaatioon Siirry hakuun

Tulee kansioon families
comes to the folder families

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

# Put a short description of your project here.

class Family(family.Family):
    def __init__(self):
        family.Family.__init__(self)
        self.name = 'scoutwiki' # insert the same name you put into the filename

        self.langs = {
            'fi':'wiki.partio.net', # PartioWiki
            'fr':'www.scoutopedia.net', # Scoutopedia
        }

        # Most namespaces are inherited from family.Family.

        self.namespaces[4] = {
            '_default': u'scoutwiki',
            'fi': u'PartioWiki',
            'fr': u'Scoutopedia'
        }
        self.namespaces[5] = {
            '_default': u'Talk about scoutwiki',
            'fi': u'Keskustelu PartioWikista',
            'fr': u'Discussion Scoutopedia',
        }

        #custom namespaces
        self.namespaces[100] = {
            '_default':u'Geocaches',       #Not really geocaches, working with hints, not coordinates
            'fi':u'Lodju'
        }
        self.namespaces[101] = {
            '_default':u'Geocaches talk',
            'fi':u'Keskustelu lodjusta'
        }

    def version(self, code):
        return "1.5.6"

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