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

User:HappyBot/primewiki family.py

From Prime-Wiki
< User:HappyBot
Revision as of 09:58, 23 July 2021 by Happy5214 (talk | contribs) (Created page with "<syntaxhighlight lang="python"> """Family module for Prime-Wiki.""" from pywikibot import family class Family(family.SingleSiteFamily): """Family class for Prime-Wiki."...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
"""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'