Manual:Pywikibot/noreferences.py

This script adds a missing references section to pages.

It goes over multiple pages, searches for pages where is missing although a tag is present, and in that case adds a new references section.

Syntax
The syntax is:  python noreferences.py [global-arguments] [-option]

Parameters
These command line parameters can be used to specify which pages to work on:

-xml         Retrieve information from a local XML dump (pages-articles                  or pages-meta-current, see https://download.wikimedia.org). Argument can also be given as "-xml:filename".

-namespace:n Number or name of namespace to process. The parameter can be                 used multiple times. It works in combination with all other parameters, except for the -start parameter. If you e.g.                 want to iterate over all categories starting at M, use -start:Category:M.

-always      Don't prompt you for each replacement.

-quiet       Use this option to get less output

If neither a page title nor a page generator is given, it takes all pages from the default maintenance category.

It is strongly recommended not to run this script over the entire article namespace (using the -start) parameter, as that would consume too much bandwidth. Instead, use the -xml parameter, or use another way to generate a list of affected articles