See conffiles.txt for a description of mwlib configuration files.

Example config file using mwapidb to download needed files via  MediaWiki API from the English Wikipedia:

[images]
type = mwapi
base_url = http://en.wikipedia.org/w/

[wiki]
type = mwapi
base_url = http://en.wikipedia.org/w/
license = Wikipedia:GFDL

Example config file using netdb to download needed files from the English Wikipedia:

[images]
type = download
url = http://upload.wikimedia.org/wikipedia/commons/
localpath = ~/en-images

[wiki]
type = net
url = http://en.wikipedia.org/wiki/@TITLE@?action=raw

Example config file using cdbwiki (as created by the mw-buildcdb tool):

[wiki]
type = cdb
path = /home/ralf/enwiki

[images]
type = download
url = http://upload.wikimedia.org/wikipedia/commons/ 
localpath = ~/enwiki/images