Revision 200717 of User:Takenbot

  • Revision slug: User:Takenbot
  • Revision title: User:Takenbot
  • Revision id: 200717
  • Created:
  • Creator: Takenbot
  • Is current revision? No
  • Comment

Revision Content

Takenbot is a robot, using Pywikipedia.

It is operated by User:Taken. It is used for creating and correcting interlang-links. Currently it can write only ja and en. If it cause problems, please inform User:Taken.

My mdc_family.py (based on Pywikipedia bot on non-Wikimedia projects) is below...

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

# The Mozilla Developer Center.

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

        self.langs = {  # All available languages are listed here.
            'de': None, #Because the hostname is the same for all languages,
            'en': None, #we don't specify it here, but below in the hostname()
            'ja': None, #function.
            'fr': None,
        }

        # Most namespaces are inherited from family.Family.
        self.namespaces[4] = {
            '_default': u'MDC', #All languages use the same project namespace name.
        }
        self.namespaces[5] = {
            '_default': u'MDC talk',
            'de': u'MDC Diskussion',
            'ja': u'MDC�?ノート',
            'fr': u'Discussion MDC',
        }

        # 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 wiki family.
        self.biglangs = ['en', 'fr'] # Not very important

    def hostname(self,code):
        return 'developer.mozilla.org' # The same for all languages

    def path(self, code):
        return '/'+code+'/docs/index.php' # % code The language code is included in the path

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

Revision Source

<p>Takenbot is a robot, using <a class="external" href="http://sourceforge.net/projects/pywikipediabot/">Pywikipedia</a>.
</p><p>It is operated by <a href="User:Taken">User:Taken</a>.
It is used for creating and correcting interlang-links.
Currently it can write <b>only ja and en</b>.
If it cause problems, please inform <a href="User:Taken">User:Taken</a>.
</p><p>My <code>mdc_family.py</code> (based on <a class="external" href="http://meta.wikimedia.org/wiki/Pywikipedia_bot_on_non-wikimedia_projects">Pywikipedia bot on non-Wikimedia projects</a>) is below...
</p>
<pre># -*- coding: utf-8  -*-
import family

# The Mozilla Developer Center.

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

        self.langs = {  # All available languages are listed here.
            'de': None, #Because the hostname is the same for all languages,
            'en': None, #we don't specify it here, but below in the hostname()
            'ja': None, #function.
            'fr': None,
        }

        # Most namespaces are inherited from family.Family.
        self.namespaces[4] = {
            '_default': u'MDC', #All languages use the same project namespace name.
        }
        self.namespaces[5] = {
            '_default': u'MDC talk',
            'de': u'MDC Diskussion',
            'ja': u'MDC�?ノート',
            'fr': u'Discussion MDC',
        }

        # 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 wiki family.
        self.biglangs = ['en', 'fr'] # Not very important

    def hostname(self,code):
        return 'developer.mozilla.org' # The same for all languages

    def path(self, code):
        return '/'+code+'/docs/index.php' # % code The language code is included in the path

    def version(self, code):
        return "1.5"
</pre>
Revert to this revision