# -*- coding: utf-8 -*-
__version__ = '$Id: species_family.py 8066 2010-04-09 07:55:32Z xqt $'
import family
# The wikispecies family
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = 'species'
self.langs = {
'species': 'species.wikimedia.org',
}
if family.config.SSL_connection:
self.langs['species'] = None
self.namespaces[4] = {
'_default': [u'Wikispecies', self.namespaces[4]['_default']],
}
self.namespaces[5] = {
'_default': [u'Wikispecies talk', self.namespaces[5]['_default']],
}
self.interwiki_forward = 'wikipedia'
self.cross_projects = [
'wikipedia', 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews', 'wikiversity',
'meta', 'mediawiki', 'test', 'incubator', 'commons',
]
def version(self,code):
return '1.16wmf4'
def shared_image_repository(self, code):
return ('commons', 'commons')
if family.config.SSL_connection:
def hostname(self, code):
return 'secure.wikimedia.org'
def protocol(self, code):
return 'https'
def scriptpath(self, code):
return '/wikipedia/species/w'
def nicepath(self, code):
return '/wikipedia/species/wiki/'
|