User:

From WikiProjectMed
Jump to navigation Jump to search

Main user page at Commons:User:Fæ

Projects

  • DermNet skin related photographs and diagrams.

Tips for pywikibot

  • Though you can login using shared Wikimedia Oauth, this will not be recognized when running pywikibot login, so it seems you must login using a password here. This was done by using standard preferences to 'change' password.
  • Pywikibot account setup uses the guidance at mw:Manual:Pywikibot/Use_on_third-party_wikis, by setting up a family file of mdwiki_family.py:
# -*- coding: utf-8  -*-

from pywikibot import family
# The mdwiki
class Family(family.Family):
    name = 'mdwiki' # Set the family name; this should be the same as in the filename.
    langs = {
        'en': 'mdwiki.org',
    }
    def scriptpath(self, code):
        return '/w'
Subsequent usage looks like site = pywikibot.getSite('en', 'mdwiki') and a line in user-config.py of usernames['mdwiki']['en'] = "account name".