Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3).
Navigation
Topics Help • Register • News • History • How to • Sequences statistics • Template prototypes

Difference between revisions of "User:HappyBot/primewiki family.py"

From Prime-Wiki
Jump to: navigation, search
(Created page with "<syntaxhighlight lang="python"> """Family module for Prime-Wiki.""" from pywikibot import family class Family(family.SingleSiteFamily): """Family class for Prime-Wiki."...")
 
(No difference)

Latest revision as of 09:58, 23 July 2021

"""Family module for Prime-Wiki."""
from pywikibot import family


class Family(family.SingleSiteFamily):

    """Family class for Prime-Wiki."""

    name = 'primewiki'
    domain = 'www.rieselprime.de'
    code = 'en'

    def protocol(self, code):
        """Return https as the protocol for this family."""
        return 'https'

    def scriptpath(self, code):
        """Return the script path for this family."""
        return '/z'