Bot settings general for wikibox blue

From MediaWiki extension testing
Jump to: navigation, search

Specific settings to run a bot on Wikibox blue.


Assuming wikibox blue is https?




# -*- coding: utf-8  -*-              # REQUIRED
import config, family, urllib         # REQUIRED

class Family(family.Family):          # REQUIRED
    def __init__(self):               # REQUIRED
        family.Family.__init__(self)  # REQUIRED
        self.name = 'wb280_wikiation'        # REQUIRED; replace with actual nam
e

        self.langs = {                # REQUIRED
            'nl': 'wb280.wikiation.nl',  # Only family is nl.
        }

    def scriptpath(self, code):
        """The prefix used to locate scripts on this wiki.

        This is the value displayed when you enter {{SCRIPTPATH}} on a
        wiki page (often displayed at [[Help:Variables]] if the wiki has
        copied the master help page correctly).

        The default value is the one used on Wikimedia Foundation wikis,
        but needs to be overridden in the family file for any wiki that
        uses a different value.

        """
        return '/'

    # I don't think we have access to API.php

    def apipath(self, code):
        raise NotImplementedError, "%s wiki family does not support api.php" % s
elf.name
        return '%s/api.php' % self.scriptpath(code)

    # Which version of MediaWiki is used?
    def version(self, code):
        # Replace with the actual version being run on your wiki
        return '1.12'

    def code2encoding(self, code):
        """Return the encoding for a specific language wiki"""
        # Most wikis nowadays use UTF-8, but change this if yours uses
        # a different encoding
        return 'utf-8'

    def protocol(self, code):
        """
        Can be overridden to return 'https'. Other protocols are not supported.
        """
        return 'https'


Personal tools
Namespaces
Variants
Actions
navigation
Toolbox