Currently, CommonsLinkChecker always checks the commonswiki database (except, as a special case, when running the tests). If it doesn’t exist, you get a nasty error. We should support:
- configuring a different database name, e. g. the current wiki’s database, and
- configuring an API endpoint instead, for non-Wikimedia wikis that also want to reference Wikimedia Commons.