Module talk:FormatISBN

Page contents not supported in other languages.
From Wikipedia
(Redirected from Module talk:Mr Stephen/try1)

This module automatically inserts the correct dash placements in ISBNs. Inelegant error messages are generated for wrong lengths, bad ranges, bad checksums.

  • Examples:
  • {{#invoke: FormatISBN | CheckRangeAndDash | 9779999999999 }} generates 9779999999999 ISBN fault: invalid range
  • {{#invoke: FormatISBN | CheckRangeAndDash | 978-0000000002 }} generates 978-0-00-000000-2

There is a shedload of tests at Module talk:FormatISBN/tests.