Manual:Pywikibot/isbn.py

This script reports and fixes invalid ISBN numbers.

Additionally, it can convert all ISBN-10 codes to the ISBN-13 format, and correct the ISBN format by placing hyphens.

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

Furthermore, the following command line parameters are supported: -to13            Converts all ISBN-10 codes to ISBN-13. NOTE: This needn't be done, as MediaWiki still supports (and will keep supporting) ISBN-10, and all libraries and bookstores will most likely do so as well.

-format          Corrects the hyphenation. NOTE: This is in here for testing purposes only. Usually it's not worth to create an edit for such a minor issue. The recommended way of doing this is enabling cosmetic_changes, so that these changes are made on-the-fly to all pages that are modified.

-always          Don't prompt you for each replacement.

-prop-isbn-10    Sets ISBN-10 property ID, so it's not tried to be found automatically. The usage is as follows: -prop-isbn-10:propid

-prop-isbn-13    Sets ISBN-13 property ID. The format and purpose is the same as in -prop-isbn-10.