User:ZomBot/Configuration

Config files for using Pywikipediabot at the League of Legends Wiki.

Last update:.

leagueoflegends_family.py
import config, family, urllib
 * 1) -*- coding: utf-8  -*-


 * 1) The League of Legends Wikia (League of Legends Wiki)

class Family(family.Family):

def __init__(self):

family.Family.__init__(self)

self.name = 'leagueoflegends' self.langs = { 'en': 'leagueoflegends.wikia.com', }

# Most namespaces are inherited from family.Family; overrides below. self.namespaces[4] = {'_default': u'League of Legends Wiki'} self.namespaces[5] = {'_default': u'League of Legends Wiki talk'} self.namespaces[6] = {'_default': u'File'} self.namespaces[7] = {'_default': u'File talk'} # Custom namespace list (for en). self.namespaces[110] = {'_default':u'Forum'} self.namespaces[111] = {'_default':u'Forum talk'} self.namespaces[112] = {'_default':u'Portal'} self.namespaces[113] = {'_default':u'Portal talk'} self.namespaces[400] = {'_default':u'Video'} self.namespaces[401] = {'_default':u'Video talk'} self.namespaces[500] = {'_default':u'User blog'} self.namespaces[501] = {'_default':u'User blog comment'} self.namespaces[502] = {'_default':u'Blog'} self.namespaces[503] = {'_default':u'Blog talk'} self.namespaces[800] = {'_default':u'Poll'} self.namespaces[801] = {'_default':u'Poll talk'}

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

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

def hostname(self,code): return self.langs[code]

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