The ScoutWiki Network server was upgraded on November 20th, 2019. The maintenance is now over. Please inform us in Slack or via email if you encounter any unexpected errors – it's possible the upgrade has missed something. Thanks and happy scoutwiki'ng!

Bot configuration/scoutwiki

From ScoutWiki Network
Revision as of 21:07, 10 August 2008 by Akela NDE (talk | contribs)
Jump to navigation Jump to search
# -*- coding: utf-8  -*-
import family

# ScoutWiki, the international network of scouting wikis.
# ScoutWiki, le réseau international de wikis scouts.

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

        self.langs = {
            'fi':'', # PartioWiki
            'fr':'', # Scoutopedia
            'de':'', #PfadiWiki
            'nl':'', #Scoutpedia (NL)
            'es':'', #WikiRoca
            'en':'', #ScoutWiki English
            'ar':'', #ScoutWiki Arabic
            'eo':'', #SkoltViko en Esperanto
	    'sv':'', #ScoutWiki Swedish
	    'it':'', #ScoutWiki en italiano
	    'da':'', #ScoutWiki in Danish: SpejderWiki
	    'ja':'', #Boyscout Guide, Japanese scoutwiki
	    'cs':'', #JunakWiki, Czechish scoutwiki

        # Most namespaces are inherited from family.Family.

        self.namespaces[4] = {
            '_default': u'scoutwiki',
            'fi': u'PartioWiki',
            'fr': u'Scoutopedia',
            'de': u'Pfadiwiki',
            'nl': u'Scoutpedia',
            'es': u'WikiRoca',
            'en': u'ScoutWiki',
            'ar': u'ScoutWiki',
            'eo': u'SkoltVikio',
	    'sv': u'ScoutWiki',
	    'it': u'ScoutWiki',
	    'da': u'SpejderWiki',
	    'ja': u'ボーイスカウトガイド',
	    'cs': u'JunakWiki',
            'media': u'ScoutMedia',
        self.namespaces[5] = {
            '_default': u'Talk about scoutwiki',
            'fi': u'Keskustelu PartioWikista',
            'fr': u'Discussion Scoutopedia',
            'de': u'Pfadiwiki Diskussion',
            'nl': u'Overleg Scoutpedia',
            'es': u'WikiRoca Discusión',
            'en': u'ScoutWiki talk',
            'ar': u'نقاش ScoutWiki',
            'eo': u'SkoltVikio diskuto',
	    'sv': u'ScoutWikidiskussion',
	    'it': u'Discussioni ScoutWiki',
	    'da': u'SpejderWiki-diskussion',
	    'ja': u'ボーイスカウトガイド‐ノート',
	    'cs': u'JunakWiki diskuse',
            'media': u'ScoutMedia talk',

        #custom namespaces
        self.namespaces[100] = {
            '_default':u'Portal',       #portals
            #'fi':u'Lodju' #Geocache (bug)
        self.namespaces[101] = {
            '_default':u'Portal talk',
            #'fi':u'Keskustelu lodjusta'
            'fr':u'Discussion Portail',
	    'en':u'Portal Talk',
	    'it':u'Discussioni portale',
        self.namespaces[102] = {
            '_default':u'Projet'     #Wiki-projects
            #'fr':u'Projet' bug ?
        self.namespaces[103] = {
            '_default':u'Discussion Projet'    #Wikiproject talk pages
            #'fr':u'Discussion projet' bug ?

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

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

#Special lines for NL wiki compatibility - Not tested
	def scriptpath(self, code):
	if code=='nl':
		return '/wiki'
		return ''

	def path(self, code):
	if code=='nl':
		return '/wiki/index.php'
		return '/index.php'